Пример #1
0
        public clsController()
        {
            //Visible = false;

            if (WOTHelper.FindProcess("WOT.Stats"))
            {
                DevExpress.XtraEditors.XtraMessageBox.Show("WOT Statistics is already running", "WOT Statistics", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                _error = true;
                Application.Exit();
            }
            else
            {
                using (frmUpdater wotGUI = new frmUpdater())
                {
                    wotGUI.ShowDialog();
                }
            }
        }
Пример #2
0
        public clsController()
        {
            //Visible = false;

            if (WOTHelper.FindProcess("WOT.Stats"))
            {
                DevExpress.XtraEditors.XtraMessageBox.Show("WOT Statistics is already running", "WOT Statistics", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                _error = true;
                Application.Exit();
            }
            else
            {

                using (frmUpdater wotGUI = new frmUpdater())
                {
                    wotGUI.ShowDialog();
                }

            }
        }