Zweig ohne Cancel Button. der wird nicht benötigt, weil es ja das Schließen Symbol recht oben im Fenster gibt.

This commit is contained in:
Eugen Höglinger 2020-02-26 14:53:45 +01:00
parent 92afd6c313
commit 521e22bb74
2 changed files with 1 additions and 21 deletions

View File

@ -29,7 +29,6 @@
private void InitializeComponent()
{
this.buttonSetEnv = new System.Windows.Forms.Button();
this.buttonCancel = new System.Windows.Forms.Button();
this.labelEnv = new System.Windows.Forms.Label();
this.labelNewEnv = new System.Windows.Forms.Label();
this.labelParse = new System.Windows.Forms.Label();
@ -46,16 +45,6 @@
this.buttonSetEnv.UseVisualStyleBackColor = true;
this.buttonSetEnv.Click += new System.EventHandler(this.buttonSetEnv_Click);
//
// buttonCancel
//
this.buttonCancel.Location = new System.Drawing.Point(368, 142);
this.buttonCancel.Name = "buttonCancel";
this.buttonCancel.Size = new System.Drawing.Size(75, 23);
this.buttonCancel.TabIndex = 1;
this.buttonCancel.Text = "Cancel";
this.buttonCancel.UseVisualStyleBackColor = true;
this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
//
// labelEnv
//
this.labelEnv.AutoSize = true;
@ -101,7 +90,6 @@
this.Controls.Add(this.labelParse);
this.Controls.Add(this.labelNewEnv);
this.Controls.Add(this.labelEnv);
this.Controls.Add(this.buttonCancel);
this.Controls.Add(this.buttonSetEnv);
this.Name = "Form1";
this.Text = "Form1";
@ -113,7 +101,6 @@
#endregion
private System.Windows.Forms.Button buttonSetEnv;
private System.Windows.Forms.Button buttonCancel;
private System.Windows.Forms.Label labelEnv;
private System.Windows.Forms.Label labelNewEnv;
private System.Windows.Forms.Label labelParse;

View File

@ -19,11 +19,6 @@ namespace Test_EnvSetzen
InitializeComponent();
}
private void buttonCancel_Click(object sender, EventArgs e)
{
this.Close();
}
private void buttonSetEnv_Click(object sender, EventArgs e)
{
//ENV setzen
@ -40,9 +35,7 @@ namespace Test_EnvSetzen
{
string filename = @"M:\ug\NX12_NXTC\global\00_DEFAULTS\UGII\ugii_env.dat";
var setUgii = new UgiiEnvParser(filename);
labelEnv.Text = Environment.GetEnvironmentVariable("NXTOOLS_SYSDIR");
var setUgii = new UgiiEnvParser(filename); labelEnv.Text = Environment.GetEnvironmentVariable("NXTOOLS_SYSDIR");
labelEnv.Refresh();
}
}