Esempio n. 1
0
        public frmInstallSummary(frmUserInfo usrInfo, bool isSuccess)
        {
            InitializeComponent();
            this.userInfo = usrInfo;
            insSuccess    = isSuccess;

            if (insSuccess)
            {
                lbGuestCred.Visible = true;
                lbTLCred.Visible    = true;
                lbTLCred.Text       = string.Format("Teamlead user/pass: {0}/{1}", userInfo.TeamleadUserID, userInfo.TeamleadUserPassword);
                lbGuestCred.Text    = string.Format("Guest user/pass: {0}/{1}", userInfo.GuestUserID, userInfo.GuestUserPassword);
                lbDbCreation.Text   = "Database installation for project " + userInfo.ProjectDBName + " is successful";
            }
            else
            {
                pictureBox1.Image     = Image.FromFile("Images\\fail.png");
                lbDbCreation.Text     = "Database installation for project " + userInfo.ProjectDBName + " is failed";
                rtbErrorMsg.Text      = userInfo.ErrorMsg;
                rtbErrorMsg.ForeColor = Color.Red;
                if (!string.IsNullOrEmpty(rtbErrorMsg.Text))
                {
                    rtbErrorMsg.Visible = true;
                }
            }
        }
Esempio n. 2
0
        private void btnRunSysDBScript_Click(object sender, EventArgs e)
        {
            if (IsDataDBValid())
            {
                //show user setup form
                frmUserInfo userInfo = new frmUserInfo();

                // userInfo.SuperConnString = this.SuperConnString;
                // userInfo.Host = this.Host;
                // userInfo.Port = this.Port;

                //  userInfo.Password = this.Password;
                //   userInfo.UserId = this.UserId;

                userInfo.ProjectDBName = projectDBName.ToUpper();
                //userInfo.SysDBName = sysDBName;
                Config.SysDbName = sysDBName;
                //userInfo.TemplateDBName = templateDBName;
                Config.TemplateDBName = templateDBName;
                userInfo.Organization = tbOrganization.Text;
                userInfo.Precision    = tbPrecision.Text;
                userInfo.MethodIndex  = cbMethod.SelectedIndex.ToString();
                userInfo.MethodName   = cbMethod.SelectedItem.ToString();
                userInfo.Date         = dtpDate.Value.ToShortDateString();
                userInfo.CreateNg     = ckbCreateNG.Checked;

                userInfo.Bronhouder           = txtBronhouder.Text;
                userInfo.ApplicationName      = txtApplicationName.Text;
                userInfo.Administration       = txtAdministration.Text;
                userInfo.ReferencePrefix      = txtReferencePrefix.Text;
                userInfo.IdentificationPrefix = txtIdentificationPrefix.Text;
                userInfo.MsgToelichting       = txtMsgToelichiting.Text;

                this.Hide();
                userInfo.Show();
            }
        }