mirror of
https://github.com/terrymacdonald/DisplayMagician.git
synced 2024-08-30 18:32:20 +00:00
Added a back button to SettingsForm
This commit is contained in:
parent
1c7b208e8b
commit
40ab916050
@ -84,7 +84,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="AudioSwitcher.AudioApi.CoreAudio">
|
<PackageReference Include="AudioSwitcher.AudioApi.CoreAudio">
|
||||||
<Version>3.0.0.1</Version>
|
<Version>4.0.0-alpha5</Version>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
<PackageReference Include="Costura.Fody">
|
<PackageReference Include="Costura.Fody">
|
||||||
<Version>4.1.0</Version>
|
<Version>4.1.0</Version>
|
||||||
|
21
DisplayMagician/UIForms/SettingsForm.Designer.cs
generated
21
DisplayMagician/UIForms/SettingsForm.Designer.cs
generated
@ -32,6 +32,7 @@ namespace DisplayMagician.UIForms
|
|||||||
this.cb_minimise_notification_area = new System.Windows.Forms.CheckBox();
|
this.cb_minimise_notification_area = new System.Windows.Forms.CheckBox();
|
||||||
this.cmb_loglevel = new System.Windows.Forms.ComboBox();
|
this.cmb_loglevel = new System.Windows.Forms.ComboBox();
|
||||||
this.label1 = new System.Windows.Forms.Label();
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
|
this.btn_back = new System.Windows.Forms.Button();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// cb_minimise_notification_area
|
// cb_minimise_notification_area
|
||||||
@ -68,19 +69,38 @@ namespace DisplayMagician.UIForms
|
|||||||
this.label1.TabIndex = 8;
|
this.label1.TabIndex = 8;
|
||||||
this.label1.Text = "What type of logging?";
|
this.label1.Text = "What type of logging?";
|
||||||
//
|
//
|
||||||
|
// btn_back
|
||||||
|
//
|
||||||
|
this.btn_back.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||||
|
this.btn_back.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||||
|
this.btn_back.FlatAppearance.MouseDownBackColor = System.Drawing.Color.IndianRed;
|
||||||
|
this.btn_back.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Brown;
|
||||||
|
this.btn_back.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.btn_back.ForeColor = System.Drawing.Color.White;
|
||||||
|
this.btn_back.Location = new System.Drawing.Point(457, 152);
|
||||||
|
this.btn_back.Name = "btn_back";
|
||||||
|
this.btn_back.Size = new System.Drawing.Size(75, 23);
|
||||||
|
this.btn_back.TabIndex = 9;
|
||||||
|
this.btn_back.Text = "&Back";
|
||||||
|
this.btn_back.UseVisualStyleBackColor = true;
|
||||||
|
this.btn_back.Click += new System.EventHandler(this.btn_back_Click);
|
||||||
|
//
|
||||||
// SettingsForm
|
// SettingsForm
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.BackColor = System.Drawing.Color.Black;
|
this.BackColor = System.Drawing.Color.Black;
|
||||||
this.ClientSize = new System.Drawing.Size(544, 187);
|
this.ClientSize = new System.Drawing.Size(544, 187);
|
||||||
|
this.Controls.Add(this.btn_back);
|
||||||
this.Controls.Add(this.label1);
|
this.Controls.Add(this.label1);
|
||||||
this.Controls.Add(this.cmb_loglevel);
|
this.Controls.Add(this.cmb_loglevel);
|
||||||
this.Controls.Add(this.cb_minimise_notification_area);
|
this.Controls.Add(this.cb_minimise_notification_area);
|
||||||
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||||
this.MaximizeBox = false;
|
this.MaximizeBox = false;
|
||||||
this.MinimizeBox = false;
|
this.MinimizeBox = false;
|
||||||
this.Name = "SettingsForm";
|
this.Name = "SettingsForm";
|
||||||
this.ShowIcon = false;
|
this.ShowIcon = false;
|
||||||
|
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
|
||||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||||
this.Text = "Settings";
|
this.Text = "Settings";
|
||||||
this.TopMost = true;
|
this.TopMost = true;
|
||||||
@ -96,5 +116,6 @@ namespace DisplayMagician.UIForms
|
|||||||
private System.Windows.Forms.CheckBox cb_minimise_notification_area;
|
private System.Windows.Forms.CheckBox cb_minimise_notification_area;
|
||||||
private System.Windows.Forms.ComboBox cmb_loglevel;
|
private System.Windows.Forms.ComboBox cmb_loglevel;
|
||||||
private System.Windows.Forms.Label label1;
|
private System.Windows.Forms.Label label1;
|
||||||
|
private System.Windows.Forms.Button btn_back;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -99,5 +99,10 @@ namespace DisplayMagician.UIForms
|
|||||||
mySettings.LogLevel = "Warn";
|
mySettings.LogLevel = "Warn";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void btn_back_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.Close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user