mirror of
https://github.com/terrymacdonald/DisplayMagician.git
synced 2024-08-30 18:32:20 +00:00
Working user added icons
This commit is contained in:
parent
f1023df478
commit
bd0f3484bb
@ -26,8 +26,8 @@ using System.Resources;
|
||||
[assembly: Guid("e4ceaf5e-ad01-4695-b179-31168eb74c48")]
|
||||
|
||||
// Version information
|
||||
[assembly: AssemblyVersion("2.1.0.79")]
|
||||
[assembly: AssemblyFileVersion("2.1.0.79")]
|
||||
[assembly: AssemblyVersion("2.1.0.83")]
|
||||
[assembly: AssemblyFileVersion("2.1.0.83")]
|
||||
[assembly: NeutralResourcesLanguageAttribute( "en" )]
|
||||
[assembly: CLSCompliant(true)]
|
||||
|
||||
|
2
DisplayMagician/UIForms/ShortcutForm.Designer.cs
generated
2
DisplayMagician/UIForms/ShortcutForm.Designer.cs
generated
@ -768,6 +768,7 @@ namespace DisplayMagician.UIForms
|
||||
//
|
||||
// btn_exe_use_different_icon
|
||||
//
|
||||
this.btn_exe_use_different_icon.Enabled = false;
|
||||
this.btn_exe_use_different_icon.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btn_exe_use_different_icon.ForeColor = System.Drawing.Color.White;
|
||||
this.btn_exe_use_different_icon.Location = new System.Drawing.Point(880, 159);
|
||||
@ -1001,6 +1002,7 @@ namespace DisplayMagician.UIForms
|
||||
//
|
||||
// btn_game_use_different_icon
|
||||
//
|
||||
this.btn_game_use_different_icon.Enabled = false;
|
||||
this.btn_game_use_different_icon.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btn_game_use_different_icon.ForeColor = System.Drawing.Color.White;
|
||||
this.btn_game_use_different_icon.Location = new System.Drawing.Point(912, 121);
|
||||
|
@ -1546,6 +1546,9 @@ namespace DisplayMagician.UIForms
|
||||
|
||||
private void btn_choose_alternative_executable_Click(object sender, EventArgs e)
|
||||
{
|
||||
dialog_open.InitialDirectory = Path.GetDirectoryName(_executableToUse.ExecutableNameAndPath);
|
||||
dialog_open.DefaultExt = "*.exe";
|
||||
dialog_open.Filter = "exe files (*.exe;*.com) | *.exe;*.com | All files(*.*) | *.*";
|
||||
if (dialog_open.ShowDialog(this) == DialogResult.OK)
|
||||
{
|
||||
if (_loadedShortcut)
|
||||
@ -1814,6 +1817,9 @@ namespace DisplayMagician.UIForms
|
||||
|
||||
private string getExeFile()
|
||||
{
|
||||
dialog_open.InitialDirectory = Environment.SpecialFolder.ProgramFiles.ToString();
|
||||
dialog_open.DefaultExt = "*.exe";
|
||||
dialog_open.Filter = "exe files (*.exe;*.com) | *.exe;*.com | All files(*.*) | *.*";
|
||||
string textToReturn = "";
|
||||
if (dialog_open.ShowDialog(this) == DialogResult.OK)
|
||||
{
|
||||
@ -2224,6 +2230,19 @@ namespace DisplayMagician.UIForms
|
||||
|
||||
private void btn_choose_alternative_game_Click(object sender, EventArgs e)
|
||||
{
|
||||
string gamePath = "";
|
||||
foreach (Game game in DisplayMagician.GameLibraries.GameLibrary.AllInstalledGamesInAllLibraries)
|
||||
{
|
||||
if (game.Name == txt_game_name.Text)
|
||||
{
|
||||
gamePath = game.Directory;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
dialog_open.InitialDirectory = gamePath;
|
||||
dialog_open.DefaultExt = "*.exe";
|
||||
dialog_open.Filter = "exe files (*.exe;*.com) | *.exe;*.com | All files(*.*) | *.*";
|
||||
if (dialog_open.ShowDialog(this) == DialogResult.OK)
|
||||
{
|
||||
if (_loadedShortcut)
|
||||
@ -2529,6 +2548,19 @@ namespace DisplayMagician.UIForms
|
||||
|
||||
private void btn_game_use_different_icon_Click(object sender, EventArgs e)
|
||||
{
|
||||
string gamePath = "";
|
||||
foreach (Game game in DisplayMagician.GameLibraries.GameLibrary.AllInstalledGamesInAllLibraries)
|
||||
{
|
||||
if (game.Name == txt_game_name.Text)
|
||||
{
|
||||
gamePath = game.Directory;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
dialog_open.InitialDirectory = gamePath;
|
||||
dialog_open.DefaultExt = "*.exe";
|
||||
dialog_open.Filter = "exe or icon files (*.exe;*.com;*.ico) | *.exe;*.com;*.ico | All files(*.*) | *.*";
|
||||
if (dialog_open.ShowDialog(this) == DialogResult.OK)
|
||||
{
|
||||
if (_loadedShortcut)
|
||||
@ -2552,6 +2584,9 @@ namespace DisplayMagician.UIForms
|
||||
|
||||
private void btn_exe_use_different_icon_Click(object sender, EventArgs e)
|
||||
{
|
||||
dialog_open.InitialDirectory = Path.GetDirectoryName(_executableToUse.ExecutableNameAndPath);
|
||||
dialog_open.DefaultExt = "*.exe";
|
||||
dialog_open.Filter = "exe or icon files (*.exe;*.com;*.ico) | *.exe;*.com;*.ico | All files(*.*) | *.*";
|
||||
if (dialog_open.ShowDialog(this) == DialogResult.OK)
|
||||
{
|
||||
if (_loadedShortcut)
|
||||
|
Loading…
Reference in New Issue
Block a user