mirror of
https://github.com/terrymacdonald/DisplayMagician.git
synced 2024-08-30 18:32:20 +00:00
e7ad4dc847
Partially completed bitmap work. Need to implement generic bitmap resizing to work with small and large icons, and for different sizes for overlay bitmap.
46 lines
1.5 KiB
C#
46 lines
1.5 KiB
C#
using System;
|
|
using System.IO;
|
|
using System.Windows.Forms;
|
|
using HeliosPlus.Shared;
|
|
using HeliosPlus.ShellExtension.Resources;
|
|
|
|
namespace HeliosPlus.ShellExtension
|
|
{
|
|
internal class HeliosPlus
|
|
{
|
|
internal static string AppDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "HeliosPlus");
|
|
|
|
public static void Open(
|
|
HeliosStartupAction action = HeliosStartupAction.None,
|
|
ProfileItem profile = null,
|
|
string programAddress = null,
|
|
bool asAdmin = false)
|
|
{
|
|
try
|
|
{
|
|
Helios.Open(action, profile, programAddress, asAdmin);
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
MessageBox.Show(e.ToString(), string.Format(Language.Failed_to_execute_action_Error_Message, e.Message),
|
|
MessageBoxButtons.OK, MessageBoxIcon.Error);
|
|
}
|
|
}
|
|
|
|
public static void OpenSteamGame(
|
|
HeliosStartupAction action = HeliosStartupAction.None,
|
|
ProfileItem profile = null,
|
|
uint steamAppId = 0)
|
|
{
|
|
try
|
|
{
|
|
Helios.OpenSteamGame(action, profile, steamAppId);
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
MessageBox.Show(e.ToString(), string.Format(Language.Failed_to_execute_action_Error_Message, e.Message),
|
|
MessageBoxButtons.OK, MessageBoxIcon.Error);
|
|
}
|
|
}
|
|
}
|
|
} |