Exemplo n.º 1
0
        public ProjectQualityCheck(AbstractProjectQCManager controller)
        {
            InitializeComponent();

            InitializeFormControls();

            if (controller != null)
            {
                InitController(controller);
            }
            else
            {
                base.ShowErrorMessage("工程品檢頁面初始化失敗,沒有可用的控制器");
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// 初始化控制器
 /// </summary>
 private void InitController(AbstractProjectQCManager controller)
 {
     this.m_ProjectQCManager = controller;
     this.m_ProjectQCManager.InitializeEvent += new EventHandler(m_ProjectQCManager_InitializeEvent);
     this.m_ProjectQCManager.BaseDataChangeEvent += new EventHandler(m_ProjectQCManager_BaseDataChangeEvent);
     this.m_ProjectQCManager.ProductionDataUpdateEvent += new EventHandler(m_ProjectQCManager_ProductionDataUpdateEvent);
     this.m_ProjectQCManager.RecordEditEvent += new EventHandler<EventBaseInfo<AbstractProjectQCManager.QCPloblemViewInfo>>(m_ProjectQCManager_RecordEditEvent);
     this.m_ProjectQCManager.ProductionQuantityChangedEvent += new EventHandler<EventBaseInfo<int>>(m_ProjectQCManager_SetProductionQuantityEvent);
     this.m_ProjectQCManager.ResetEvent += new EventHandler(m_ProjectQCManager_ResetEvent);
 }