Esempio n. 1
0
        public FrmProjectMoreInfo(AbstractProjectProductionRealTimeManager projectProductionRealTimeManager)
        {
            InitializeComponent();

            this._projectProductionRealTimeManager = projectProductionRealTimeManager;

            base.AutoCloseFormEvent += new AutoCloseFormDelegate(AlertForm_AutoCloseFormEvent);
            base.AutoCloseAlertEvent += new AutoCloseAlertDelegate(AlertForm_AutoCloseAlertEvent);
        }
Esempio n. 2
0
        public ProjectStop(AbstractProjectProductionRealTimeManager projectProductionRealTimeManager)
        {
            InitializeComponent();

            InitializeFormControls();

            this._projectProductionRealTimeManager = projectProductionRealTimeManager;

            if (this._projectProductionRealTimeManager != null)
            {
                this._projectProductionRealTimeManager.InitializeEvent += new EventHandler(ProjectProductionRealTimeManager_InitializeEvent);
                this._projectProductionRealTimeManager.ShiftProjectRealTimeDataEvent += new EventHandler<EventBaseInfo<ShiftProjectProductionDataInformation>>(ProjectProductionRealTimeManager_ShiftProjectRealTimeDataEvent);
                this._projectProductionRealTimeManager.ProjectRealTimeDataEvent += new EventHandler<EventBaseInfo<ProjectProductionDataInformation>>(ProjectProductionRealTimeManager_ProjectRealTimeDataEvent);
                this._projectProductionRealTimeManager.ResetEvent += new EventHandler(ProjectProductionRealTimeManager_ResetEvent);
                this._projectProductionRealTimeManager.BaseDataChangeEvent += new EventHandler(ProjectProductionRealTimeManager_BaseDataChangeEvent);
                this._projectProductionRealTimeManager.ProjectFinishTypeEvent += new EventHandler<EventBaseInfo<CommonDefine.ProjectFinishType>>(ProjectProductionRealTimeManager_ProjectFinishTypeEvent);
            }
        }
Esempio n. 3
0
        public ProjectStatus(AbstractProjectProductionRealTimeManager projectProductionRealTimeManager)
        {
            InitializeComponent();

            this.InitializeMainFrameControl();

            this._projectProductionRealTimeManager = projectProductionRealTimeManager;

            if (this._projectProductionRealTimeManager != null)
            {
                this._projectProductionRealTimeManager.InitializeEvent += new EventHandler(ProjectProductionRealTimeManager_InitializeEvent);
                this._projectProductionRealTimeManager.ShiftProjectRealTimeDataEvent += new EventHandler<EventBaseInfo<ShiftProjectProductionDataInformation>>(ProjectProductionRealTimeManager_ShiftProjectRealTimeDataEvent);
                this._projectProductionRealTimeManager.ResetEvent += new EventHandler(ProjectProductionRealTimeManager_ResetEvent);
                this._projectProductionRealTimeManager.BaseDataChangeEvent += new EventHandler(ProjectProductionRealTimeManager_BaseDataChangeEvent);
                this._projectProductionRealTimeManager.ProjectProductionDataFullEvent += new EventHandler<EventBaseInfo<CommonDefine.ProjectDataType>>(ProjectProductionRealTimeManager_ProjectProductionDataFullEvent);
                this._projectProductionRealTimeManager.ProjectStatusFunctionEnableEvent += new EventHandler<EventBaseInfo<CommonDefine.ProjectStatusFunctionEnable>>(ProjectProductionRealTimeManager_ProjectStatusFunctionEnableEvent);
            }

            if (GlobalVar.IsActionPLCVirtualMachine())
            {
                this._projectStatusBase.ButtonPLCVirtualMachine.Visible = true;
            }
        }