Пример #1
0
        public Main2()
        {
            InitializeComponent();
            //this.Enabled = false;
            m_Constants = new Constants(this);
            string appPath = Path.GetDirectoryName(Application.ExecutablePath);

            /* 2018.01.10 로그인 과정 삭제
             * if (!login())
             * {
             *  //System.Windows.Forms.MessageBox.Show("Login Fail");
             *  //MetroMessageBox.Show(Owner, "Test");
             *  //Application.Exit();
             *  Application.ExitThread();
             *  Environment.Exit(0);
             *  // this.Close();
             * }
             */
            backgroundWorker1.RunWorkerAsync();
            backgroundWorker2.RunWorkerAsync();
            backgroundWorker3.RunWorkerAsync();
        }
Пример #2
0
        public Main2()
        {
            InitializeComponent();
            //this.Enabled = false;
            m_Constants      = new Constants(this);
            TIL_EMPTY_1.Text = "Version :" + version;
            string appPath = Path.GetDirectoryName(Application.ExecutablePath);

            if (!login())
            {
                //System.Windows.Forms.MessageBox.Show("Login Fail");
                //MetroMessageBox.Show(Owner, "Test");
                //Application.Exit();
                Application.ExitThread();
                Environment.Exit(0);
                // this.Close();
            }
            backgroundWorker1.RunWorkerAsync();
            backgroundWorker2.RunWorkerAsync();
            backgroundWorker3.RunWorkerAsync();
            backgroundWorker4.RunWorkerAsync();
            backgroundWorker5.RunWorkerAsync();
        }