Archived
Added: autosave
This commit is contained in:
1 parent
eff57558ca
commit
b73a03683c
7 files changed
+143
-29
No files matched your search
@@ -149,7 +149,7 @@ namespace AppLauncher.Windows.Forms
|
||||
|
||||
g.DrawImageUnscaled(Properties.Resources.app_icon_24, 17, 17);
|
||||
|
||||
TextRenderer.DrawText(g, "Fizzy Launcher", new Font(this.Font.FontFamily, 14F), new Point(58, 17), Color.FromArgb(156, 158, 171));
|
||||
TextRenderer.DrawText(g, Application.ProductName, new Font(this.Font.FontFamily, 14F), new Point(58, 17), Color.FromArgb(156, 158, 171));
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -23,6 +23,8 @@ namespace AppLauncher.Windows.Forms
|
||||
private System.Windows.Forms.Label label6;
|
||||
private TYesNoPickerBox pickerBox5;
|
||||
private System.Windows.Forms.Label label7;
|
||||
private System.Windows.Forms.Label label8;
|
||||
private TPickerBox pickerBox6;
|
||||
|
||||
public MainForm parentForm { get; set; } = null;
|
||||
protected LauncherSession.HotKeyOptions hotKeyOptions = null;
|
||||
@@ -36,6 +38,15 @@ namespace AppLauncher.Windows.Forms
|
||||
textBox1.InnerTextBox.ReadOnly = true;
|
||||
textBox1.InnerTextBox.BackColor = Color.White;
|
||||
textBox1.InnerTextBox.KeyUp += textBox1_KeyUp;
|
||||
|
||||
pickerBox6.ComboBox.Items.Clear();
|
||||
foreach (string item in Enum.GetNames(typeof(LauncherSession.AutoSaveOption)))
|
||||
{
|
||||
pickerBox6.ComboBox.Items.Add(item);
|
||||
}
|
||||
|
||||
if (pickerBox6.ComboBox.Items.Count > 0) pickerBox6.ComboBox.SelectedIndex = 0;
|
||||
|
||||
}
|
||||
|
||||
private void InitializeComponent()
|
||||
@@ -56,6 +67,8 @@ namespace AppLauncher.Windows.Forms
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.pickerBox5 = new RyzStudio.Windows.ThemedForms.TYesNoPickerBox();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.pickerBox6 = new RyzStudio.Windows.ThemedForms.TPickerBox();
|
||||
((System.ComponentModel.ISupportInitialize)(this.imgbxClose)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
@@ -226,7 +239,7 @@ namespace AppLauncher.Windows.Forms
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.pickerBox4.BackColor = System.Drawing.Color.Transparent;
|
||||
this.pickerBox4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
|
||||
this.pickerBox4.Location = new System.Drawing.Point(159, 259);
|
||||
this.pickerBox4.Location = new System.Drawing.Point(159, 300);
|
||||
this.pickerBox4.Margin = new System.Windows.Forms.Padding(10, 4, 10, 4);
|
||||
this.pickerBox4.Name = "pickerBox4";
|
||||
this.pickerBox4.Padding = new System.Windows.Forms.Padding(10, 6, 7, 5);
|
||||
@@ -239,7 +252,7 @@ namespace AppLauncher.Windows.Forms
|
||||
//
|
||||
this.label6.BackColor = System.Drawing.Color.Transparent;
|
||||
this.label6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(95)))), ((int)(((byte)(99)))), ((int)(((byte)(104)))));
|
||||
this.label6.Location = new System.Drawing.Point(18, 259);
|
||||
this.label6.Location = new System.Drawing.Point(18, 300);
|
||||
this.label6.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(131, 32);
|
||||
@@ -253,7 +266,7 @@ namespace AppLauncher.Windows.Forms
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.pickerBox5.BackColor = System.Drawing.Color.Transparent;
|
||||
this.pickerBox5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
|
||||
this.pickerBox5.Location = new System.Drawing.Point(159, 300);
|
||||
this.pickerBox5.Location = new System.Drawing.Point(159, 341);
|
||||
this.pickerBox5.Margin = new System.Windows.Forms.Padding(10, 4, 10, 4);
|
||||
this.pickerBox5.Name = "pickerBox5";
|
||||
this.pickerBox5.Padding = new System.Windows.Forms.Padding(10, 6, 7, 5);
|
||||
@@ -266,7 +279,7 @@ namespace AppLauncher.Windows.Forms
|
||||
//
|
||||
this.label7.BackColor = System.Drawing.Color.Transparent;
|
||||
this.label7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(95)))), ((int)(((byte)(99)))), ((int)(((byte)(104)))));
|
||||
this.label7.Location = new System.Drawing.Point(18, 300);
|
||||
this.label7.Location = new System.Drawing.Point(18, 341);
|
||||
this.label7.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(131, 32);
|
||||
@@ -274,9 +287,37 @@ namespace AppLauncher.Windows.Forms
|
||||
this.label7.Text = "Hide On Click";
|
||||
this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// label8
|
||||
//
|
||||
this.label8.BackColor = System.Drawing.Color.Transparent;
|
||||
this.label8.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(95)))), ((int)(((byte)(99)))), ((int)(((byte)(104)))));
|
||||
this.label8.Location = new System.Drawing.Point(18, 259);
|
||||
this.label8.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(131, 32);
|
||||
this.label8.TabIndex = 186;
|
||||
this.label8.Text = "Auto Save";
|
||||
this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// pickerBox6
|
||||
//
|
||||
this.pickerBox6.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.pickerBox6.BackColor = System.Drawing.Color.Transparent;
|
||||
this.pickerBox6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
|
||||
this.pickerBox6.Location = new System.Drawing.Point(159, 259);
|
||||
this.pickerBox6.Margin = new System.Windows.Forms.Padding(10, 4, 10, 4);
|
||||
this.pickerBox6.Name = "pickerBox6";
|
||||
this.pickerBox6.Padding = new System.Windows.Forms.Padding(10, 6, 7, 5);
|
||||
this.pickerBox6.Size = new System.Drawing.Size(220, 32);
|
||||
this.pickerBox6.SubmitButton = null;
|
||||
this.pickerBox6.TabIndex = 187;
|
||||
//
|
||||
// OptionsForm
|
||||
//
|
||||
this.ClientSize = new System.Drawing.Size(400, 480);
|
||||
this.Controls.Add(this.pickerBox6);
|
||||
this.Controls.Add(this.label8);
|
||||
this.Controls.Add(this.pickerBox5);
|
||||
this.Controls.Add(this.label7);
|
||||
this.Controls.Add(this.pickerBox4);
|
||||
@@ -312,6 +353,8 @@ namespace AppLauncher.Windows.Forms
|
||||
this.Controls.SetChildIndex(this.pickerBox4, 0);
|
||||
this.Controls.SetChildIndex(this.label7, 0);
|
||||
this.Controls.SetChildIndex(this.pickerBox5, 0);
|
||||
this.Controls.SetChildIndex(this.label8, 0);
|
||||
this.Controls.SetChildIndex(this.pickerBox6, 0);
|
||||
((System.ComponentModel.ISupportInitialize)(this.imgbxClose)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
@@ -350,6 +393,7 @@ namespace AppLauncher.Windows.Forms
|
||||
|
||||
pickerBox4.Value = parentForm.CurrentSession.HideOnClose;
|
||||
pickerBox5.Value = parentForm.CurrentSession.HideOnClick;
|
||||
pickerBox6.ComboBox.SelectedIndex = (int)parentForm.CurrentSession.AutoSave;
|
||||
|
||||
}
|
||||
|
||||
@@ -369,6 +413,7 @@ namespace AppLauncher.Windows.Forms
|
||||
|
||||
parentForm.CurrentSession.HideOnClose = pickerBox4.Value;
|
||||
parentForm.CurrentSession.HideOnClick = pickerBox5.Value;
|
||||
parentForm.CurrentSession.AutoSave = (LauncherSession.AutoSaveOption)pickerBox6.ComboBox.SelectedIndex;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user