Exemplo n.º 1
0
        public frmRegionBrand()
        {
            InitializeComponent();
            this.StartPosition = FormStartPosition.CenterScreen;
            this.WindowState   = FormWindowState.Minimized;
            this.Text         += "_Ver." + MyConfig.Version; //添加版本号   add on 20180605 by Vince

            #region 兼容2.2.0之前旧项目的Region 20180214 by Yunxiao Lin
            ProjectBLL _bll   = new ProjectBLL(null);
            string     errMsg = _bll.CompatOldProjectRegion();
            #endregion

            #region 启动 Start 窗口
            timer1.Enabled  = true;
            timer1.Interval = 3000;
            splashScreen    = new frmStart();
            if (splashScreen.ISVALID_Region && splashScreen.ISVALID_Date)
            {
                splashScreen.Show();
                this.ISVALID = true;
            }
            else
            {
                splashScreen.ShowDialog();
                this.ISVALID = false;
                if (splashScreen != null)
                {
                    timer1.Enabled = false;
                    splashScreen.Dispose();
                    this.WindowState = FormWindowState.Normal;
                }
            }
            #endregion
        }