Exemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void diagnosticsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         if (listView1.SelectedItems.Count > 0)
         {
             ListViewItem          lvi    = listView1.SelectedItems[0];
             string                nodeId = lvi.Tag.ToString();
             SessionDiagnosticsDlg dlg    = new SessionDiagnosticsDlg(m_Session, new NodeId(nodeId));
             dlg.Text = m_Session.Endpoint.EndpointUrl.ToString() + " - " + lvi.Text + " - SessionDiagnostics";
             m_Forms.Add(dlg);
             dlg.Show();
         }
     }
     catch (Exception exception)
     {
         GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void diagnosticsToolStripMenuItem_Click(object sender, EventArgs e)
 {
   try
   {
     if (listView1.SelectedItems.Count > 0)
     {
       ListViewItem lvi = listView1.SelectedItems[0];
       string nodeId = lvi.Tag.ToString();
       SessionDiagnosticsDlg dlg = new SessionDiagnosticsDlg(m_Session, new NodeId(nodeId));
       dlg.Text = m_Session.Endpoint.EndpointUrl.ToString() + " - " + lvi.Text + " - SessionDiagnostics";
       m_Forms.Add(dlg);
       dlg.Show();
     }
   }
   catch (Exception exception)
   {
     GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
   }
 }