コード例 #1
0
        public DiagnosticsWindow()
        {
            InitializeComponent();
            #region Localizing
            this.Text = L18n.Get("DiagnosticsWindow", "DiagnosticsWindow_name");
            this.Tab_SystemInfo.Text   = L18n.Get("DiagnosticsWindow", "Tab_SystemInfo");
            this.Tab_Flash_Player.Text = L18n.Get("DiagnosticsWindow", "Tab_Flash_Player");
            this.Tab_Network.Text      = L18n.Get("DiagnosticsWindow", "Tab_Network");

            this.forProcessor.Text        = L18n.Get("DiagnosticsWindow", "Label_forProcessor");
            this.forMemory.Text           = L18n.Get("DiagnosticsWindow", "Label_forMemory");
            this.forGraphics.Text         = L18n.Get("DiagnosticsWindow", "Label_forGraphics");
            this.forDriver.Text           = L18n.Get("DiagnosticsWindow", "Label_forDriver");
            this.forOS.Text               = L18n.Get("DiagnosticsWindow", "Label_forOS");
            this.forResolution.Text       = L18n.Get("DiagnosticsWindow", "Label_forResolution");
            this.forIpAddress.Text        = L18n.Get("DiagnosticsWindow", "Label_forIpAddress");
            this.btnCheckFlash.Text       = L18n.Get("DiagnosticsWindow", "Button_btnCheckFlash");
            this.btnCheckPorts.Text       = L18n.Get("DiagnosticsWindow", "Button_btnCheckPorts");
            this.btnPing.Text             = L18n.Get("DiagnosticsWindow", "Button_btnPing");
            this.btnTrace.Text            = L18n.Get("DiagnosticsWindow", "Button_btnTrace");
            this.labelNetworkResults.Text = L18n.Get("DiagnosticsWindow", "Label_labelNetworkResults");
            #endregion ;
            FillSystemInfo();
            self = this;
        }
コード例 #2
0
 private void Button_Diagnostics_Click(object sender, EventArgs e)
 {
     if (DiagnosticsWindow.self == null)
     {
         this.Hide();
         DiagnosticsWindow window = new DiagnosticsWindow();
         window.ShowDialog();
         this.Show();
     }
     else
     {
         if (DiagnosticsWindow.self.WindowState == FormWindowState.Minimized)
         {
             DiagnosticsWindow.self.WindowState = FormWindowState.Normal;
         }
         else
         {
             DiagnosticsWindow.self.Show();
         }
     }
 }
コード例 #3
0
 private void DiagnosticsWindow_FormClosing(object sender, FormClosingEventArgs e)
 {
     self = null;
 }