| 36 | cycrow | 1 | #pragma once
 | 
        
           |  |  | 2 |   | 
        
           |  |  | 3 | using namespace System;
 | 
        
           |  |  | 4 | using namespace System::ComponentModel;
 | 
        
           |  |  | 5 | using namespace System::Collections;
 | 
        
           |  |  | 6 | using namespace System::Windows::Forms;
 | 
        
           |  |  | 7 | using namespace System::Data;
 | 
        
           |  |  | 8 | using namespace System::Drawing;
 | 
        
           |  |  | 9 |   | 
        
           |  |  | 10 |   | 
        
           |  |  | 11 | namespace Creator {
 | 
        
           |  |  | 12 |   | 
        
           |  |  | 13 | 	/// <summary>
 | 
        
           |  |  | 14 | 	/// Summary for SelectFilesystem
 | 
        
           |  |  | 15 | 	///
 | 
        
           |  |  | 16 | 	/// WARNING: If you change the name of this class, you will need to change the
 | 
        
           |  |  | 17 | 	///          'Resource File Name' property for the managed resource compiler tool
 | 
        
           |  |  | 18 | 	///          associated with all .resx files this class depends on.  Otherwise,
 | 
        
           |  |  | 19 | 	///          the designers will not be able to interact properly with localized
 | 
        
           |  |  | 20 | 	///          resources associated with this form.
 | 
        
           |  |  | 21 | 	/// </summary>
 | 
        
           |  |  | 22 | 	public ref class SelectFilesystem : public System::Windows::Forms::Form
 | 
        
           |  |  | 23 | 	{
 | 
        
           |  |  | 24 | 	public:
 | 
        
           |  |  | 25 | 		SelectFilesystem(CLinkList<SGameDir> *pGameDir, int iHighestGame) : m_pGameDir(pGameDir), m_iHighestGame(iHighestGame)
 | 
        
           |  |  | 26 | 		{
 | 
        
           |  |  | 27 | 			InitializeComponent();
 | 
        
           |  |  | 28 |   | 
        
           |  |  | 29 | 			this->update();
 | 
        
           |  |  | 30 | 		}
 | 
        
           |  |  | 31 |   | 
        
           |  |  | 32 | 		void update();
 | 
        
           |  |  | 33 | 		void selectedGame();
 | 
        
           |  |  | 34 | 		void selectedDir();
 | 
        
           |  |  | 35 |   | 
        
           |  |  | 36 | 		SGameDir *gameDir();
 | 
        
           |  |  | 37 | 		String ^gameMod();
 | 
        
           |  |  | 38 |   | 
        
           |  |  | 39 | 	protected:
 | 
        
           |  |  | 40 | 		int m_iHighestGame;
 | 
        
           |  |  | 41 | 		CLinkList<SGameDir> *m_pGameDir;
 | 
        
           |  |  | 42 |   | 
        
           |  |  | 43 | 		/// <summary>
 | 
        
           |  |  | 44 | 		/// Clean up any resources being used.
 | 
        
           |  |  | 45 | 		/// </summary>
 | 
        
           |  |  | 46 | 		~SelectFilesystem()
 | 
        
           |  |  | 47 | 		{
 | 
        
           |  |  | 48 | 			if (components)
 | 
        
           |  |  | 49 | 			{
 | 
        
           |  |  | 50 | 				delete components;
 | 
        
           |  |  | 51 | 			}
 | 
        
           |  |  | 52 | 		}
 | 
        
           |  |  | 53 | 	private: System::Windows::Forms::ComboBox^  comboBox1;
 | 
        
           |  |  | 54 | 	private: System::Windows::Forms::GroupBox^  groupBox1;
 | 
        
           |  |  | 55 | 	private: System::Windows::Forms::GroupBox^  groupBox2;
 | 
        
           |  |  | 56 | 	private: System::Windows::Forms::ComboBox^  comboBox2;
 | 
        
           |  |  | 57 | 	private: System::Windows::Forms::GroupBox^  groupBox3;
 | 
        
           |  |  | 58 | 	private: System::Windows::Forms::ComboBox^  comboBox3;
 | 
        
           |  |  | 59 | 	private: System::Windows::Forms::Button^  button1;
 | 
        
           |  |  | 60 | 	private: System::Windows::Forms::Button^  button2;
 | 
        
           |  |  | 61 | 	protected: 
 | 
        
           |  |  | 62 |   | 
        
           |  |  | 63 | 	private:
 | 
        
           |  |  | 64 | 		/// <summary>
 | 
        
           |  |  | 65 | 		/// Required designer variable.
 | 
        
           |  |  | 66 | 		/// </summary>
 | 
        
           |  |  | 67 | 		System::ComponentModel::Container ^components;
 | 
        
           |  |  | 68 |   | 
        
           |  |  | 69 | #pragma region Windows Form Designer generated code
 | 
        
           |  |  | 70 | 		/// <summary>
 | 
        
           |  |  | 71 | 		/// Required method for Designer support - do not modify
 | 
        
           |  |  | 72 | 		/// the contents of this method with the code editor.
 | 
        
           |  |  | 73 | 		/// </summary>
 | 
        
           |  |  | 74 | 		void InitializeComponent(void)
 | 
        
           |  |  | 75 | 		{
 | 
        
           |  |  | 76 | 			this->comboBox1 = (gcnew System::Windows::Forms::ComboBox());
 | 
        
           |  |  | 77 | 			this->groupBox1 = (gcnew System::Windows::Forms::GroupBox());
 | 
        
           |  |  | 78 | 			this->groupBox2 = (gcnew System::Windows::Forms::GroupBox());
 | 
        
           |  |  | 79 | 			this->comboBox2 = (gcnew System::Windows::Forms::ComboBox());
 | 
        
           |  |  | 80 | 			this->groupBox3 = (gcnew System::Windows::Forms::GroupBox());
 | 
        
           |  |  | 81 | 			this->comboBox3 = (gcnew System::Windows::Forms::ComboBox());
 | 
        
           |  |  | 82 | 			this->button1 = (gcnew System::Windows::Forms::Button());
 | 
        
           |  |  | 83 | 			this->button2 = (gcnew System::Windows::Forms::Button());
 | 
        
           |  |  | 84 | 			this->groupBox1->SuspendLayout();
 | 
        
           |  |  | 85 | 			this->groupBox2->SuspendLayout();
 | 
        
           |  |  | 86 | 			this->groupBox3->SuspendLayout();
 | 
        
           |  |  | 87 | 			this->SuspendLayout();
 | 
        
           |  |  | 88 | 			// 
 | 
        
           |  |  | 89 | 			// comboBox1
 | 
        
           |  |  | 90 | 			// 
 | 
        
           |  |  | 91 | 			this->comboBox1->Dock = System::Windows::Forms::DockStyle::Fill;
 | 
        
           |  |  | 92 | 			this->comboBox1->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
 | 
        
           |  |  | 93 | 			this->comboBox1->FormattingEnabled = true;
 | 
        
           |  |  | 94 | 			this->comboBox1->Location = System::Drawing::Point(10, 23);
 | 
        
           |  |  | 95 | 			this->comboBox1->Name = L"comboBox1";
 | 
        
           |  |  | 96 | 			this->comboBox1->Size = System::Drawing::Size(530, 21);
 | 
        
           |  |  | 97 | 			this->comboBox1->TabIndex = 0;
 | 
        
           |  |  | 98 | 			this->comboBox1->SelectedIndexChanged += gcnew System::EventHandler(this, &SelectFilesystem::comboBox1_SelectedIndexChanged);
 | 
        
           |  |  | 99 | 			// 
 | 
        
           |  |  | 100 | 			// groupBox1
 | 
        
           |  |  | 101 | 			// 
 | 
        
           |  |  | 102 | 			this->groupBox1->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left) 
 | 
        
           |  |  | 103 | 				| System::Windows::Forms::AnchorStyles::Right));
 | 
        
           |  |  | 104 | 			this->groupBox1->AutoSize = true;
 | 
        
           |  |  | 105 | 			this->groupBox1->Controls->Add(this->comboBox1);
 | 
        
           |  |  | 106 | 			this->groupBox1->Location = System::Drawing::Point(12, 12);
 | 
        
           |  |  | 107 | 			this->groupBox1->Margin = System::Windows::Forms::Padding(10);
 | 
        
           |  |  | 108 | 			this->groupBox1->Name = L"groupBox1";
 | 
        
           |  |  | 109 | 			this->groupBox1->Padding = System::Windows::Forms::Padding(10);
 | 
        
           |  |  | 110 | 			this->groupBox1->Size = System::Drawing::Size(550, 52);
 | 
        
           |  |  | 111 | 			this->groupBox1->TabIndex = 1;
 | 
        
           |  |  | 112 | 			this->groupBox1->TabStop = false;
 | 
        
           |  |  | 113 | 			this->groupBox1->Text = L"Select Game";
 | 
        
           |  |  | 114 | 			// 
 | 
        
           |  |  | 115 | 			// groupBox2
 | 
        
           |  |  | 116 | 			// 
 | 
        
           |  |  | 117 | 			this->groupBox2->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left) 
 | 
        
           |  |  | 118 | 				| System::Windows::Forms::AnchorStyles::Right));
 | 
        
           |  |  | 119 | 			this->groupBox2->AutoSize = true;
 | 
        
           |  |  | 120 | 			this->groupBox2->Controls->Add(this->comboBox2);
 | 
        
           |  |  | 121 | 			this->groupBox2->Location = System::Drawing::Point(12, 84);
 | 
        
           |  |  | 122 | 			this->groupBox2->Margin = System::Windows::Forms::Padding(10);
 | 
        
           |  |  | 123 | 			this->groupBox2->Name = L"groupBox2";
 | 
        
           |  |  | 124 | 			this->groupBox2->Padding = System::Windows::Forms::Padding(10);
 | 
        
           |  |  | 125 | 			this->groupBox2->Size = System::Drawing::Size(550, 52);
 | 
        
           |  |  | 126 | 			this->groupBox2->TabIndex = 2;
 | 
        
           |  |  | 127 | 			this->groupBox2->TabStop = false;
 | 
        
           |  |  | 128 | 			this->groupBox2->Text = L"Select Directory";
 | 
        
           |  |  | 129 | 			// 
 | 
        
           |  |  | 130 | 			// comboBox2
 | 
        
           |  |  | 131 | 			// 
 | 
        
           |  |  | 132 | 			this->comboBox2->Dock = System::Windows::Forms::DockStyle::Fill;
 | 
        
           |  |  | 133 | 			this->comboBox2->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
 | 
        
           |  |  | 134 | 			this->comboBox2->FormattingEnabled = true;
 | 
        
           |  |  | 135 | 			this->comboBox2->Location = System::Drawing::Point(10, 23);
 | 
        
           |  |  | 136 | 			this->comboBox2->Name = L"comboBox2";
 | 
        
           |  |  | 137 | 			this->comboBox2->Size = System::Drawing::Size(530, 21);
 | 
        
           |  |  | 138 | 			this->comboBox2->TabIndex = 0;
 | 
        
           |  |  | 139 | 			this->comboBox2->SelectedIndexChanged += gcnew System::EventHandler(this, &SelectFilesystem::comboBox2_SelectedIndexChanged);
 | 
        
           |  |  | 140 | 			// 
 | 
        
           |  |  | 141 | 			// groupBox3
 | 
        
           |  |  | 142 | 			// 
 | 
        
           |  |  | 143 | 			this->groupBox3->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left) 
 | 
        
           |  |  | 144 | 				| System::Windows::Forms::AnchorStyles::Right));
 | 
        
           |  |  | 145 | 			this->groupBox3->AutoSize = true;
 | 
        
           |  |  | 146 | 			this->groupBox3->Controls->Add(this->comboBox3);
 | 
        
           |  |  | 147 | 			this->groupBox3->Location = System::Drawing::Point(12, 156);
 | 
        
           |  |  | 148 | 			this->groupBox3->Margin = System::Windows::Forms::Padding(10);
 | 
        
           |  |  | 149 | 			this->groupBox3->Name = L"groupBox3";
 | 
        
           |  |  | 150 | 			this->groupBox3->Padding = System::Windows::Forms::Padding(10);
 | 
        
           |  |  | 151 | 			this->groupBox3->Size = System::Drawing::Size(550, 52);
 | 
        
           |  |  | 152 | 			this->groupBox3->TabIndex = 3;
 | 
        
           |  |  | 153 | 			this->groupBox3->TabStop = false;
 | 
        
           |  |  | 154 | 			this->groupBox3->Text = L"Select Mod";
 | 
        
           |  |  | 155 | 			// 
 | 
        
           |  |  | 156 | 			// comboBox3
 | 
        
           |  |  | 157 | 			// 
 | 
        
           |  |  | 158 | 			this->comboBox3->Dock = System::Windows::Forms::DockStyle::Fill;
 | 
        
           |  |  | 159 | 			this->comboBox3->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
 | 
        
           |  |  | 160 | 			this->comboBox3->FormattingEnabled = true;
 | 
        
           |  |  | 161 | 			this->comboBox3->Location = System::Drawing::Point(10, 23);
 | 
        
           |  |  | 162 | 			this->comboBox3->Name = L"comboBox3";
 | 
        
           |  |  | 163 | 			this->comboBox3->Size = System::Drawing::Size(530, 21);
 | 
        
           |  |  | 164 | 			this->comboBox3->TabIndex = 0;
 | 
        
           |  |  | 165 | 			this->comboBox3->SelectedIndexChanged += gcnew System::EventHandler(this, &SelectFilesystem::comboBox3_SelectedIndexChanged);
 | 
        
           |  |  | 166 | 			// 
 | 
        
           |  |  | 167 | 			// button1
 | 
        
           |  |  | 168 | 			// 
 | 
        
           |  |  | 169 | 			this->button1->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((System::Windows::Forms::AnchorStyles::Bottom | System::Windows::Forms::AnchorStyles::Right));
 | 
        
           |  |  | 170 | 			this->button1->DialogResult = System::Windows::Forms::DialogResult::OK;
 | 
        
           |  |  | 171 | 			this->button1->Location = System::Drawing::Point(487, 226);
 | 
        
           |  |  | 172 | 			this->button1->Name = L"button1";
 | 
        
           |  |  | 173 | 			this->button1->Size = System::Drawing::Size(75, 23);
 | 
        
           |  |  | 174 | 			this->button1->TabIndex = 4;
 | 
        
           |  |  | 175 | 			this->button1->Text = L"OK";
 | 
        
           |  |  | 176 | 			this->button1->UseVisualStyleBackColor = true;
 | 
        
           |  |  | 177 | 			// 
 | 
        
           |  |  | 178 | 			// button2
 | 
        
           |  |  | 179 | 			// 
 | 
        
           |  |  | 180 | 			this->button2->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((System::Windows::Forms::AnchorStyles::Bottom | System::Windows::Forms::AnchorStyles::Left));
 | 
        
           |  |  | 181 | 			this->button2->DialogResult = System::Windows::Forms::DialogResult::Cancel;
 | 
        
           |  |  | 182 | 			this->button2->Location = System::Drawing::Point(12, 226);
 | 
        
           |  |  | 183 | 			this->button2->Name = L"button2";
 | 
        
           |  |  | 184 | 			this->button2->Size = System::Drawing::Size(75, 23);
 | 
        
           |  |  | 185 | 			this->button2->TabIndex = 5;
 | 
        
           |  |  | 186 | 			this->button2->Text = L"Cancel";
 | 
        
           |  |  | 187 | 			this->button2->UseVisualStyleBackColor = true;
 | 
        
           |  |  | 188 | 			// 
 | 
        
           |  |  | 189 | 			// SelectFilesystem
 | 
        
           |  |  | 190 | 			// 
 | 
        
           |  |  | 191 | 			this->AcceptButton = this->button1;
 | 
        
           |  |  | 192 | 			this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
 | 
        
           |  |  | 193 | 			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
 | 
        
           |  |  | 194 | 			this->CancelButton = this->button2;
 | 
        
           |  |  | 195 | 			this->ClientSize = System::Drawing::Size(574, 261);
 | 
        
           |  |  | 196 | 			this->ControlBox = false;
 | 
        
           |  |  | 197 | 			this->Controls->Add(this->button2);
 | 
        
           |  |  | 198 | 			this->Controls->Add(this->button1);
 | 
        
           |  |  | 199 | 			this->Controls->Add(this->groupBox3);
 | 
        
           |  |  | 200 | 			this->Controls->Add(this->groupBox2);
 | 
        
           |  |  | 201 | 			this->Controls->Add(this->groupBox1);
 | 
        
           |  |  | 202 | 			this->Name = L"SelectFilesystem";
 | 
        
           |  |  | 203 | 			this->StartPosition = System::Windows::Forms::FormStartPosition::CenterParent;
 | 
        
           |  |  | 204 | 			this->Text = L"Select Filesystem";
 | 
        
           |  |  | 205 | 			this->groupBox1->ResumeLayout(false);
 | 
        
           |  |  | 206 | 			this->groupBox2->ResumeLayout(false);
 | 
        
           |  |  | 207 | 			this->groupBox3->ResumeLayout(false);
 | 
        
           |  |  | 208 | 			this->ResumeLayout(false);
 | 
        
           |  |  | 209 | 			this->PerformLayout();
 | 
        
           |  |  | 210 |   | 
        
           |  |  | 211 | 		}
 | 
        
           |  |  | 212 | #pragma endregion
 | 
        
           |  |  | 213 | 	private: System::Void comboBox1_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 214 | 				 this->selectedGame();
 | 
        
           |  |  | 215 | 			 }
 | 
        
           |  |  | 216 | private: System::Void comboBox3_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 217 | 		 }
 | 
        
           |  |  | 218 | private: System::Void comboBox2_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
 | 
        
           |  |  | 219 | 			 this->selectedDir();
 | 
        
           |  |  | 220 | 		 }
 | 
        
           |  |  | 221 | };
 | 
        
           |  |  | 222 | }
 |