DisplayMagician/HeliosDisplayManagement.ShellExtension/Helios.cs
temacdonald ae1a759be4 [WIP] Changing Icon lib libraries
The current Icon Library is old and I haven't been
using it properly :). I need to use something different
and the IconExtractor library is still being updated
whereas the IconLib.Unofficial isn't any longer.
2020-04-29 22:29:43 +12:00

43 lines
1.3 KiB
C#

using System;
using System.Windows.Forms;
using HeliosPlus.Shared;
using HeliosPlus.ShellExtension.Resources;
namespace HeliosPlus.ShellExtension
{
internal class HeliosPlus
{
public static void Open(
HeliosStartupAction action = HeliosStartupAction.None,
Profile 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,
Profile 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);
}
}
}
}