Ejemplo n.º 1
0
    static void Main()
    {
        if (!SingleInstance.Start())
        {
            MessageBox.Show("This program is already started, check your task bar.");
            return;
        }

        Application.EnableVisualStyles();
        Application.SetCompatibleTextRenderingDefault(false);

        try
        {
            KeyCodeConverter.Start();
            PreferenceManager.Start();
            DatabaseManager.Start();
            MainForm mainForm = new MainForm();
            Application.Run(mainForm);
        }
        catch (Exception e)
        {
            MessageBox.Show(e.Message);
        }

        SingleInstance.Stop();
    }