示例#1
0
 /// <summary>
 /// New protocol button clicked
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ctlBtnNew_Click(object sender, EventArgs e)
 {
     using (ProtocolViewForm pvform = new ProtocolViewForm())
     {
         pvform.ShowDialog();
     }
 }
示例#2
0
 /// <summary>
 /// Open button clicked
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ctlBtnOpen_Click(object sender, EventArgs e)
 {
     dialogOpenProtocol.Filter = "Protocol file|*." + Settings.Default.FILE_EXTENSION;
     if (dialogOpenProtocol.ShowDialog() == DialogResult.OK)
     {
         using (ProtocolViewForm pvform = new ProtocolViewForm())
         {
             pvform.ShowDialog();
         }
     }
 }