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); } }
private void BtnBackupPathBrowser_Click(object sender, EventArgs e) { try { DataVerification dataVerification = new DataVerification(this); DialogResult result = FolderBrowserDialogPaths.ShowDialog(); if (result == DialogResult.OK) { dataVerification.BackupPathVerification(); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void BtnVerification_Click(object sender, EventArgs e) { try { DataVerification dataVerification = new DataVerification(this); dataVerification.DatabaseConnectabilityVerification(); BtnInstallSoftware.Enabled = true; } catch (Exception ex) { MessageBox.Show(ex.Message); TxtBxDatabaseName.Text = string.Empty; TxtBxDatabaseInstanceName.Text = string.Empty; TxtBxDataBaseUsername.Text = string.Empty; TxtBxDatabasePassword.Text = string.Empty; } }