[WIP] Adjusted the autoupdate location

Also added a settings button. Still need to add
a settings page exposing the settings.
This commit is contained in:
Terry MacDonald 2020-12-12 22:54:34 +13:00
parent c662681860
commit 2d46e4e3f8
4 changed files with 67 additions and 25 deletions

1
.gitignore vendored
View File

@ -250,3 +250,4 @@ HeliosDisplayManagement.Setup/HeliosDisplayManagement.Setup/*
/vs_community__1091181154.1584848614.exe
/MigrationBackup
/Notes
/DisplayMagician/Resources/settings.png

View File

@ -31,8 +31,10 @@
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.lbl_create_profile = new System.Windows.Forms.Label();
this.btn_setup_display_profiles = new System.Windows.Forms.Button();
this.pb_display_profile = new System.Windows.Forms.PictureBox();
this.lbl_create_shortcut = new System.Windows.Forms.Label();
this.cb_minimise_notification_area = new System.Windows.Forms.CheckBox();
this.lbl_version = new System.Windows.Forms.Label();
this.btn_setup_game_shortcuts = new System.Windows.Forms.Button();
@ -51,8 +53,7 @@
this.shortcutToolStripSeparator = new System.Windows.Forms.ToolStripSeparator();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.lbl_create_profile = new System.Windows.Forms.Label();
this.lbl_create_shortcut = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
@ -70,6 +71,7 @@
//
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.Controls.Add(this.button1);
this.splitContainer1.Panel1.Controls.Add(this.lbl_create_profile);
this.splitContainer1.Panel1.Controls.Add(this.btn_setup_display_profiles);
this.splitContainer1.Panel1.Controls.Add(this.pb_display_profile);
@ -84,6 +86,14 @@
this.splitContainer1.Panel2.Controls.Add(this.pb_game_shortcut);
this.splitContainer1.TabStop = false;
//
// lbl_create_profile
//
resources.ApplyResources(this.lbl_create_profile, "lbl_create_profile");
this.lbl_create_profile.BackColor = System.Drawing.Color.Brown;
this.lbl_create_profile.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.lbl_create_profile.ForeColor = System.Drawing.Color.White;
this.lbl_create_profile.Name = "lbl_create_profile";
//
// btn_setup_display_profiles
//
resources.ApplyResources(this.btn_setup_display_profiles, "btn_setup_display_profiles");
@ -101,6 +111,14 @@
this.pb_display_profile.TabStop = false;
this.pb_display_profile.Click += new System.EventHandler(this.pb_display_profile_Click);
//
// lbl_create_shortcut
//
resources.ApplyResources(this.lbl_create_shortcut, "lbl_create_shortcut");
this.lbl_create_shortcut.BackColor = System.Drawing.Color.Brown;
this.lbl_create_shortcut.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.lbl_create_shortcut.ForeColor = System.Drawing.Color.White;
this.lbl_create_shortcut.Name = "lbl_create_shortcut";
//
// cb_minimise_notification_area
//
resources.ApplyResources(this.cb_minimise_notification_area, "cb_minimise_notification_area");
@ -225,21 +243,14 @@
resources.ApplyResources(this.exitToolStripMenuItem, "exitToolStripMenuItem");
this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
//
// lbl_create_profile
// button1
//
resources.ApplyResources(this.lbl_create_profile, "lbl_create_profile");
this.lbl_create_profile.BackColor = System.Drawing.Color.Brown;
this.lbl_create_profile.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.lbl_create_profile.ForeColor = System.Drawing.Color.White;
this.lbl_create_profile.Name = "lbl_create_profile";
//
// lbl_create_shortcut
//
resources.ApplyResources(this.lbl_create_shortcut, "lbl_create_shortcut");
this.lbl_create_shortcut.BackColor = System.Drawing.Color.Brown;
this.lbl_create_shortcut.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.lbl_create_shortcut.ForeColor = System.Drawing.Color.White;
this.lbl_create_shortcut.Name = "lbl_create_shortcut";
this.button1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.IndianRed;
this.button1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Brown;
resources.ApplyResources(this.button1, "button1");
this.button1.ForeColor = System.Drawing.Color.White;
this.button1.Name = "button1";
this.button1.UseVisualStyleBackColor = true;
//
// MainForm
//
@ -290,5 +301,6 @@
public System.Windows.Forms.NotifyIcon notifyIcon;
private System.Windows.Forms.Label lbl_create_profile;
private System.Windows.Forms.Label lbl_create_shortcut;
private System.Windows.Forms.Button button1;
}
}

View File

@ -125,8 +125,10 @@ namespace DisplayMagician.UIForms
//SteamGame.GetAllInstalledGames();
EnableShortcutButtonIfProfiles();
//Run the AutoUpdater to see if there are any updates available.
AutoUpdater.CheckForUpdateEvent += AutoUpdaterOnCheckForUpdateEvent;
AutoUpdater.Start("http://rbsoft.org/updates/AutoUpdaterTest.json");
AutoUpdater.ParseUpdateInfoEvent += AutoUpdaterOnParseUpdateInfoEvent;
AutoUpdater.Start("http://displaymagician.littlebitbig.com/updates/displaymagician.json");
}
private void EnableShortcutButtonIfProfiles()

View File

@ -132,6 +132,33 @@
<data name="splitContainer1.Orientation" type="System.Windows.Forms.Orientation, System.Windows.Forms">
<value>Horizontal</value>
</data>
<data name="button1.FlatStyle" type="System.Windows.Forms.FlatStyle, System.Windows.Forms">
<value>Flat</value>
</data>
<data name="button1.Location" type="System.Drawing.Point, System.Drawing">
<value>700, 8</value>
</data>
<data name="button1.Size" type="System.Drawing.Size, System.Drawing">
<value>75, 23</value>
</data>
<data name="button1.TabIndex" type="System.Int32, mscorlib">
<value>7</value>
</data>
<data name="button1.Text" xml:space="preserve">
<value>Settings</value>
</data>
<data name="&gt;&gt;button1.Name" xml:space="preserve">
<value>button1</value>
</data>
<data name="&gt;&gt;button1.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;button1.Parent" xml:space="preserve">
<value>splitContainer1.Panel1</value>
</data>
<data name="&gt;&gt;button1.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="lbl_create_profile.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>None</value>
</data>
@ -163,7 +190,7 @@
<value>splitContainer1.Panel1</value>
</data>
<data name="&gt;&gt;lbl_create_profile.ZOrder" xml:space="preserve">
<value>0</value>
<value>1</value>
</data>
<data name="btn_setup_display_profiles.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>None</value>
@ -196,7 +223,7 @@
<value>splitContainer1.Panel1</value>
</data>
<data name="&gt;&gt;btn_setup_display_profiles.ZOrder" xml:space="preserve">
<value>1</value>
<value>2</value>
</data>
<data name="pb_display_profile.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
@ -10744,7 +10771,7 @@
<value>splitContainer1.Panel1</value>
</data>
<data name="&gt;&gt;pb_display_profile.ZOrder" xml:space="preserve">
<value>2</value>
<value>3</value>
</data>
<data name="&gt;&gt;splitContainer1.Panel1.Name" xml:space="preserve">
<value>splitContainer1.Panel1</value>
@ -10771,7 +10798,7 @@
<value>NoControl</value>
</data>
<data name="lbl_create_shortcut.Location" type="System.Drawing.Point, System.Drawing">
<value>220, 247</value>
<value>220, 249</value>
</data>
<data name="lbl_create_shortcut.Size" type="System.Drawing.Size, System.Drawing">
<value>343, 22</value>
@ -10810,7 +10837,7 @@
<value>NoControl</value>
</data>
<data name="cb_minimise_notification_area.Location" type="System.Drawing.Point, System.Drawing">
<value>232, 355</value>
<value>232, 358</value>
</data>
<data name="cb_minimise_notification_area.Size" type="System.Drawing.Size, System.Drawing">
<value>332, 20</value>
@ -10843,7 +10870,7 @@
<value>Microsoft Sans Serif, 9.75pt</value>
</data>
<data name="lbl_version.Location" type="System.Drawing.Point, System.Drawing">
<value>12, 357</value>
<value>12, 360</value>
</data>
<data name="lbl_version.Size" type="System.Drawing.Size, System.Drawing">
<value>25, 16</value>
@ -10879,7 +10906,7 @@
<value>Microsoft Sans Serif, 21.75pt</value>
</data>
<data name="btn_setup_game_shortcuts.Location" type="System.Drawing.Point, System.Drawing">
<value>212, 174</value>
<value>212, 176</value>
</data>
<data name="btn_setup_game_shortcuts.Size" type="System.Drawing.Size, System.Drawing">
<value>360, 50</value>
@ -10912,7 +10939,7 @@
<value>NoControl</value>
</data>
<data name="btn_exit.Location" type="System.Drawing.Point, System.Drawing">
<value>700, 352</value>
<value>700, 353</value>
</data>
<data name="btn_exit.Size" type="System.Drawing.Size, System.Drawing">
<value>75, 23</value>