Beispiel #1
0
        private void LoadTimer_Tick(object sender, EventArgs e)
        {
            if (pBar.Width < (ProgressBar.Width - 4))
            {
                pBar.Width += 1;
            }
            else
            {
                this.LoadTimer.Stop();
                Utils.XMLConfig cfg = new Utils.XMLConfig();
                if (cfg.LoLFilepath.Trim() == "")
                {
                    this.label4.Text = "无法自动定位到客户端 请手动指定路径";
                    Config config = new Config();
                    config.ShowDialog(this);
                }
                else
                {
                    //Datas.CheckVersion cv = new Datas.CheckVersion();
                    //if (cv.isNewVersion == false)
                    //{
                    //    this.label4.Text = "当前游戏版本并非最新 请先升级客户端";
                    //    Process.Start(cfg.LoLFilepath);
                    //    //this.Close();
                    //}
                    //else
                    //{
                        MainForm mf = MainForm.InstanceForm();
                        mf.Show();
                        this.Hide();
                    //}
                }

            }
        }
Beispiel #2
0
 void SettingButton_MouseClick(object sender, MouseEventArgs e)
 {
     Config configForm = new Config();
     configForm.ShowDialog(this);
 }