Example #1
0
 public void InitStage2()
 {
     m_MainFormService = ServiceHelper.Lookup<IMainFormService>(m_AppContext);
     m_PointAnalysisToolFrm.DockPanel = m_MainFormService.GetPointAnalysisDockPanel();
     m_PointAnalysisToolFrm.DockState = DockState.DockBottom;
     m_PointAnalysisToolFrm.DockHandler.NotifyWindowStateChanged = new NotifyWindowStateChangeDelegate(m_PointAnalysisToolButton.PointAnlyseFormClosed);
 }
Example #2
0
        public MainForm()
        {
            InitializeComponent();

            IMainFormService service = ObjectRegistry.GetRegisteredObject <IMainFormService>();

            presenter = ObjectRegistry.GetRegisteredObject <IMainFormPresenter>(this, service);
            presenter.Initialize();
        }
Example #3
0
        public async Task InitializeAsync()
        {
            _mainFormService = Ioc.Container.GetInstance <IMainFormService>();
            _mainFormService.InitializeService(_synchronizationContext, _viewerAndOptionsSplitContainer);

            await _solutionListTreeViewUserControl.InitializeAsync(_synchronizationContext);

            await _areaTagUserControl.InitializeAsync(_synchronizationContext);

            await _actionUserControl.InitializeAsync();

            await _viewerUserControl.InitializeAsync(_synchronizationContext);

            await _renderOptionsTreeViewUserControl.InitializeAsync(_synchronizationContext);
        }
Example #4
0
 public void Initialize()
 {
     this.m_IMainFormService = ServiceHelper.Lookup<IMainFormService>(this.m_IBaseService);
     if (null != this.m_IMainFormService)
     {
         this.m_IMainFormService.Begin_TreeNodeDragEvent += new Huawei.UNet.Frame.Interface.TreeNodeDragEventHandler(this.TreeNodeDragEventHandler);
     }
     List<PropagationModelDefine> allModelDefine = this.m_PropationModelMng.GetAllModelDefine();
     List<DataAccessDefine> dataAccessDef = null;
     System.Type modelType = null;
     foreach (PropagationModelDefine define in allModelDefine)
     {
         dataAccessDef = this.m_PropationModelMng.GetDataAccessDef(define.ModelClass);
         modelType = this.m_PropationModelMng.GetModelType(define.ModelClass);
         this.AddPropModelCategory(modelType, dataAccessDef, this.m_PropModelCollection);
     }
 }
        public MainFormPresenter(IMainFormViewModel viewModel, IMainFormService service)
        {
            if (viewModel == null)
            {
                throw new ArgumentNullException(nameof(viewModel));
            }
            if (service == null)
            {
                throw new ArgumentNullException(nameof(service));
            }

            this.viewModel = viewModel;
            this.service   = service;
            features       = service
                             .GetFeatures()
                             .OrderBy(ExtractViewName)
                             .ToList();
        }
Example #6
0
 public MainForm(IMainFormService service)
 {
     _service = service;
     InitializeComponent();
 }
 public MainFormPresenter(IMainForm view, IMainFormService service) : base(view)
 {
     _service          = service;
     _service.MainForm = View.NativeForm;
     View.Load        += View_Load;
 }