This commit is contained in:
stam 2020-01-09 18:27:14 +03:00
parent c6fc7a4d15
commit 5986a3af6b
14 changed files with 2346 additions and 227 deletions

View File

@ -83,8 +83,8 @@ namespace UniversalValveToolbox {
#if DEBUG
MessageBox.Show(selectedClient, Properties.str.strInfo, MessageBoxButtons.OK, MessageBoxIcon.Information);
#endif
var frmSettings = new FormSettings();
frmSettings.ShowDialog();
var frmProfiles = new FormProfiles();
frmProfiles.ShowDialog();
} else if (selectedClient == Properties.str.strGitHubLink) {
#if DEBUG
MessageBox.Show(selectedClient, Properties.str.strInfo, MessageBoxButtons.OK, MessageBoxIcon.Information);

View File

@ -0,0 +1,154 @@
namespace UniversalValveToolbox {
partial class FormProfilePropertie {
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing) {
if (disposing && (components != null)) {
components.Dispose();
}
base.Dispose(disposing);
}
#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>
private void InitializeComponent() {
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormProfilePropertie));
this.textBox2 = new System.Windows.Forms.TextBox();
this.textBox1 = new System.Windows.Forms.TextBox();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.buttonBrowse = new System.Windows.Forms.Button();
this.buttonCancel = new System.Windows.Forms.Button();
this.buttonOK = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(95, 65);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(295, 20);
this.textBox2.TabIndex = 10;
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(95, 12);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(376, 20);
this.textBox1.TabIndex = 11;
//
// comboBox1
//
this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Location = new System.Drawing.Point(95, 38);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(376, 21);
this.comboBox1.TabIndex = 6;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(12, 68);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(68, 13);
this.label2.TabIndex = 7;
this.label2.Text = "Project Path:";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 15);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(74, 13);
this.label1.TabIndex = 8;
this.label1.Text = "Project Name:";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(12, 41);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(77, 13);
this.label3.TabIndex = 9;
this.label3.Text = "Linked engine:";
//
// buttonBrowse
//
this.buttonBrowse.Location = new System.Drawing.Point(396, 63);
this.buttonBrowse.Name = "buttonBrowse";
this.buttonBrowse.Size = new System.Drawing.Size(75, 23);
this.buttonBrowse.TabIndex = 14;
this.buttonBrowse.Text = "Browse";
this.buttonBrowse.UseVisualStyleBackColor = true;
//
// buttonCancel
//
this.buttonCancel.Location = new System.Drawing.Point(396, 109);
this.buttonCancel.Name = "buttonCancel";
this.buttonCancel.Size = new System.Drawing.Size(75, 23);
this.buttonCancel.TabIndex = 13;
this.buttonCancel.Text = "Cancel";
this.buttonCancel.UseVisualStyleBackColor = true;
//
// buttonOK
//
this.buttonOK.Location = new System.Drawing.Point(315, 109);
this.buttonOK.Name = "buttonOK";
this.buttonOK.Size = new System.Drawing.Size(75, 23);
this.buttonOK.TabIndex = 12;
this.buttonOK.Text = "OK";
this.buttonOK.UseVisualStyleBackColor = true;
//
// FormProfilePropertie
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(483, 144);
this.Controls.Add(this.buttonBrowse);
this.Controls.Add(this.buttonCancel);
this.Controls.Add(this.buttonOK);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.comboBox1);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.label3);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "FormProfilePropertie";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Properties";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Button buttonBrowse;
private System.Windows.Forms.Button buttonCancel;
private System.Windows.Forms.Button buttonOK;
}
}

View File

