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); } }
public FileManager(FrmSoftwareInstallation frmSoftwareInstallationObj) { FrmSoftwareInstallationObj = frmSoftwareInstallationObj; }
public Installation(FrmSoftwareInstallation frmSoftwareInstallationObj) { FrmSoftwareInstallationObj = frmSoftwareInstallationObj; }