Inheritance: BaseModuleControl
コード例 #1
0
ファイル: Quotes.cs プロジェクト: sethjuarez/DevAV
 protected override void OnLoad(System.EventArgs e) {
     base.OnLoad(e);
     var moduleLocator = GetService<Services.IModuleLocator>();
     quoteView = moduleLocator.GetModule(ModuleType.QuoteView) as QuoteView;
     ViewModelHelper.EnsureModuleViewModel(quoteView, ViewModel, ViewModel.SelectedEntityKey);
     quoteView.Dock = DockStyle.Fill;
     quoteView.Parent = pnlView;
     quoteView.DataSource = ViewModel.GetOpportunities();
 }
コード例 #2
0
ファイル: Quotes.cs プロジェクト: ridwanwong/DevAV
        protected override void OnLoad(System.EventArgs e)
        {
            base.OnLoad(e);
            var moduleLocator = GetService <Services.IModuleLocator>();

            quoteView = moduleLocator.GetModule(ModuleType.QuoteView) as QuoteView;
            ViewModelHelper.EnsureModuleViewModel(quoteView, ViewModel, ViewModel.SelectedEntityKey);
            quoteView.Dock       = DockStyle.Fill;
            quoteView.Parent     = pnlView;
            quoteView.DataSource = ViewModel.GetOpportunities();
        }
コード例 #3
0
        void UpdateColors()
        {
            var moduleLocator = GetService <Services.IModuleLocator>();

            if (moduleLocator == null || !moduleLocator.IsModuleLoaded(ModuleType.QuoteView))
            {
                return;
            }
            QuoteView quoteView = moduleLocator.GetModule(ModuleType.QuoteView) as QuoteView;

            ItemsLayer.ItemStyle.Fill = quoteView.GetStageColor(ViewModel.Stage);
        }