diff --git a/SuperSize/Forms/ConfigForm.Designer.cs b/SuperSize/Forms/ConfigForm.Designer.cs
index b738b16..2b6c47c 100644
--- a/SuperSize/Forms/ConfigForm.Designer.cs
+++ b/SuperSize/Forms/ConfigForm.Designer.cs
@@ -32,6 +32,9 @@ private void InitializeComponent()
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ConfigForm));
this._aboutPage = new System.Windows.Forms.TabPage();
+ this.groupBox2 = new System.Windows.Forms.GroupBox();
+ this.label3 = new System.Windows.Forms.Label();
+ this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
@@ -51,17 +54,14 @@ private void InitializeComponent()
this.keybindLabel = new System.Windows.Forms.Label();
this._configPreview = new System.Windows.Forms.PictureBox();
this.timer1 = new System.Windows.Forms.Timer(this.components);
- this.pictureBox2 = new System.Windows.Forms.PictureBox();
- this.groupBox2 = new System.Windows.Forms.GroupBox();
- this.label3 = new System.Windows.Forms.Label();
this._aboutPage.SuspendLayout();
+ this.groupBox2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.groupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this._configPreview)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
- this.groupBox2.SuspendLayout();
this.SuspendLayout();
//
// _aboutPage
@@ -79,6 +79,36 @@ private void InitializeComponent()
this._aboutPage.Text = "About";
this._aboutPage.UseVisualStyleBackColor = true;
//
+ // groupBox2
+ //
+ this.groupBox2.Controls.Add(this.label3);
+ this.groupBox2.Controls.Add(this.pictureBox2);
+ this.groupBox2.Location = new System.Drawing.Point(3, 86);
+ this.groupBox2.Name = "groupBox2";
+ this.groupBox2.Size = new System.Drawing.Size(370, 344);
+ this.groupBox2.TabIndex = 7;
+ this.groupBox2.TabStop = false;
+ this.groupBox2.Text = "Bella";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(100, 184);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(194, 15);
+ this.label3.TabIndex = 7;
+ this.label3.Text = "You\'ve been visited by Bella the cat.";
+ //
+ // pictureBox2
+ //
+ this.pictureBox2.Image = global::SuperSize.Properties.Resources.Bella;
+ this.pictureBox2.Location = new System.Drawing.Point(51, 68);
+ this.pictureBox2.Name = "pictureBox2";
+ this.pictureBox2.Size = new System.Drawing.Size(100, 100);
+ this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+ this.pictureBox2.TabIndex = 6;
+ this.pictureBox2.TabStop = false;
+ //
// label2
//
this.label2.AutoSize = true;
@@ -106,6 +136,7 @@ private void InitializeComponent()
this.pictureBox1.Size = new System.Drawing.Size(64, 64);
this.pictureBox1.TabIndex = 3;
this.pictureBox1.TabStop = false;
+ this.pictureBox1.DoubleClick += new System.EventHandler(this.pictureBox1_DoubleClick);
//
// versionLbl
//
@@ -286,36 +317,6 @@ private void InitializeComponent()
this.timer1.Enabled = true;
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
//
- // pictureBox2
- //
- this.pictureBox2.Image = global::SuperSize.Properties.Resources.Bella;
- this.pictureBox2.Location = new System.Drawing.Point(51, 68);
- this.pictureBox2.Name = "pictureBox2";
- this.pictureBox2.Size = new System.Drawing.Size(100, 100);
- this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
- this.pictureBox2.TabIndex = 6;
- this.pictureBox2.TabStop = false;
- //
- // groupBox2
- //
- this.groupBox2.Controls.Add(this.label3);
- this.groupBox2.Controls.Add(this.pictureBox2);
- this.groupBox2.Location = new System.Drawing.Point(3, 86);
- this.groupBox2.Name = "groupBox2";
- this.groupBox2.Size = new System.Drawing.Size(370, 344);
- this.groupBox2.TabIndex = 7;
- this.groupBox2.TabStop = false;
- this.groupBox2.Text = "Bella";
- //
- // label3
- //
- this.label3.AutoSize = true;
- this.label3.Location = new System.Drawing.Point(100, 184);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(194, 15);
- this.label3.TabIndex = 7;
- this.label3.Text = "You\'ve been visited by Bella the cat.";
- //
// ConfigForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
@@ -333,6 +334,9 @@ private void InitializeComponent()
this.Load += new System.EventHandler(this.ConfigForm_Load);
this._aboutPage.ResumeLayout(false);
this._aboutPage.PerformLayout();
+ this.groupBox2.ResumeLayout(false);
+ this.groupBox2.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.tabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
@@ -340,9 +344,6 @@ private void InitializeComponent()
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this._configPreview)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
- this.groupBox2.ResumeLayout(false);
- this.groupBox2.PerformLayout();
this.ResumeLayout(false);
}
diff --git a/SuperSize/Forms/ConfigForm.cs b/SuperSize/Forms/ConfigForm.cs
index e861ad3..4ff5b36 100644
--- a/SuperSize/Forms/ConfigForm.cs
+++ b/SuperSize/Forms/ConfigForm.cs
@@ -234,5 +234,30 @@ private void customScriptRadio_CheckedChanged(object sender, EventArgs e)
builtinScriptChooser.Enabled = !useCustomScript;
SaveScript();
}
+
+ private void pictureBox1_DoubleClick(object sender, EventArgs e)
+ {
+ var response = MessageBox.Show(
+ this,
+ "What have you royally screwed up so much that you need to reset the program settings? Are you sure you want to do this?",
+ "Settings Reset",
+ MessageBoxButtons.YesNo,
+ MessageBoxIcon.Warning,
+ MessageBoxDefaultButton.Button2);
+ if (response != DialogResult.Yes)
+ {
+ MessageBox.Show(
+ this,
+ "I'll let you off the hook for now...",
+ "Operation Cancelled");
+ return;
+ }
+
+ Properties.Settings.Default.Reset();
+ Properties.Settings.Default.Save();
+
+ MessageBox.Show("Please restart the application.");
+ Program.Exit();
+ }
}
}
diff --git a/SuperSize/Forms/NotifyIconForm.cs b/SuperSize/Forms/NotifyIconForm.cs
index b38f0f9..ad92ea0 100644
--- a/SuperSize/Forms/NotifyIconForm.cs
+++ b/SuperSize/Forms/NotifyIconForm.cs
@@ -66,7 +66,12 @@ private void notifyIcon_MouseClick(object sender, MouseEventArgs e)
private void NotifyIconForm_Shown(object sender, EventArgs e)
{
Hide();
- new WelcomeForm().Show();
+
+ // if the user hasn't been onboarded, do that now
+ if (!Properties.Settings.Default.WasOnboarded)
+ {
+ new WelcomeForm().Show();
+ }
}
private void openConfigForm_Click(object sender, EventArgs e)
@@ -96,7 +101,7 @@ private void sendFeedback_Click(object sender, EventArgs e)
procInfo.ArgumentList.Add("/c");
procInfo.ArgumentList.Add("start");
procInfo.ArgumentList.Add("https://github.com/thegreatrazz/SuperSize/issues/new");
-
+
Process.Start(procInfo);
}
}
diff --git a/SuperSize/Forms/WelcomeForm.Designer.cs b/SuperSize/Forms/WelcomeForm.Designer.cs
index aba3261..8ea1676 100644
--- a/SuperSize/Forms/WelcomeForm.Designer.cs
+++ b/SuperSize/Forms/WelcomeForm.Designer.cs
@@ -118,6 +118,7 @@ private void InitializeComponent()
this.Name = "WelcomeForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Welcome to SuperSize";
+ this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.WelcomeForm_FormClosed);
this.Load += new System.EventHandler(this.WelcomeForm_Load);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
diff --git a/SuperSize/Forms/WelcomeForm.cs b/SuperSize/Forms/WelcomeForm.cs
index aa1bc7b..d3806f6 100644
--- a/SuperSize/Forms/WelcomeForm.cs
+++ b/SuperSize/Forms/WelcomeForm.cs
@@ -60,5 +60,13 @@ private void WelcomeForm_Load(object sender, EventArgs e)
{
FormBorderStyle = FormBorderStyle.FixedSingle;
}
+
+ private void WelcomeForm_FormClosed(object sender, FormClosedEventArgs e)
+ {
+ // don't onboard again
+ var settings = Properties.Settings.Default;
+ settings.WasOnboarded = true;
+ settings.Save();
+ }
}
}
diff --git a/SuperSize/Properties/Settings.Designer.cs b/SuperSize/Properties/Settings.Designer.cs
index 7234fe6..2491de8 100644
--- a/SuperSize/Properties/Settings.Designer.cs
+++ b/SuperSize/Properties/Settings.Designer.cs
@@ -154,5 +154,17 @@ public string BuiltinScript {
this["WindowPreviewBorder"] = value;
}
}
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("False")]
+ public bool WasOnboarded {
+ get {
+ return ((bool)(this["WasOnboarded"]));
+ }
+ set {
+ this["WasOnboarded"] = value;
+ }
+ }
}
}
diff --git a/SuperSize/Properties/Settings.settings b/SuperSize/Properties/Settings.settings
index 376866a..d8724ba 100644
--- a/SuperSize/Properties/Settings.settings
+++ b/SuperSize/Properties/Settings.settings
@@ -35,5 +35,8 @@
232, 17, 35
+
+ False
+
\ No newline at end of file