private void btnTest_Click(object sender, EventArgs e) { if (connector == null) { MessageBox.Show("Establish a connection first."); } else { frmStationEmulatorFunctionTest frm = new frmStationEmulatorFunctionTest(connector); frm.ShowDialog(); } }
public static void Display(StationEmulator_8960 se8960)//GPIB_Connector connector) { if (me == null) { me = new frmStationEmulatorFunctionTest(se8960); } else if (me.IsDisposed) { me.Close(); me = null; me = new frmStationEmulatorFunctionTest(se8960); } me.Show(); }