コード例 #1
0
 private void ShowPerformanceCounter()
 {
     PCF          = new MakeClassSchedule.PerformanceCounterControls.PerformanceCounterForm();
     PCF.chClosed = this.chPerformanceCounter;
     PCF.PC_ActivityMonitor.RefreshData();
     this.chPerformanceCounter.Checked = true;
     PCF.Show();
 }
コード例 #2
0
 private void chPerformanceCounter_CheckedChanged(object sender, EventArgs e)
 {
     this.Cursor = Cursors.WaitCursor;
     if (chPerformanceCounter.Checked)
     {
         if (Environment.Is64BitOperatingSystem)
         {
             if (MessageBox.Show("Your system is 64Bit Operating System. \n\rSo this application is 32Bit and dose not work safely on your system." +
                                 "\n\rDo you want to open Activity Monitor for this system ?", "64Bit System Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Warning,
                                 MessageBoxDefaultButton.Button2, MessageBoxOptions.DefaultDesktopOnly) == System.Windows.Forms.DialogResult.Yes)
             {
                 _setting.Show_ActivityMonitor = true;
                 PCF          = new MakeClassSchedule.PerformanceCounterControls.PerformanceCounterForm();
                 PCF.chClosed = this.chPerformanceCounter;
                 PCF.PC_ActivityMonitor.RefreshData();
                 this.chPerformanceCounter.Checked = true;
                 PCF.Show();
             }
             else
             {
                 this.Cursor = Cursors.Default;
                 chPerformanceCounter.Checked = false;
                 return;
             }
         }
         else
         {
             _setting.Show_ActivityMonitor = true;
             PCF          = new MakeClassSchedule.PerformanceCounterControls.PerformanceCounterForm();
             PCF.chClosed = this.chPerformanceCounter;
             PCF.PC_ActivityMonitor.RefreshData();
             this.chPerformanceCounter.Checked = true;
             PCF.Show();
         }
     }
     else if (PCF != null)
     {
         PCF.Dispose();
         _setting.Show_ActivityMonitor = false;
     }
     this.Cursor = Cursors.Default;
 }
コード例 #3
0
 private void ShowPerformanceCounter()
 {
     PCF = new MakeClassSchedule.PerformanceCounterControls.PerformanceCounterForm();
     PCF.chClosed = this.chPerformanceCounter;
     PCF.PC_ActivityMonitor.RefreshData();
     this.chPerformanceCounter.Checked = true;
     PCF.Show();
 }
コード例 #4
0
 private void chPerformanceCounter_CheckedChanged(object sender, EventArgs e)
 {
     this.Cursor = Cursors.WaitCursor;
     if (chPerformanceCounter.Checked)
     {
         if (Environment.Is64BitOperatingSystem)
         {
             if (MessageBox.Show("Your system is 64Bit Operating System. \n\rSo this application is 32Bit and dose not work safely on your system." +
                  "\n\rDo you want to open Activity Monitor for this system ?", "64Bit System Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Warning,
                   MessageBoxDefaultButton.Button2, MessageBoxOptions.DefaultDesktopOnly) == System.Windows.Forms.DialogResult.Yes)
             {
                 _setting.Show_ActivityMonitor = true;
                 PCF = new MakeClassSchedule.PerformanceCounterControls.PerformanceCounterForm();
                 PCF.chClosed = this.chPerformanceCounter;
                 PCF.PC_ActivityMonitor.RefreshData();
                 this.chPerformanceCounter.Checked = true;
                 PCF.Show();
             }
             else
             {
                 this.Cursor = Cursors.Default;
                 chPerformanceCounter.Checked = false;
                 return;
             }
         }
         else
         {
             _setting.Show_ActivityMonitor = true;
             PCF = new MakeClassSchedule.PerformanceCounterControls.PerformanceCounterForm();
             PCF.chClosed = this.chPerformanceCounter;
             PCF.PC_ActivityMonitor.RefreshData();
             this.chPerformanceCounter.Checked = true;
             PCF.Show();
         }
     }
     else if (PCF != null)
     {
         PCF.Dispose();
         _setting.Show_ActivityMonitor = false;
     }
     this.Cursor = Cursors.Default;
 }