public ProjectMaterialNewSearch(AbstractProjectMaterialManager ProjectMaterialManager)
        {
            InitializeComponent();

            InitializeFormControls();

            InitParams();

            InitController(ProjectMaterialManager);
        }
Esempio n. 2
0
        public ProjectMateriel(AbstractProjectMaterialManager ProjectMaterialManager)
        {
            InitializeComponent();

            InitializeFormControls();

            if (ProjectMaterialManager != null)
            {
                InitController(ProjectMaterialManager);
            }
            else
            {
                base.ShowErrorMessage("工程物料頁面初始化失敗,沒有可用的控制器");
            }
        }
 void InitController(AbstractProjectMaterialManager ProjectMaterialManager)
 {
     this.m_Controller = ProjectMaterialManager;
     this.m_Controller.BaseDataChangeEvent += new EventHandler(m_AbstractProjectMaterialManager_BaseDataChangeEvent);
 }
Esempio n. 4
0
 void InitController(AbstractProjectMaterialManager controller)
 {
     m_ProjectMaterialManager = controller;
     m_ProjectMaterialManager.InitializeEvent += new EventHandler(m_ProjectMaterialManager_InitializeEvent);
     m_ProjectMaterialManager.BaseDataChangeEvent += new EventHandler(m_ProjectMaterialManager_BaseDataChangeEvent);
     m_ProjectMaterialManager.ProductionDataUpdateEvent += new EventHandler(m_ProjectMaterialManager_ProductionDataUpdateEvent);
     m_ProjectMaterialManager.ResetEvent += new EventHandler(m_ProjectMaterialManager_ResetEvent);
 }