| 1 | cycrow | 1 | #pragma once
 | 
        
           |  |  | 2 |   | 
        
           |  |  | 3 | #include <spk.h>
 | 
        
           |  |  | 4 |   | 
        
           |  |  | 5 | using namespace System;
 | 
        
           |  |  | 6 | using namespace System::ComponentModel;
 | 
        
           |  |  | 7 | using namespace System::Collections;
 | 
        
           |  |  | 8 | using namespace System::Windows::Forms;
 | 
        
           |  |  | 9 | using namespace System::Data;
 | 
        
           |  |  | 10 | using namespace System::Drawing;
 | 
        
           |  |  | 11 |   | 
        
           |  |  | 12 |   | 
        
           |  |  | 13 | namespace PluginManager {
 | 
        
           |  |  | 14 |   | 
        
           |  |  | 15 | 	/// <summary>
 | 
        
           |  |  | 16 | 	/// Summary for CompareList
 | 
        
           |  |  | 17 | 	///
 | 
        
           |  |  | 18 | 	/// WARNING: If you change the name of this class, you will need to change the
 | 
        
           |  |  | 19 | 	///          'Resource File Name' property for the managed resource compiler tool
 | 
        
           |  |  | 20 | 	///          associated with all .resx files this class depends on.  Otherwise,
 | 
        
           |  |  | 21 | 	///          the designers will not be able to interact properly with localized
 | 
        
           |  |  | 22 | 	///          resources associated with this form.
 | 
        
           |  |  | 23 | 	/// </summary>
 | 
        
           |  |  | 24 | 	public ref class CompareList : public System::Windows::Forms::Form
 | 
        
           |  |  | 25 | 	{
 | 
        
           |  |  | 26 | 	public:
 | 
        
           |  |  | 27 | 		CompareList(String ^title)
 | 
        
           |  |  | 28 | 		{
 | 
        
           |  |  | 29 | 			InitializeComponent();
 | 
        
           |  |  | 30 |   | 
        
           |  |  | 31 | 			this->Text = title;
 | 
        
           |  |  | 32 | 		}
 | 
        
           |  |  | 33 |   | 
        
           |  |  | 34 | 		void SetHeadings(String ^h1, String ^h2)
 | 
        
           |  |  | 35 | 		{
 | 
        
           |  |  | 36 | 			this->columnHeader1->Text = h1;
 | 
        
           |  |  | 37 | 			this->columnHeader2->Text = h2;
 | 
        
           |  |  | 38 | 		}
 | 
        
           |  |  | 39 |   | 
        
           | 197 | cycrow | 40 | 		void AddStringList(Utils::WStringList &list)
 | 
        
           | 1 | cycrow | 41 | 		{
 | 
        
           | 182 | cycrow | 42 | 			for(auto itr = list.begin(); itr != list.end(); itr++)
 | 
        
           |  |  | 43 | 				AddItem(_US((*itr)->str), _US((*itr)->data));
 | 
        
           | 1 | cycrow | 44 | 		}
 | 
        
           |  |  | 45 |   | 
        
           |  |  | 46 | 		void AddItem(String ^item1, String ^item2)
 | 
        
           |  |  | 47 | 		{
 | 
        
           |  |  | 48 | 			ListViewItem ^i = gcnew ListViewItem(item1);
 | 
        
           |  |  | 49 | 			i->SubItems->Add(item2);
 | 
        
           |  |  | 50 | 			this->listView1->Items->Add(i);
 | 
        
           |  |  | 51 | 		}
 | 
        
           |  |  | 52 |   | 
        
           |  |  | 53 | 	protected:
 | 
        
           |  |  | 54 | 		/// <summary>
 | 
        
           |  |  | 55 | 		/// Clean up any resources being used.
 | 
        
           |  |  | 56 | 		/// </summary>
 | 
        
           |  |  | 57 | 		~CompareList()
 | 
        
           |  |  | 58 | 		{
 | 
        
           |  |  | 59 | 			if (components)
 | 
        
           |  |  | 60 | 			{
 | 
        
           |  |  | 61 | 				delete components;
 | 
        
           |  |  | 62 | 			}
 | 
        
           |  |  | 63 | 		}
 | 
        
           |  |  | 64 | 	private: System::Windows::Forms::ListView^  listView1;
 | 
        
           |  |  | 65 | 	private: System::Windows::Forms::ColumnHeader^  columnHeader1;
 | 
        
           |  |  | 66 | 	private: System::Windows::Forms::ColumnHeader^  columnHeader2;
 | 
        
           |  |  | 67 | 	protected: 
 | 
        
           |  |  | 68 |   | 
        
           |  |  | 69 | 	private:
 | 
        
           |  |  | 70 | 		/// <summary>
 | 
        
           |  |  | 71 | 		/// Required designer variable.
 | 
        
           |  |  | 72 | 		/// </summary>
 | 
        
           |  |  | 73 | 		System::ComponentModel::Container ^components;
 | 
        
           |  |  | 74 |   | 
        
           |  |  | 75 | #pragma region Windows Form Designer generated code
 | 
        
           |  |  | 76 | 		/// <summary>
 | 
        
           |  |  | 77 | 		/// Required method for Designer support - do not modify
 | 
        
           |  |  | 78 | 		/// the contents of this method with the code editor.
 | 
        
           |  |  | 79 | 		/// </summary>
 | 
        
           |  |  | 80 | 		void InitializeComponent(void)
 | 
        
           |  |  | 81 | 		{
 | 
        
           |  |  | 82 | 			this->listView1 = (gcnew System::Windows::Forms::ListView());
 | 
        
           |  |  | 83 | 			this->columnHeader1 = (gcnew System::Windows::Forms::ColumnHeader());
 | 
        
           |  |  | 84 | 			this->columnHeader2 = (gcnew System::Windows::Forms::ColumnHeader());
 | 
        
           |  |  | 85 | 			this->SuspendLayout();
 | 
        
           |  |  | 86 | 			// 
 | 
        
           |  |  | 87 | 			// listView1
 | 
        
           |  |  | 88 | 			// 
 | 
        
           |  |  | 89 | 			this->listView1->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^  >(2) {this->columnHeader1, this->columnHeader2});
 | 
        
           |  |  | 90 | 			this->listView1->Dock = System::Windows::Forms::DockStyle::Fill;
 | 
        
           |  |  | 91 | 			this->listView1->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 8.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
 | 
        
           |  |  | 92 | 				static_cast<System::Byte>(0)));
 | 
        
           |  |  | 93 | 			this->listView1->FullRowSelect = true;
 | 
        
           |  |  | 94 | 			this->listView1->Location = System::Drawing::Point(0, 0);
 | 
        
           |  |  | 95 | 			this->listView1->Name = L"listView1";
 | 
        
           |  |  | 96 | 			this->listView1->Size = System::Drawing::Size(645, 243);
 | 
        
           |  |  | 97 | 			this->listView1->TabIndex = 0;
 | 
        
           |  |  | 98 | 			this->listView1->UseCompatibleStateImageBehavior = false;
 | 
        
           |  |  | 99 | 			this->listView1->View = System::Windows::Forms::View::Details;
 | 
        
           |  |  | 100 | 			// 
 | 
        
           |  |  | 101 | 			// columnHeader1
 | 
        
           |  |  | 102 | 			// 
 | 
        
           |  |  | 103 | 			this->columnHeader1->Text = L"File 1";
 | 
        
           |  |  | 104 | 			// 
 | 
        
           |  |  | 105 | 			// columnHeader2
 | 
        
           |  |  | 106 | 			// 
 | 
        
           |  |  | 107 | 			this->columnHeader2->Text = L"File 2";
 | 
        
           |  |  | 108 | 			// 
 | 
        
           |  |  | 109 | 			// CompareList
 | 
        
           |  |  | 110 | 			// 
 | 
        
           |  |  | 111 | 			this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
 | 
        
           |  |  | 112 | 			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
 | 
        
           |  |  | 113 | 			this->ClientSize = System::Drawing::Size(645, 243);
 | 
        
           |  |  | 114 | 			this->Controls->Add(this->listView1);
 | 
        
           |  |  | 115 | 			this->MinimizeBox = false;
 | 
        
           |  |  | 116 | 			this->Name = L"CompareList";
 | 
        
           |  |  | 117 | 			this->ShowIcon = false;
 | 
        
           |  |  | 118 | 			this->StartPosition = System::Windows::Forms::FormStartPosition::CenterParent;
 | 
        
           |  |  | 119 | 			this->Text = L"CompareList";
 | 
        
           |  |  | 120 | 			this->TopMost = true;
 | 
        
           |  |  | 121 | 			this->Load += gcnew System::EventHandler(this, &CompareList::CompareList_Load);
 | 
        
           |  |  | 122 | 			this->ResumeLayout(false);
 | 
        
           |  |  | 123 |   | 
        
           |  |  | 124 | 		}
 | 
        
           |  |  | 125 | #pragma endregion
 | 
        
           |  |  | 126 | 	private: System::Void CompareList_Load(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 127 | 				this->listView1->AutoResizeColumns(ColumnHeaderAutoResizeStyle::HeaderSize);
 | 
        
           |  |  | 128 | 			 }
 | 
        
           |  |  | 129 | 	};
 | 
        
           |  |  | 130 | }
 |