mirror of
https://github.com/terrymacdonald/DisplayMagician.git
synced 2024-08-30 18:32:20 +00:00
[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:
parent
c662681860
commit
2d46e4e3f8
1
.gitignore
vendored
1
.gitignore
vendored
@ -250,3 +250,4 @@ HeliosDisplayManagement.Setup/HeliosDisplayManagement.Setup/*
|
|||||||
/vs_community__1091181154.1584848614.exe
|
/vs_community__1091181154.1584848614.exe
|
||||||
/MigrationBackup
|
/MigrationBackup
|
||||||
/Notes
|
/Notes
|
||||||
|
/DisplayMagician/Resources/settings.png
|
||||||
|
44
DisplayMagician/UIForms/MainForm.Designer.cs
generated
44
DisplayMagician/UIForms/MainForm.Designer.cs
generated
@ -31,8 +31,10 @@
|
|||||||
this.components = new System.ComponentModel.Container();
|
this.components = new System.ComponentModel.Container();
|
||||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
|
||||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
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.btn_setup_display_profiles = new System.Windows.Forms.Button();
|
||||||
this.pb_display_profile = new System.Windows.Forms.PictureBox();
|
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.cb_minimise_notification_area = new System.Windows.Forms.CheckBox();
|
||||||
this.lbl_version = new System.Windows.Forms.Label();
|
this.lbl_version = new System.Windows.Forms.Label();
|
||||||
this.btn_setup_game_shortcuts = new System.Windows.Forms.Button();
|
this.btn_setup_game_shortcuts = new System.Windows.Forms.Button();
|
||||||
@ -51,8 +53,7 @@
|
|||||||
this.shortcutToolStripSeparator = new System.Windows.Forms.ToolStripSeparator();
|
this.shortcutToolStripSeparator = new System.Windows.Forms.ToolStripSeparator();
|
||||||
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
|
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
|
||||||
this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.lbl_create_profile = new System.Windows.Forms.Label();
|
this.button1 = new System.Windows.Forms.Button();
|
||||||
this.lbl_create_shortcut = new System.Windows.Forms.Label();
|
|
||||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||||
this.splitContainer1.Panel1.SuspendLayout();
|
this.splitContainer1.Panel1.SuspendLayout();
|
||||||
this.splitContainer1.Panel2.SuspendLayout();
|
this.splitContainer1.Panel2.SuspendLayout();
|
||||||
@ -70,6 +71,7 @@
|
|||||||
//
|
//
|
||||||
// splitContainer1.Panel1
|
// splitContainer1.Panel1
|
||||||
//
|
//
|
||||||
|
this.splitContainer1.Panel1.Controls.Add(this.button1);
|
||||||
this.splitContainer1.Panel1.Controls.Add(this.lbl_create_profile);
|
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.btn_setup_display_profiles);
|
||||||
this.splitContainer1.Panel1.Controls.Add(this.pb_display_profile);
|
this.splitContainer1.Panel1.Controls.Add(this.pb_display_profile);
|
||||||
@ -84,6 +86,14 @@
|
|||||||
this.splitContainer1.Panel2.Controls.Add(this.pb_game_shortcut);
|
this.splitContainer1.Panel2.Controls.Add(this.pb_game_shortcut);
|
||||||
this.splitContainer1.TabStop = false;
|
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
|
// btn_setup_display_profiles
|
||||||
//
|
//
|
||||||
resources.ApplyResources(this.btn_setup_display_profiles, "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.TabStop = false;
|
||||||
this.pb_display_profile.Click += new System.EventHandler(this.pb_display_profile_Click);
|
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
|
// cb_minimise_notification_area
|
||||||
//
|
//
|
||||||
resources.ApplyResources(this.cb_minimise_notification_area, "cb_minimise_notification_area");
|
resources.ApplyResources(this.cb_minimise_notification_area, "cb_minimise_notification_area");
|
||||||
@ -225,21 +243,14 @@
|
|||||||
resources.ApplyResources(this.exitToolStripMenuItem, "exitToolStripMenuItem");
|
resources.ApplyResources(this.exitToolStripMenuItem, "exitToolStripMenuItem");
|
||||||
this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
|
this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
// lbl_create_profile
|
// button1
|
||||||
//
|
//
|
||||||
resources.ApplyResources(this.lbl_create_profile, "lbl_create_profile");
|
this.button1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.IndianRed;
|
||||||
this.lbl_create_profile.BackColor = System.Drawing.Color.Brown;
|
this.button1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Brown;
|
||||||
this.lbl_create_profile.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
resources.ApplyResources(this.button1, "button1");
|
||||||
this.lbl_create_profile.ForeColor = System.Drawing.Color.White;
|
this.button1.ForeColor = System.Drawing.Color.White;
|
||||||
this.lbl_create_profile.Name = "lbl_create_profile";
|
this.button1.Name = "button1";
|
||||||
//
|
this.button1.UseVisualStyleBackColor = true;
|
||||||
// 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";
|
|
||||||
//
|
//
|
||||||
// MainForm
|
// MainForm
|
||||||
//
|
//
|
||||||
@ -290,5 +301,6 @@
|
|||||||
public System.Windows.Forms.NotifyIcon notifyIcon;
|
public System.Windows.Forms.NotifyIcon notifyIcon;
|
||||||
private System.Windows.Forms.Label lbl_create_profile;
|
private System.Windows.Forms.Label lbl_create_profile;
|
||||||
private System.Windows.Forms.Label lbl_create_shortcut;
|
private System.Windows.Forms.Label lbl_create_shortcut;
|
||||||
|
private System.Windows.Forms.Button button1;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -125,8 +125,10 @@ namespace DisplayMagician.UIForms
|
|||||||
//SteamGame.GetAllInstalledGames();
|
//SteamGame.GetAllInstalledGames();
|
||||||
EnableShortcutButtonIfProfiles();
|
EnableShortcutButtonIfProfiles();
|
||||||
|
|
||||||
|
//Run the AutoUpdater to see if there are any updates available.
|
||||||
AutoUpdater.CheckForUpdateEvent += AutoUpdaterOnCheckForUpdateEvent;
|
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()
|
private void EnableShortcutButtonIfProfiles()
|
||||||
|
@ -132,6 +132,33 @@
|
|||||||
<data name="splitContainer1.Orientation" type="System.Windows.Forms.Orientation, System.Windows.Forms">
|
<data name="splitContainer1.Orientation" type="System.Windows.Forms.Orientation, System.Windows.Forms">
|
||||||
<value>Horizontal</value>
|
<value>Horizontal</value>
|
||||||
</data>
|
</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=">>button1.Name" xml:space="preserve">
|
||||||
|
<value>button1</value>
|
||||||
|
</data>
|
||||||
|
<data name=">>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=">>button1.Parent" xml:space="preserve">
|
||||||
|
<value>splitContainer1.Panel1</value>
|
||||||
|
</data>
|
||||||
|
<data name=">>button1.ZOrder" xml:space="preserve">
|
||||||
|
<value>0</value>
|
||||||
|
</data>
|
||||||
<data name="lbl_create_profile.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
<data name="lbl_create_profile.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||||
<value>None</value>
|
<value>None</value>
|
||||||
</data>
|
</data>
|
||||||
@ -163,7 +190,7 @@
|
|||||||
<value>splitContainer1.Panel1</value>
|
<value>splitContainer1.Panel1</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>lbl_create_profile.ZOrder" xml:space="preserve">
|
<data name=">>lbl_create_profile.ZOrder" xml:space="preserve">
|
||||||
<value>0</value>
|
<value>1</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="btn_setup_display_profiles.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
<data name="btn_setup_display_profiles.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||||
<value>None</value>
|
<value>None</value>
|
||||||
@ -196,7 +223,7 @@
|
|||||||
<value>splitContainer1.Panel1</value>
|
<value>splitContainer1.Panel1</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>btn_setup_display_profiles.ZOrder" xml:space="preserve">
|
<data name=">>btn_setup_display_profiles.ZOrder" xml:space="preserve">
|
||||||
<value>1</value>
|
<value>2</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="pb_display_profile.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
|
<data name="pb_display_profile.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
|
||||||
<value>Fill</value>
|
<value>Fill</value>
|
||||||
@ -10744,7 +10771,7 @@
|
|||||||
<value>splitContainer1.Panel1</value>
|
<value>splitContainer1.Panel1</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>pb_display_profile.ZOrder" xml:space="preserve">
|
<data name=">>pb_display_profile.ZOrder" xml:space="preserve">
|
||||||
<value>2</value>
|
<value>3</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>splitContainer1.Panel1.Name" xml:space="preserve">
|
<data name=">>splitContainer1.Panel1.Name" xml:space="preserve">
|
||||||
<value>splitContainer1.Panel1</value>
|
<value>splitContainer1.Panel1</value>
|
||||||
@ -10771,7 +10798,7 @@
|
|||||||
<value>NoControl</value>
|
<value>NoControl</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="lbl_create_shortcut.Location" type="System.Drawing.Point, System.Drawing">
|
<data name="lbl_create_shortcut.Location" type="System.Drawing.Point, System.Drawing">
|
||||||
<value>220, 247</value>
|
<value>220, 249</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="lbl_create_shortcut.Size" type="System.Drawing.Size, System.Drawing">
|
<data name="lbl_create_shortcut.Size" type="System.Drawing.Size, System.Drawing">
|
||||||
<value>343, 22</value>
|
<value>343, 22</value>
|
||||||
@ -10810,7 +10837,7 @@
|
|||||||
<value>NoControl</value>
|
<value>NoControl</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="cb_minimise_notification_area.Location" type="System.Drawing.Point, System.Drawing">
|
<data name="cb_minimise_notification_area.Location" type="System.Drawing.Point, System.Drawing">
|
||||||
<value>232, 355</value>
|
<value>232, 358</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="cb_minimise_notification_area.Size" type="System.Drawing.Size, System.Drawing">
|
<data name="cb_minimise_notification_area.Size" type="System.Drawing.Size, System.Drawing">
|
||||||
<value>332, 20</value>
|
<value>332, 20</value>
|
||||||
@ -10843,7 +10870,7 @@
|
|||||||
<value>Microsoft Sans Serif, 9.75pt</value>
|
<value>Microsoft Sans Serif, 9.75pt</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="lbl_version.Location" type="System.Drawing.Point, System.Drawing">
|
<data name="lbl_version.Location" type="System.Drawing.Point, System.Drawing">
|
||||||
<value>12, 357</value>
|
<value>12, 360</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="lbl_version.Size" type="System.Drawing.Size, System.Drawing">
|
<data name="lbl_version.Size" type="System.Drawing.Size, System.Drawing">
|
||||||
<value>25, 16</value>
|
<value>25, 16</value>
|
||||||
@ -10879,7 +10906,7 @@
|
|||||||
<value>Microsoft Sans Serif, 21.75pt</value>
|
<value>Microsoft Sans Serif, 21.75pt</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="btn_setup_game_shortcuts.Location" type="System.Drawing.Point, System.Drawing">
|
<data name="btn_setup_game_shortcuts.Location" type="System.Drawing.Point, System.Drawing">
|
||||||
<value>212, 174</value>
|
<value>212, 176</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="btn_setup_game_shortcuts.Size" type="System.Drawing.Size, System.Drawing">
|
<data name="btn_setup_game_shortcuts.Size" type="System.Drawing.Size, System.Drawing">
|
||||||
<value>360, 50</value>
|
<value>360, 50</value>
|
||||||
@ -10912,7 +10939,7 @@
|
|||||||
<value>NoControl</value>
|
<value>NoControl</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="btn_exit.Location" type="System.Drawing.Point, System.Drawing">
|
<data name="btn_exit.Location" type="System.Drawing.Point, System.Drawing">
|
||||||
<value>700, 352</value>
|
<value>700, 353</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="btn_exit.Size" type="System.Drawing.Size, System.Drawing">
|
<data name="btn_exit.Size" type="System.Drawing.Size, System.Drawing">
|
||||||
<value>75, 23</value>
|
<value>75, 23</value>
|
||||||
|
Loading…
Reference in New Issue
Block a user