This commit is contained in:
STAM 2022-03-26 03:32:05 +05:00
parent 0d7267a516
commit 90b560b558
Signed by: stam
GPG Key ID: E149C3760CFA3C7E
2 changed files with 71 additions and 18 deletions

View File

@ -145,8 +145,9 @@
//
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 @@
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 @@
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 @@
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 @@
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 @@
this.buttonApplyVTools.TabIndex = 2;
this.toolTip.SetToolTip(this.buttonApplyVTools, "Apply");
this.buttonApplyVTools.UseVisualStyleBackColor = true;
this.buttonApplyVTools.Click += new System.EventHandler(this.buttonApplyVTools_Click);
//
// textBoxVTools
//

View File

@ -17,6 +17,26 @@ namespace SourceSDK.ENV.Editor.UI
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 @@ namespace SourceSDK.ENV.Editor.UI
#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 @@ namespace SourceSDK.ENV.Editor.UI
}
}
#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
}
}