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);
                }
            }
        }
Exemplo n.º 3
0
        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());
            }
        }
Exemplo n.º 4
0
 private void iISResetToolStripMenuItem_Click(object sender, EventArgs e)
 {
     PMASystemAnalyzer.ResetIIS();
 }
Exemplo n.º 5
0
 private void stopServiceToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     UpdateConfig(PANEL);
     configManager.SaveConfiguration();
     MessageBox.Show(PMASystemAnalyzer.StopService());
 }
Exemplo n.º 6
0
 public void UpdateUI()
 {
     richTextBox_SystemInformation.Text = PMASystemAnalyzer.GetSystemInformation();
 }