private void BUTTON_TagAccess_Click(object sender, EventArgs e) { LakeChabotReader reader = MainForm.ActiveReader; if (reader != null) { using (FORM_TagAccess dlg = new FORM_TagAccess(reader, reader.TagAccessDataSet)) { if (DialogResult.OK == dlg.ShowDialog( )) { reader.TagAccessDataSet = dlg.TagAccessDataSet; MainForm.StartTagAccess(); } else { return; } } } }
private void BUTTON_TagAccess_Click( object sender, EventArgs e ) { LakeChabotReader reader = MainForm.ActiveReader; if ( reader != null ) { using (FORM_TagAccess dlg = new FORM_TagAccess(reader, reader.TagAccessDataSet)) { if ( DialogResult.OK == dlg.ShowDialog( ) ) { reader.TagAccessDataSet = dlg.TagAccessDataSet; MainForm.StartTagAccess(); } else { return; } } } }