public static void Launch() { var application = new PlayApp(); application.InitializeComponent(); application.Run(); }
static void Initialize() { CommonBase.AssemblyLoader = new AssemblyLoader(Assembly.GetEntryAssembly()); HandleSquirrel(); if ( !SingleInstance <PlayApp> .TryInitializeAsFirstInstance <PlayApp>(AppName, null, "withSIX-Play", "Play withSIX", "Play")) { return; } // TODO ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12; StartupSequence.PreInit(AppName); PlayApp.Launch(); SingleInstance <PlayApp> .Cleanup(); }
public static void Launch() { var application = new PlayApp(); application.InitializeComponent(); application.Run(); }