private static void pmClearInstanse() { if (mInstanse != null) { mInstanse = null; } }
public static frmAmphur GetInstanse() { if (mInstanse == null) { mInstanse = new frmAmphur(); } return(mInstanse); }
private void pmInitPopUpDialog(string inDialogName) { switch (inDialogName.TrimEnd().ToUpper()) { case "AMPHUR": if (this.pofrmGetAmphur == null) { this.pofrmGetAmphur = new DatabaseForms.frmAmphur(FormActiveMode.PopUp); this.pofrmGetAmphur.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetAmphur.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; } }