public static void subShowSwitchboard() { try { if (objSwitchboard == null) objSwitchboard = new frmSwitchboard(); if (objSwitchboard.IsDisposed) { objSwitchboard = null; objSwitchboard = new frmSwitchboard(); } objSwitchboard.Show(); } catch (Exception ex) { clsErr.subLogErr("subShowSwitchboard", ex); } }
public static void subCloseSwitchboard() { try { objSwitchboard.Close(); objSwitchboard.Dispose(); objSwitchboard = null; } catch (Exception ex) { clsErr.subLogErr("subCloseSwitchboard", ex); } }