Пример #1
0
        private static void StartApplication(string[] e)
        {
            ApplicationManager manager = new ApplicationManager(e);

            if (manager._InstanceId.IsNew)
            {
                Application.Run(manager);
            }
            else
            {
                NativeMethods.PostThreadMessage(manager._InstanceId.Read(), WM_APP_SHOW);
            }
        }