mirror of
https://github.com/terrymacdonald/DisplayMagician.git
synced 2024-08-30 18:32:20 +00:00
Changed the HeliosPlus Icon
Still not really happy with this one, but it's better than the last one at least...
This commit is contained in:
parent
ca1b760d9e
commit
964853ff34
@ -53,7 +53,7 @@
|
||||
<RunCodeAnalysis>true</RunCodeAnalysis>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ApplicationIcon>Resources\HeliosPlus.ico</ApplicationIcon>
|
||||
<ApplicationIcon>HeliosPlus.ico</ApplicationIcon>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<StartupObject>HeliosPlus.Program</StartupObject>
|
||||
@ -252,6 +252,8 @@
|
||||
<None Include="Resources\HeliosPlus.ico" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="HeliosPlus.ico" />
|
||||
<Content Include="Resources\Icon2.png" />
|
||||
<Content Include="Resources\redarrows.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
BIN
HeliosPlus/HeliosPlus.ico
Normal file
BIN
HeliosPlus/HeliosPlus.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 369 KiB |
Binary file not shown.
Before Width: | Height: | Size: 108 KiB After Width: | Height: | Size: 369 KiB |
@ -484,9 +484,10 @@ namespace HeliosPlus
|
||||
if (needToChangeProfiles)
|
||||
{
|
||||
// Apply the Profile!
|
||||
Console.WriteLine($"Changing to '{shortcutToUse.ProfileToUse.Name}' Display Profile");
|
||||
if (!Program.ApplyProfile(shortcutToUse.ProfileToUse))
|
||||
{
|
||||
throw new Exception(Language.Cannot_change_active_profile);
|
||||
Console.WriteLine($"ERROR - Cannot apply '{shortcutToUse.ProfileToUse.Name}' Display Profile");
|
||||
}
|
||||
}
|
||||
|
||||
@ -497,12 +498,13 @@ namespace HeliosPlus
|
||||
List<Process> startProgramsToStop = new List<Process>();
|
||||
if (shortcutToUse.StartPrograms is List<StartProgram> && shortcutToUse.StartPrograms.Count > 0)
|
||||
{
|
||||
Console.WriteLine("Starting programs before main game/executable:");
|
||||
foreach (StartProgram processToStart in shortcutToUse.StartPrograms
|
||||
.Where(program => program.Enabled == true)
|
||||
.OrderBy(program => program.Priority))
|
||||
{
|
||||
// Start the executable
|
||||
Console.WriteLine($"Starting process {processToStart.Executable}");
|
||||
Console.WriteLine($" - Starting process {processToStart.Executable}");
|
||||
Process process = null;
|
||||
if (processToStart.ExecutableArgumentsRequired)
|
||||
process = System.Diagnostics.Process.Start(processToStart.Executable, processToStart.Arguments);
|
||||
@ -627,6 +629,7 @@ namespace HeliosPlus
|
||||
}
|
||||
|
||||
// Start the URI Handler to run Steam
|
||||
Console.WriteLine($"Starting Steam Game: {steamGameToRun.Name}");
|
||||
var steamProcess = Process.Start(address);
|
||||
|
||||
// Wait for Steam game to update if needed
|
||||
@ -677,6 +680,7 @@ namespace HeliosPlus
|
||||
if (steamGameToRun.IsRunning)
|
||||
{
|
||||
// Wait for the game to exit
|
||||
Console.WriteLine($"Waiting for {steamGameToRun.Name} to exit.");
|
||||
while (true)
|
||||
{
|
||||
if (!steamGameToRun.IsRunning)
|
||||
@ -686,7 +690,7 @@ namespace HeliosPlus
|
||||
|
||||
Thread.Sleep(300);
|
||||
}
|
||||
Console.WriteLine($"{steamGameToRun.Name} has been exited. Now continuing with cleanup tasks.");
|
||||
Console.WriteLine($"{steamGameToRun.Name} has exited.");
|
||||
}
|
||||
|
||||
// Remove the status notification icon from the status area
|
||||
@ -748,7 +752,7 @@ namespace HeliosPlus
|
||||
//if (!ProfileRepository.ApplyProfile(rollbackProfile))
|
||||
if (!Program.ApplyProfile(rollbackProfile))
|
||||
{
|
||||
throw new Exception(Language.Cannot_change_active_profile);
|
||||
Console.WriteLine($"ERROR - Cannot revert back to '{rollbackProfile.Name}' Display Profile");
|
||||
}
|
||||
}
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
80
HeliosPlus/UIForms/ShortcutForm.Designer.cs
generated
80
HeliosPlus/UIForms/ShortcutForm.Designer.cs
generated
@ -45,6 +45,7 @@ namespace HeliosPlus.UIForms
|
||||
this.dv_profile = new HeliosPlus.Shared.UserControls.DisplayView();
|
||||
this.tabp_before = new System.Windows.Forms.TabPage();
|
||||
this.pnl_start_program4 = new System.Windows.Forms.Panel();
|
||||
this.cb_start_program4 = new System.Windows.Forms.CheckBox();
|
||||
this.txt_start_program4 = new System.Windows.Forms.TextBox();
|
||||
this.cb_start_program_close4 = new System.Windows.Forms.CheckBox();
|
||||
this.btn_start_program4 = new System.Windows.Forms.Button();
|
||||
@ -52,6 +53,7 @@ namespace HeliosPlus.UIForms
|
||||
this.cb_start_program_pass_args4 = new System.Windows.Forms.CheckBox();
|
||||
this.lbl_start_program4 = new System.Windows.Forms.Label();
|
||||
this.pnl_start_program3 = new System.Windows.Forms.Panel();
|
||||
this.cb_start_program3 = new System.Windows.Forms.CheckBox();
|
||||
this.txt_start_program3 = new System.Windows.Forms.TextBox();
|
||||
this.cb_start_program_close3 = new System.Windows.Forms.CheckBox();
|
||||
this.btn_start_program3 = new System.Windows.Forms.Button();
|
||||
@ -59,6 +61,7 @@ namespace HeliosPlus.UIForms
|
||||
this.cb_start_program_pass_args3 = new System.Windows.Forms.CheckBox();
|
||||
this.lbl_start_program3 = new System.Windows.Forms.Label();
|
||||
this.pnl_start_program2 = new System.Windows.Forms.Panel();
|
||||
this.cb_start_program2 = new System.Windows.Forms.CheckBox();
|
||||
this.txt_start_program2 = new System.Windows.Forms.TextBox();
|
||||
this.cb_start_program_close2 = new System.Windows.Forms.CheckBox();
|
||||
this.btn_start_program2 = new System.Windows.Forms.Button();
|
||||
@ -66,6 +69,7 @@ namespace HeliosPlus.UIForms
|
||||
this.cb_start_program_pass_args2 = new System.Windows.Forms.CheckBox();
|
||||
this.lbl_start_program2 = new System.Windows.Forms.Label();
|
||||
this.pnl_start_program1 = new System.Windows.Forms.Panel();
|
||||
this.cb_start_program1 = new System.Windows.Forms.CheckBox();
|
||||
this.txt_start_program1 = new System.Windows.Forms.TextBox();
|
||||
this.cb_start_program_close1 = new System.Windows.Forms.CheckBox();
|
||||
this.btn_start_program1 = new System.Windows.Forms.Button();
|
||||
@ -109,10 +113,6 @@ namespace HeliosPlus.UIForms
|
||||
this.lbl_title = new System.Windows.Forms.Label();
|
||||
this.lbl_shortcut_name = new System.Windows.Forms.Label();
|
||||
this.cb_autosuggest = new System.Windows.Forms.CheckBox();
|
||||
this.cb_start_program1 = new System.Windows.Forms.CheckBox();
|
||||
this.cb_start_program2 = new System.Windows.Forms.CheckBox();
|
||||
this.cb_start_program3 = new System.Windows.Forms.CheckBox();
|
||||
this.cb_start_program4 = new System.Windows.Forms.CheckBox();
|
||||
this.tabc_shortcut.SuspendLayout();
|
||||
this.tabp_display.SuspendLayout();
|
||||
this.tabp_before.SuspendLayout();
|
||||
@ -298,6 +298,15 @@ namespace HeliosPlus.UIForms
|
||||
this.pnl_start_program4.Size = new System.Drawing.Size(959, 124);
|
||||
this.pnl_start_program4.TabIndex = 19;
|
||||
//
|
||||
// cb_start_program4
|
||||
//
|
||||
this.cb_start_program4.Location = new System.Drawing.Point(21, 18);
|
||||
this.cb_start_program4.Name = "cb_start_program4";
|
||||
this.cb_start_program4.Size = new System.Drawing.Size(15, 14);
|
||||
this.cb_start_program4.TabIndex = 18;
|
||||
this.cb_start_program4.UseVisualStyleBackColor = true;
|
||||
this.cb_start_program4.CheckedChanged += new System.EventHandler(this.cb_start_program4_CheckedChanged);
|
||||
//
|
||||
// txt_start_program4
|
||||
//
|
||||
this.txt_start_program4.Location = new System.Drawing.Point(300, 11);
|
||||
@ -377,6 +386,15 @@ namespace HeliosPlus.UIForms
|
||||
this.pnl_start_program3.Size = new System.Drawing.Size(959, 124);
|
||||
this.pnl_start_program3.TabIndex = 18;
|
||||
//
|
||||
// cb_start_program3
|
||||
//
|
||||
this.cb_start_program3.Location = new System.Drawing.Point(21, 18);
|
||||
this.cb_start_program3.Name = "cb_start_program3";
|
||||
this.cb_start_program3.Size = new System.Drawing.Size(15, 14);
|
||||
this.cb_start_program3.TabIndex = 18;
|
||||
this.cb_start_program3.UseVisualStyleBackColor = true;
|
||||
this.cb_start_program3.CheckedChanged += new System.EventHandler(this.cb_start_program3_CheckedChanged);
|
||||
//
|
||||
// txt_start_program3
|
||||
//
|
||||
this.txt_start_program3.Location = new System.Drawing.Point(300, 11);
|
||||
@ -456,6 +474,15 @@ namespace HeliosPlus.UIForms
|
||||
this.pnl_start_program2.Size = new System.Drawing.Size(959, 124);
|
||||
this.pnl_start_program2.TabIndex = 18;
|
||||
//
|
||||
// cb_start_program2
|
||||
//
|
||||
this.cb_start_program2.Location = new System.Drawing.Point(21, 18);
|
||||
this.cb_start_program2.Name = "cb_start_program2";
|
||||
this.cb_start_program2.Size = new System.Drawing.Size(15, 14);
|
||||
this.cb_start_program2.TabIndex = 18;
|
||||
this.cb_start_program2.UseVisualStyleBackColor = true;
|
||||
this.cb_start_program2.CheckedChanged += new System.EventHandler(this.cb_start_program2_CheckedChanged);
|
||||
//
|
||||
// txt_start_program2
|
||||
//
|
||||
this.txt_start_program2.Location = new System.Drawing.Point(301, 11);
|
||||
@ -535,6 +562,15 @@ namespace HeliosPlus.UIForms
|
||||
this.pnl_start_program1.Size = new System.Drawing.Size(959, 124);
|
||||
this.pnl_start_program1.TabIndex = 0;
|
||||
//
|
||||
// cb_start_program1
|
||||
//
|
||||
this.cb_start_program1.Location = new System.Drawing.Point(21, 18);
|
||||
this.cb_start_program1.Name = "cb_start_program1";
|
||||
this.cb_start_program1.Size = new System.Drawing.Size(15, 14);
|
||||
this.cb_start_program1.TabIndex = 0;
|
||||
this.cb_start_program1.UseVisualStyleBackColor = true;
|
||||
this.cb_start_program1.CheckedChanged += new System.EventHandler(this.cb_start_program1_CheckedChanged);
|
||||
//
|
||||
// txt_start_program1
|
||||
//
|
||||
this.txt_start_program1.Location = new System.Drawing.Point(300, 11);
|
||||
@ -1049,42 +1085,6 @@ namespace HeliosPlus.UIForms
|
||||
this.cb_autosuggest.UseVisualStyleBackColor = true;
|
||||
this.cb_autosuggest.CheckedChanged += new System.EventHandler(this.cb_autosuggest_CheckedChanged);
|
||||
//
|
||||
// cb_start_program1
|
||||
//
|
||||
this.cb_start_program1.Location = new System.Drawing.Point(21, 18);
|
||||
this.cb_start_program1.Name = "cb_start_program1";
|
||||
this.cb_start_program1.Size = new System.Drawing.Size(15, 14);
|
||||
this.cb_start_program1.TabIndex = 0;
|
||||
this.cb_start_program1.UseVisualStyleBackColor = true;
|
||||
this.cb_start_program1.CheckedChanged += new System.EventHandler(this.cb_start_program1_CheckedChanged);
|
||||
//
|
||||
// cb_start_program2
|
||||
//
|
||||
this.cb_start_program2.Location = new System.Drawing.Point(21, 18);
|
||||
this.cb_start_program2.Name = "cb_start_program2";
|
||||
this.cb_start_program2.Size = new System.Drawing.Size(15, 14);
|
||||
this.cb_start_program2.TabIndex = 18;
|
||||
this.cb_start_program2.UseVisualStyleBackColor = true;
|
||||
this.cb_start_program2.CheckedChanged += new System.EventHandler(this.cb_start_program2_CheckedChanged);
|
||||
//
|
||||
// cb_start_program3
|
||||
//
|
||||
this.cb_start_program3.Location = new System.Drawing.Point(21, 18);
|
||||
this.cb_start_program3.Name = "cb_start_program3";
|
||||
this.cb_start_program3.Size = new System.Drawing.Size(15, 14);
|
||||
this.cb_start_program3.TabIndex = 18;
|
||||
this.cb_start_program3.UseVisualStyleBackColor = true;
|
||||
this.cb_start_program3.CheckedChanged += new System.EventHandler(this.cb_start_program3_CheckedChanged);
|
||||
//
|
||||
// cb_start_program4
|
||||
//
|
||||
this.cb_start_program4.Location = new System.Drawing.Point(21, 18);
|
||||
this.cb_start_program4.Name = "cb_start_program4";
|
||||
this.cb_start_program4.Size = new System.Drawing.Size(15, 14);
|
||||
this.cb_start_program4.TabIndex = 18;
|
||||
this.cb_start_program4.UseVisualStyleBackColor = true;
|
||||
this.cb_start_program4.CheckedChanged += new System.EventHandler(this.cb_start_program4_CheckedChanged);
|
||||
//
|
||||
// ShortcutForm
|
||||
//
|
||||
this.AcceptButton = this.btn_save;
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
BIN
Icon2.afphoto
Normal file
BIN
Icon2.afphoto
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user