Beispiel #1
0
        private void BtnInstallSoftware_Click(object sender, EventArgs e)
        {
            try
            {
                DataVerification dataVerification    = new DataVerification(this);
                string           verificationMessage = dataVerification.FinalVerification();
                if (verificationMessage.Equals(string.Empty))
                {
                    FrmSoftwareInstallation frmSoftwareInstallationObj = new FrmSoftwareInstallation(PublishPath, TxtBxWebsiteName.Text, TxtBxPortNumber.Text, TxtBxProjectPath.Text, TxtBxMDFPath.Text, TxtBxLDFPath.Text, TxtBxBackupPath.Text, TxtBxDatabaseName.Text, TxtBxDatabaseInstanceName.Text, TxtBxDataBaseUsername.Text, TxtBxDatabasePassword.Text);

                    // If the restaurant service is checked then set its corresponding value in the next form to true.
                    frmSoftwareInstallationObj.RestaurantCheckBox = CkeckBxRestaurant.Checked ? true : false;

                    // If the web service is checked then set its corresponding value in the next form to true.
                    frmSoftwareInstallationObj.WebServiceCheckBox = checkBxWebServer.Checked ? true : false;

                    // Transfer the value that defines whether IIS got installed in the second form or not.
                    // Note that a full IIS installation needs a restart.
                    frmSoftwareInstallationObj.IISInstalled = IISInstalled;

                    frmSoftwareInstallationObj.Show();
                    Hide();
                }
                else
                {
                    MessageBox.Show(verificationMessage);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Beispiel #2
0
 public FileManager(FrmSoftwareInstallation frmSoftwareInstallationObj)
 {
     FrmSoftwareInstallationObj = frmSoftwareInstallationObj;
 }
Beispiel #3
0
 public Installation(FrmSoftwareInstallation frmSoftwareInstallationObj)
 {
     FrmSoftwareInstallationObj = frmSoftwareInstallationObj;
 }