Ejemplo n.º 1
0
        public DIOControlWindow(int _ProjectType = 0, string _CommonFolderPath = "")
        {
            CommonFolderPath = _CommonFolderPath;

            InitializeComponent();
            InitializeControl();

            ProjectType = (eProjectType)_ProjectType;
            DioNamingWnd.ChangeNameEvent += new DIONamingWindow.ChangeNameHandler(ChangeNameEventFunction);

            ALIVE_SIGNAL_TIME = 50;
            ALIVE_CHECK_TIME  = 500;

            if (ProjectType == eProjectType.NONE)
            {
                DioBaseCmd = new DefaultCmd(IOCnt);
            }
            else if (ProjectType == eProjectType.DISPENSER)
            {
                DioBaseCmd = new DispenserCmd(IOCnt);
            }
            else if (ProjectType == eProjectType.BLOWER)
            {
                DioBaseCmd = new AirBlowCmd(IOCnt);
            }
            else if (ProjectType == eProjectType.SORTER)
            {
                DioBaseCmd = new SorterCmd();
            }
            else if (ProjectType == eProjectType.TRIM)
            {
                DioBaseCmd = new TrimFormCmd();
            }
        }
Ejemplo n.º 2
0
        public DIOControlWindow(int _ProjectType = 0, string _CommonFolderPath = "")
        {
            CommonFolderPath = _CommonFolderPath;

            InitializeComponent();
            InitializeControl();

            ProjectType = (eProjectType)_ProjectType;
            DioNamingWnd.ChangeNameEvent += new DIONamingWindow.ChangeNameHandler(ChangeNameEventFunction);

            ALIVE_SIGNAL_TIME = 50;
            ALIVE_CHECK_TIME  = 500;

            if (ProjectType == eProjectType.NONE)
            {
                DioBaseCmd = new DefaultCmd(IOCnt);
            }
            else if (ProjectType == eProjectType.TRIM_FORM)
            {
                DioBaseCmd = new TrimFormCmd();
            }
            else if (ProjectType == eProjectType.BC_QCC)
            {
                DioBaseCmd = new CardManagerCmd();
            }
        }