Exemplo n.º 1
0
        static void Main()
        {
            var instance = new InstanceManagement(appId);

            if (instance.IsRunning)
            {
                instance.Activate();
                return;
            }

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm(instance));
        }
Exemplo n.º 2
0
 public MainForm(InstanceManagement instance)
 {
     InitializeComponent();
     _instance = instance;
 }