diff --git a/src/UI/FormMain.Designer.cs b/src/UI/FormMain.Designer.cs index 2abebd5..b48689b 100644 --- a/src/UI/FormMain.Designer.cs +++ b/src/UI/FormMain.Designer.cs @@ -145,8 +145,9 @@ private void InitializeComponent() // this.aboutToolStripMenuItem.Image = global::SourceSDK.ENV.Editor.Properties.Resources.about; this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem"; - this.aboutToolStripMenuItem.Size = new System.Drawing.Size(107, 22); + this.aboutToolStripMenuItem.Size = new System.Drawing.Size(180, 22); this.aboutToolStripMenuItem.Text = "About"; + this.aboutToolStripMenuItem.Click += new System.EventHandler(this.aboutToolStripMenuItem_Click); // // groupBoxVMod // @@ -181,6 +182,7 @@ private void InitializeComponent() this.buttonApplyVMod.TabIndex = 2; this.toolTip.SetToolTip(this.buttonApplyVMod, "Apply"); this.buttonApplyVMod.UseVisualStyleBackColor = true; + this.buttonApplyVMod.Click += new System.EventHandler(this.buttonApplyVMod_Click); // // textBoxVMod // @@ -246,6 +248,7 @@ private void InitializeComponent() this.buttonApplyVProject.TabIndex = 2; this.toolTip.SetToolTip(this.buttonApplyVProject, "Apply"); this.buttonApplyVProject.UseVisualStyleBackColor = true; + this.buttonApplyVProject.Click += new System.EventHandler(this.buttonApplyVProject_Click); // // textBoxVProject // @@ -311,6 +314,7 @@ private void InitializeComponent() this.buttonApplyVGame.TabIndex = 2; this.toolTip.SetToolTip(this.buttonApplyVGame, "Apply"); this.buttonApplyVGame.UseVisualStyleBackColor = true; + this.buttonApplyVGame.Click += new System.EventHandler(this.buttonApplyVGame_Click); // // textBoxVGame // @@ -376,6 +380,7 @@ private void InitializeComponent() this.buttonApplyVContent.TabIndex = 2; this.toolTip.SetToolTip(this.buttonApplyVContent, "Apply"); this.buttonApplyVContent.UseVisualStyleBackColor = true; + this.buttonApplyVContent.Click += new System.EventHandler(this.buttonApplyVContent_Click); // // textBoxVContent // @@ -441,6 +446,7 @@ private void InitializeComponent() this.buttonApplyVTools.TabIndex = 2; this.toolTip.SetToolTip(this.buttonApplyVTools, "Apply"); this.buttonApplyVTools.UseVisualStyleBackColor = true; + this.buttonApplyVTools.Click += new System.EventHandler(this.buttonApplyVTools_Click); // // textBoxVTools // diff --git a/src/UI/FormMain.cs b/src/UI/FormMain.cs index 877cb09..cacc6d1 100644 --- a/src/UI/FormMain.cs +++ b/src/UI/FormMain.cs @@ -17,6 +17,26 @@ public FormMain() InitializeComponent(); this.Text = String.Format("{0} ({1})", Application.ProductName, Application.ProductVersion); ; } + + private void FormMain_Load(object sender, EventArgs e) + { + checkAll(); + folderBrowserDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Desktop); //set defaut directory + } + private void refreshToolStripMenuItem_Click(object sender, EventArgs e) + { + checkAll(); + MessageBox.Show("Information updated!", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); + } + private void exitToolStripMenuItem_Click(object sender, EventArgs e) + { + Application.Exit(); + } + private void aboutToolStripMenuItem_Click(object sender, EventArgs e) + { + + } + #region checks private void checkAll() { @@ -240,23 +260,6 @@ private void resetVTools() #endregion - private void FormMain_Load(object sender, EventArgs e) - { - checkAll(); - folderBrowserDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Desktop); //set defaut directory - } - - private void refreshToolStripMenuItem_Click(object sender, EventArgs e) - { - checkAll(); - MessageBox.Show("Information updated!", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); - } - - private void exitToolStripMenuItem_Click(object sender, EventArgs e) - { - Application.Exit(); - } - #region btn-reset private void resetAllToolStripMenuItem_Click(object sender, EventArgs e) { @@ -340,5 +343,49 @@ private void buttonBrowseVTools_Click(object sender, EventArgs e) } } #endregion + + #region btn-apply + private void buttonApplyVMod_Click(object sender, EventArgs e) + { + if (MessageBox.Show("Are you sure?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes) + { + + } + } + + private void buttonApplyVProject_Click(object sender, EventArgs e) + { + if (MessageBox.Show("Are you sure?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes) + { + + } + } + + private void buttonApplyVGame_Click(object sender, EventArgs e) + { + if (MessageBox.Show("Are you sure?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes) + { + + } + } + + private void buttonApplyVContent_Click(object sender, EventArgs e) + { + if (MessageBox.Show("Are you sure?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes) + { + + } + } + + private void buttonApplyVTools_Click(object sender, EventArgs e) + { + if (MessageBox.Show("Are you sure?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes) + { + + } + } + #endregion + + } }