mirror of
https://github.com/terrymacdonald/DisplayMagician.git
synced 2024-08-30 18:32:20 +00:00
Forcing users to create displayProfile first
Helped direct users to the display profile page at first by removing the create shortcut buttons
This commit is contained in:
parent
e0f797c1cd
commit
40b396701a
1
DisplayMagician/UIForms/MainForm.Designer.cs
generated
1
DisplayMagician/UIForms/MainForm.Designer.cs
generated
@ -230,6 +230,7 @@
|
|||||||
this.Name = "MainForm";
|
this.Name = "MainForm";
|
||||||
this.ShowIcon = false;
|
this.ShowIcon = false;
|
||||||
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
|
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
|
||||||
|
this.Activated += new System.EventHandler(this.MainForm_Activated);
|
||||||
this.Load += new System.EventHandler(this.MainForm_Load);
|
this.Load += new System.EventHandler(this.MainForm_Load);
|
||||||
this.splitContainer1.Panel1.ResumeLayout(false);
|
this.splitContainer1.Panel1.ResumeLayout(false);
|
||||||
this.splitContainer1.Panel2.ResumeLayout(false);
|
this.splitContainer1.Panel2.ResumeLayout(false);
|
||||||
|
@ -12,6 +12,7 @@ using System.Threading;
|
|||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using DisplayMagician.Shared;
|
using DisplayMagician.Shared;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
using System.IO;
|
||||||
|
|
||||||
namespace DisplayMagician.UIForms
|
namespace DisplayMagician.UIForms
|
||||||
{
|
{
|
||||||
@ -119,8 +120,26 @@ namespace DisplayMagician.UIForms
|
|||||||
{
|
{
|
||||||
// Start loading the Steam Games just after the Main form opens
|
// Start loading the Steam Games just after the Main form opens
|
||||||
//SteamGame.GetAllInstalledGames();
|
//SteamGame.GetAllInstalledGames();
|
||||||
|
EnableShortcutButtonIfProfiles();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void EnableShortcutButtonIfProfiles()
|
||||||
|
{
|
||||||
|
if (ProfileRepository.AllProfiles.Count > 0)
|
||||||
|
{
|
||||||
|
btn_setup_game_shortcuts.Visible = true;
|
||||||
|
pb_game_shortcut.Enabled = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
btn_setup_game_shortcuts.Visible = false;
|
||||||
|
pb_game_shortcut.Enabled = false;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private void RefreshNotifyIconMenus()
|
private void RefreshNotifyIconMenus()
|
||||||
{
|
{
|
||||||
// Clear all the profiles
|
// Clear all the profiles
|
||||||
@ -250,5 +269,9 @@ namespace DisplayMagician.UIForms
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void MainForm_Activated(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
EnableShortcutButtonIfProfiles();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -142,7 +142,7 @@
|
|||||||
<value>Microsoft Sans Serif, 21.75pt</value>
|
<value>Microsoft Sans Serif, 21.75pt</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="btn_setup_display_profiles.Location" type="System.Drawing.Point, System.Drawing">
|
<data name="btn_setup_display_profiles.Location" type="System.Drawing.Point, System.Drawing">
|
||||||
<value>210, 168</value>
|
<value>210, 166</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="btn_setup_display_profiles.Size" type="System.Drawing.Size, System.Drawing">
|
<data name="btn_setup_display_profiles.Size" type="System.Drawing.Size, System.Drawing">
|
||||||
<value>360, 50</value>
|
<value>360, 50</value>
|
||||||
@ -10738,7 +10738,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, 354</value>
|
<value>232, 357</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>
|
||||||
@ -10771,7 +10771,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, 355</value>
|
<value>12, 358</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>
|
||||||
@ -10807,7 +10807,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, 186</value>
|
<value>212, 180</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>
|
||||||
@ -10840,7 +10840,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, 351</value>
|
<value>700, 354</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>
|
||||||
|
7
DisplayMagician/UIForms/ShortcutForm.Designer.cs
generated
7
DisplayMagician/UIForms/ShortcutForm.Designer.cs
generated
@ -1036,11 +1036,14 @@ namespace DisplayMagician.UIForms
|
|||||||
//
|
//
|
||||||
// btn_choose_game
|
// btn_choose_game
|
||||||
//
|
//
|
||||||
|
this.btn_choose_game.FlatAppearance.MouseDownBackColor = System.Drawing.Color.IndianRed;
|
||||||
|
this.btn_choose_game.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Brown;
|
||||||
this.btn_choose_game.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
this.btn_choose_game.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.btn_choose_game.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.btn_choose_game.ForeColor = System.Drawing.Color.White;
|
this.btn_choose_game.ForeColor = System.Drawing.Color.White;
|
||||||
this.btn_choose_game.Location = new System.Drawing.Point(411, 115);
|
this.btn_choose_game.Location = new System.Drawing.Point(408, 117);
|
||||||
this.btn_choose_game.Name = "btn_choose_game";
|
this.btn_choose_game.Name = "btn_choose_game";
|
||||||
this.btn_choose_game.Size = new System.Drawing.Size(29, 31);
|
this.btn_choose_game.Size = new System.Drawing.Size(40, 46);
|
||||||
this.btn_choose_game.TabIndex = 16;
|
this.btn_choose_game.TabIndex = 16;
|
||||||
this.btn_choose_game.Text = ">>";
|
this.btn_choose_game.Text = ">>";
|
||||||
this.btn_choose_game.UseVisualStyleBackColor = true;
|
this.btn_choose_game.UseVisualStyleBackColor = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user