@ -8,9 +8,9 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace UniversalValveToolbox.forms {
public partial class FormEditProfile : Form {
public FormEditProfile() {
namespace UniversalValveToolbox {
public partial class FormProfilePropertie : Form {
public FormProfilePropertie() {
InitializeComponent();
}
}

View File

@ -0,0 +1,124 @@
namespace UniversalValveToolbox {
partial class FormProfiles {
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing) {
if (disposing && (components != null)) {
components.Dispose();
}
base.Dispose(disposing);
}
#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>
private void InitializeComponent() {
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormProfiles));
this.comboBox_Mod = new System.Windows.Forms.ComboBox();
this.buttonOK = new System.Windows.Forms.Button();
this.buttonCancel = new System.Windows.Forms.Button();
this.buttonEdit = new System.Windows.Forms.Button();
this.buttonNew = new System.Windows.Forms.Button();
this.buttonRemove = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// comboBox_Mod
//
this.comboBox_Mod.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox_Mod.FormattingEnabled = true;
this.comboBox_Mod.Location = new System.Drawing.Point(12, 12);
this.comboBox_Mod.Name = "comboBox_Mod";
this.comboBox_Mod.Size = new System.Drawing.Size(278, 21);
this.comboBox_Mod.TabIndex = 3;
//
// buttonOK
//
this.buttonOK.Location = new System.Drawing.Point(296, 10);
this.buttonOK.Name = "buttonOK";
this.buttonOK.Size = new System.Drawing.Size(75, 23);
this.buttonOK.TabIndex = 4;
this.buttonOK.Text = "OK";
this.buttonOK.UseVisualStyleBackColor = true;
//
// buttonCancel
//
this.buttonCancel.Location = new System.Drawing.Point(296, 39);
this.buttonCancel.Name = "buttonCancel";
this.buttonCancel.Size = new System.Drawing.Size(75, 23);
this.buttonCancel.TabIndex = 5;
this.buttonCancel.Text = "Cancel";
this.buttonCancel.UseVisualStyleBackColor = true;
//
// buttonEdit
//
this.buttonEdit.Location = new System.Drawing.Point(12, 39);
this.buttonEdit.Name = "buttonEdit";
this.buttonEdit.Size = new System.Drawing.Size(75, 23);
this.buttonEdit.TabIndex = 6;
this.buttonEdit.Text = "Edit";
this.buttonEdit.UseVisualStyleBackColor = true;
this.buttonEdit.Click += new System.EventHandler(this.buttonEdit_Click);
//
// buttonNew
//
this.buttonNew.Location = new System.Drawing.Point(93, 39);
this.buttonNew.Name = "buttonNew";
this.buttonNew.Size = new System.Drawing.Size(75, 23);
this.buttonNew.TabIndex = 7;
this.buttonNew.Text = "New";
this.buttonNew.UseVisualStyleBackColor = true;
this.buttonNew.Click += new System.EventHandler(this.buttonNew_Click);
//
// buttonRemove
//
this.buttonRemove.Location = new System.Drawing.Point(174, 39);
this.buttonRemove.Name = "buttonRemove";
this.buttonRemove.Size = new System.Drawing.Size(75, 23);
this.buttonRemove.TabIndex = 8;
this.buttonRemove.Text = "Remove";
this.buttonRemove.UseVisualStyleBackColor = true;
//
// FormProfiles
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(383, 74);
this.Controls.Add(this.buttonRemove);
this.Controls.Add(this.buttonNew);
this.Controls.Add(this.buttonEdit);
this.Controls.Add(this.buttonCancel);
this.Controls.Add(this.buttonOK);
this.Controls.Add(this.comboBox_Mod);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "FormProfiles";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Current game profile";
this.Load += new System.EventHandler(this.FormEditProfile_Load);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.ComboBox comboBox_Mod;
private System.Windows.Forms.Button buttonOK;
private System.Windows.Forms.Button buttonCancel;
private System.Windows.Forms.Button buttonEdit;
private System.Windows.Forms.Button buttonNew;
private System.Windows.Forms.Button buttonRemove;
}
}

View File

@ -0,0 +1,24 @@
using System;
using System.Windows.Forms;
namespace UniversalValveToolbox {
public partial class FormProfiles : Form {
public FormProfiles() {
InitializeComponent();
}
private void FormEditProfile_Load(object sender, EventArgs e) {
}
private void buttonNew_Click(object sender, EventArgs e) {
var frmProfilePropertie = new FormProfilePropertie();
frmProfilePropertie.ShowDialog();
}
private void buttonEdit_Click(object sender, EventArgs e) {
var frmProfilePropertie = new FormProfilePropertie();
frmProfilePropertie.ShowDialog();
}
}
}

View File

@ -1,5 +1,5 @@
namespace UniversalValveToolbox.forms {
partial class FormEditProfile {
namespace UniversalValveToolbox {
partial class FormSettings {
/// <summary>
/// Required designer variable.
/// </summary>
@ -23,26 +23,38 @@
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent() {
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormEditProfile));
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormSettings));
this.button4 = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// FormEditProfile
// button4
//
this.button4.Location = new System.Drawing.Point(12, 12);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(374, 23);
this.button4.TabIndex = 6;
this.button4.Text = "Search avalible engines";
this.button4.UseVisualStyleBackColor = true;
//
// FormSettings
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(470, 144);
this.ClientSize = new System.Drawing.Size(426, 78);
this.Controls.Add(this.button4);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "FormEditProfile";
this.Name = "FormSettings";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Edit";
this.Text = "FormSettings";
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Button button4;
}
}

File diff suppressed because it is too large Load Diff

View File

@ -55,22 +55,28 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="forms\FormEditProfile.cs">
<Compile Include="FormProfilePropertie.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="forms\FormEditProfile.Designer.cs">
<DependentUpon>FormEditProfile.cs</DependentUpon>
<Compile Include="FormProfilePropertie.Designer.cs">
<DependentUpon>FormProfilePropertie.cs</DependentUpon>
</Compile>
<Compile Include="forms\FormMain.cs">
<Compile Include="FormProfiles.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="forms\FormMain.Designer.cs">
<Compile Include="FormProfiles.Designer.cs">
<DependentUpon>FormProfiles.cs</DependentUpon>
</Compile>
<Compile Include="FormMain.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FormMain.Designer.cs">
<DependentUpon>FormMain.cs</DependentUpon>
</Compile>
<Compile Include="forms\FormSettings.cs">
<Compile Include="FormSettings.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="forms\FormSettings.Designer.cs">
<Compile Include="FormSettings.Designer.cs">
<DependentUpon>FormSettings.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
@ -80,13 +86,16 @@
<DesignTime>True</DesignTime>
<DependentUpon>str.resx</DependentUpon>
</Compile>
<EmbeddedResource Include="forms\FormEditProfile.resx">
<DependentUpon>FormEditProfile.cs</DependentUpon>
<EmbeddedResource Include="FormProfilePropertie.resx">
<DependentUpon>FormProfilePropertie.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="forms\FormMain.resx">
<EmbeddedResource Include="FormProfiles.resx">
<DependentUpon>FormProfiles.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FormMain.resx">
<DependentUpon>FormMain.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="forms\FormSettings.resx">
<EmbeddedResource Include="FormSettings.resx">
<DependentUpon>FormSettings.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">

View File

@ -1,204 +0,0 @@
namespace UniversalValveToolbox {
partial class FormSettings {
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing) {
if (disposing && (components != null)) {
components.Dispose();
}
base.Dispose(disposing);
}
#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>
private void InitializeComponent() {
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormSettings));
this.comboBox_Mod = new System.Windows.Forms.ComboBox();
this.label_Mod = new System.Windows.Forms.Label();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.button3 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.textBox2 = new System.Windows.Forms.TextBox();
this.textBox1 = new System.Windows.Forms.TextBox();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.button4 = new System.Windows.Forms.Button();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// comboBox_Mod
//
this.comboBox_Mod.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox_Mod.FormattingEnabled = true;
this.comboBox_Mod.Location = new System.Drawing.Point(89, 19);
this.comboBox_Mod.Name = "comboBox_Mod";
this.comboBox_Mod.Size = new System.Drawing.Size(279, 21);
this.comboBox_Mod.TabIndex = 2;
//
// label_Mod
//
this.label_Mod.AutoSize = true;
this.label_Mod.Location = new System.Drawing.Point(6, 22);
this.label_Mod.Name = "label_Mod";
this.label_Mod.Size = new System.Drawing.Size(83, 13);
this.label_Mod.TabIndex = 4;
this.label_Mod.Text = "Selected Game:";
//
// groupBox1
//
this.groupBox1.Controls.Add(this.button3);
this.groupBox1.Controls.Add(this.button2);
this.groupBox1.Controls.Add(this.button1);
this.groupBox1.Controls.Add(this.textBox2);
this.groupBox1.Controls.Add(this.textBox1);
this.groupBox1.Controls.Add(this.comboBox1);
this.groupBox1.Controls.Add(this.comboBox_Mod);
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Controls.Add(this.label_Mod);
this.groupBox1.Location = new System.Drawing.Point(432, 196);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(374, 165);
this.groupBox1.TabIndex = 5;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Projects";
//
// button3
//
this.button3.Location = new System.Drawing.Point(89, 136);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(75, 23);
this.button3.TabIndex = 6;
this.button3.Text = "New";
this.button3.UseVisualStyleBackColor = true;
//
// button2
//
this.button2.Location = new System.Drawing.Point(170, 136);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(75, 23);
this.button2.TabIndex = 6;
this.button2.Text = "Delete";
this.button2.UseVisualStyleBackColor = true;
//
// button1
//
this.button1.Location = new System.Drawing.Point(293, 136);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 6;
this.button1.Text = "Apply";
this.button1.UseVisualStyleBackColor = true;
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(89, 98);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(279, 20);
this.textBox2.TabIndex = 5;
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(89, 73);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(279, 20);
this.textBox1.TabIndex = 5;
//
// comboBox1
//
this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Location = new System.Drawing.Point(89, 46);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(279, 21);
this.comboBox1.TabIndex = 2;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(6, 101);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(68, 13);
this.label2.TabIndex = 4;
this.label2.Text = "Project Path:";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(6, 76);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(74, 13);
this.label1.TabIndex = 4;
this.label1.Text = "Project Name:";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(6, 49);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(77, 13);
this.label3.TabIndex = 4;
this.label3.Text = "Linked engine:";
//
// button4
//
this.button4.Location = new System.Drawing.Point(432, 393);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(374, 23);
this.button4.TabIndex = 6;
this.button4.Text = "Search avalible engines";
this.button4.UseVisualStyleBackColor = true;
//
// FormSettings
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(844, 485);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.button4);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "FormSettings";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "FormSettings";
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.ComboBox comboBox_Mod;
private System.Windows.Forms.Label label_Mod;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Button button4;
}
}