Rev 36 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
#pragma once
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
namespace Creator {
/// <summary>
/// Summary for SelectFilesystem
///
/// WARNING: If you change the name of this class, you will need to change the
/// 'Resource File Name' property for the managed resource compiler tool
/// associated with all .resx files this class depends on. Otherwise,
/// the designers will not be able to interact properly with localized
/// resources associated with this form.
/// </summary>
public ref class SelectFilesystem : public System::Windows::Forms::Form
{
public:
SelectFilesystem(CGameDirectories *pGameDir) : _pGameDir(pGameDir)
{
InitializeComponent();
this->update();
}
void update();
void selectedGame();
void selectedDir();
Utils::String gameDir();
String ^gameMod();
protected:
CGameDirectories *_pGameDir;
/// <summary>
/// Clean up any resources being used.
/// </summary>
~SelectFilesystem()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::ComboBox^ comboBox1;
private: System::Windows::Forms::GroupBox^ groupBox1;
private: System::Windows::Forms::GroupBox^ groupBox2;
private: System::Windows::Forms::ComboBox^ comboBox2;
private: System::Windows::Forms::GroupBox^ groupBox3;
private: System::Windows::Forms::ComboBox^ comboBox3;
private: System::Windows::Forms::Button^ button1;
private: System::Windows::Forms::Button^ button2;
protected:
private:
/// <summary>
/// Required designer variable.
/// </summary>
System::ComponentModel::Container ^components;
#pragma region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
void InitializeComponent(void)
{
this->comboBox1 = (gcnew System::Windows::Forms::ComboBox());
this->groupBox1 = (gcnew System::Windows::Forms::GroupBox());
this->groupBox2 = (gcnew System::Windows::Forms::GroupBox());
this->comboBox2 = (gcnew System::Windows::Forms::ComboBox());
this->groupBox3 = (gcnew System::Windows::Forms::GroupBox());
this->comboBox3 = (gcnew System::Windows::Forms::ComboBox());
this->button1 = (gcnew System::Windows::Forms::Button());
this->button2 = (gcnew System::Windows::Forms::Button());
this->groupBox1->SuspendLayout();
this->groupBox2->SuspendLayout();
this->groupBox3->SuspendLayout();
this->SuspendLayout();
//
// comboBox1
//
this->comboBox1->Dock = System::Windows::Forms::DockStyle::Fill;
this->comboBox1->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
this->comboBox1->FormattingEnabled = true;
this->comboBox1->Location = System::Drawing::Point(10, 23);
this->comboBox1->Name = L"comboBox1";
this->comboBox1->Size = System::Drawing::Size(530, 21);
this->comboBox1->TabIndex = 0;
this->comboBox1->SelectedIndexChanged += gcnew System::EventHandler(this, &SelectFilesystem::comboBox1_SelectedIndexChanged);
//
// groupBox1
//
this->groupBox1->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left)
| System::Windows::Forms::AnchorStyles::Right));
this->groupBox1->AutoSize = true;
this->groupBox1->Controls->Add(this->comboBox1);
this->groupBox1->Location = System::Drawing::Point(12, 12);
this->groupBox1->Margin = System::Windows::Forms::Padding(10);
this->groupBox1->Name = L"groupBox1";
this->groupBox1->Padding = System::Windows::Forms::Padding(10);
this->groupBox1->Size = System::Drawing::Size(550, 52);
this->groupBox1->TabIndex = 1;
this->groupBox1->TabStop = false;
this->groupBox1->Text = L"Select Game";
//
// groupBox2
//
this->groupBox2->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left)
| System::Windows::Forms::AnchorStyles::Right));
this->groupBox2->AutoSize = true;
this->groupBox2->Controls->Add(this->comboBox2);
this->groupBox2->Location = System::Drawing::Point(12, 84);
this->groupBox2->Margin = System::Windows::Forms::Padding(10);
this->groupBox2->Name = L"groupBox2";
this->groupBox2->Padding = System::Windows::Forms::Padding(10);
this->groupBox2->Size = System::Drawing::Size(550, 52);
this->groupBox2->TabIndex = 2;
this->groupBox2->TabStop = false;
this->groupBox2->Text = L"Select Directory";
//
// comboBox2
//
this->comboBox2->Dock = System::Windows::Forms::DockStyle::Fill;
this->comboBox2->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
this->comboBox2->FormattingEnabled = true;
this->comboBox2->Location = System::Drawing::Point(10, 23);
this->comboBox2->Name = L"comboBox2";
this->comboBox2->Size = System::Drawing::Size(530, 21);
this->comboBox2->TabIndex = 0;
this->comboBox2->SelectedIndexChanged += gcnew System::EventHandler(this, &SelectFilesystem::comboBox2_SelectedIndexChanged);
//
// groupBox3
//
this->groupBox3->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left)
| System::Windows::Forms::AnchorStyles::Right));
this->groupBox3->AutoSize = true;
this->groupBox3->Controls->Add(this->comboBox3);
this->groupBox3->Location = System::Drawing::Point(12, 156);
this->groupBox3->Margin = System::Windows::Forms::Padding(10);
this->groupBox3->Name = L"groupBox3";
this->groupBox3->Padding = System::Windows::Forms::Padding(10);
this->groupBox3->Size = System::Drawing::Size(550, 52);
this->groupBox3->TabIndex = 3;
this->groupBox3->TabStop = false;
this->groupBox3->Text = L"Select Mod";
//
// comboBox3
//
this->comboBox3->Dock = System::Windows::Forms::DockStyle::Fill;
this->comboBox3->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
this->comboBox3->FormattingEnabled = true;
this->comboBox3->Location = System::Drawing::Point(10, 23);
this->comboBox3->Name = L"comboBox3";
this->comboBox3->Size = System::Drawing::Size(530, 21);
this->comboBox3->TabIndex = 0;
this->comboBox3->SelectedIndexChanged += gcnew System::EventHandler(this, &SelectFilesystem::comboBox3_SelectedIndexChanged);
//
// button1
//
this->button1->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((System::Windows::Forms::AnchorStyles::Bottom | System::Windows::Forms::AnchorStyles::Right));
this->button1->DialogResult = System::Windows::Forms::DialogResult::OK;
this->button1->Location = System::Drawing::Point(487, 226);
this->button1->Name = L"button1";
this->button1->Size = System::Drawing::Size(75, 23);
this->button1->TabIndex = 4;
this->button1->Text = L"OK";
this->button1->UseVisualStyleBackColor = true;
//
// button2
//
this->button2->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((System::Windows::Forms::AnchorStyles::Bottom | System::Windows::Forms::AnchorStyles::Left));
this->button2->DialogResult = System::Windows::Forms::DialogResult::Cancel;
this->button2->Location = System::Drawing::Point(12, 226);
this->button2->Name = L"button2";
this->button2->Size = System::Drawing::Size(75, 23);
this->button2->TabIndex = 5;
this->button2->Text = L"Cancel";
this->button2->UseVisualStyleBackColor = true;
//
// SelectFilesystem
//
this->AcceptButton = this->button1;
this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->CancelButton = this->button2;
this->ClientSize = System::Drawing::Size(574, 261);
this->ControlBox = false;
this->Controls->Add(this->button2);
this->Controls->Add(this->button1);
this->Controls->Add(this->groupBox3);
this->Controls->Add(this->groupBox2);
this->Controls->Add(this->groupBox1);
this->Name = L"SelectFilesystem";
this->StartPosition = System::Windows::Forms::FormStartPosition::CenterParent;
this->Text = L"Select Filesystem";
this->groupBox1->ResumeLayout(false);
this->groupBox2->ResumeLayout(false);
this->groupBox3->ResumeLayout(false);
this->ResumeLayout(false);
this->PerformLayout();
}
#pragma endregion
private: System::Void comboBox1_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e) {
this->selectedGame();
}
private: System::Void comboBox3_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e) {
}
private: System::Void comboBox2_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e) {
this->selectedDir();
}
};
}