Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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;
            }
        }
Ejemplo n.º 3
0
 public frmMFResType(MfgResourceType inResourceType)
 {
     InitializeComponent();
     this.mResourceType = inResourceType;
     this.pmInitForm();
 }