public static frmMFResType GetInstanse(MfgResourceType inResourceType) { switch (inResourceType) { case MfgResourceType.Machine: if (mInstanse_1 == null) { mInstanse_1 = new frmMFResType(inResourceType); } return(mInstanse_1); break; case MfgResourceType.Tool: if (mInstanse_2 == null) { mInstanse_2 = new frmMFResType(inResourceType); } return(mInstanse_2); break; } return(null); }
private static void pmClearInstanse(MfgResourceType inResourceType) { switch (inResourceType) { case MfgResourceType.Machine: if (mInstanse_1 != null) { mInstanse_1 = null; } break; case MfgResourceType.Tool: if (mInstanse_2 != null) { mInstanse_2 = null; } break; } }