示例#1
0
        public void ShowDialog()
        {
            if (!LCY_DBTools.DBTool.TestConnString(LCY_DBTools.DBTool.GetConnString()))
            {
                return;
            }

            if (UserType == LCY_Database.UserType.NONE)
            {
                using (FrmLogon f = new FrmLogon())
                {
                    if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                    {
                        UserType = f.GetUserType();
                    }
                    else
                    {
                        return;
                    }
                }
            }
            using (FrmUpload f = new FrmUpload(UserType))
            {
                f.ShowDialog();
            }
        }
示例#2
0
        private void InstallClicked()
        {
            FrmUpload frmUpload = new FrmUpload();

            frmUpload.ShowDialog();

            ManualUpdate();
        }