/// <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(); } }
/// <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(); } } }