private void BindServicesCheckBox() { foreach (string serviceName in PMASystemAnalyzer.GetAllServicesNames()) { checkedListBox_Services.Items.Add(serviceName); } }
private void InitializeDrives() { DriveInfo[] driveInfo = PMASystemAnalyzer.GetSystemDiscs(); foreach (DriveInfo drive in driveInfo) { if (drive.DriveType == DriveType.Fixed) { checkedListBox_Drives.Items.Add(drive.Name); } } }
private void button_Post_Click(object sender, EventArgs e) { StringBuilder errorMessage = new StringBuilder(); if (ValidateEmails(out errorMessage)) { List <string> emails = new List <string>(); if (textBox_emails.Text != string.Empty) { emails = textBox_emails.Text.Split(';').ToList <string>(); } string subject = "PMA System Alerts : General : " + Environment.MachineName + " System Information"; PMASystemAnalyzer.SendMail(subject, richTextBox_SystemInformation.Text, emails, null); MessageBox.Show(this, "Message Posted Successfully"); } else { MessageBox.Show(this, errorMessage.ToString()); } }
private void iISResetToolStripMenuItem_Click(object sender, EventArgs e) { PMASystemAnalyzer.ResetIIS(); }
private void stopServiceToolStripMenuItem1_Click(object sender, EventArgs e) { UpdateConfig(PANEL); configManager.SaveConfiguration(); MessageBox.Show(PMASystemAnalyzer.StopService()); }
public void UpdateUI() { richTextBox_SystemInformation.Text = PMASystemAnalyzer.GetSystemInformation(); }