public static IoVeiewerSetTabForm getSingleton(IOViewerUnitControl UnitControl) { if (singleton == null) { singleton = new IoVeiewerSetTabForm(); } return(singleton); }
private void ViewerSetupbutton_Click(object sender, EventArgs e) { if (IoVeiewerSetTabForm.getSingleton(this).Visible == false) { IoVeiewerSetTabForm.getSingleton(this).Show(this); } else { IoVeiewerSetTabForm.getSingleton(this).Activate(); } }