Inheritance: BaseModuleControl
Exemplo n.º 1
0
        protected override void OnLoad(System.EventArgs e)
        {
            base.OnLoad(e);
            UnsubscribeOrderViewEvents();
            var moduleLocator = GetService <Services.IModuleLocator>();

            orderView = moduleLocator.GetModule(ModuleType.OrderView) as OrderView;
            SubscribeOrderViewEvents();
            ViewModelHelper.EnsureModuleViewModel(orderView, ViewModel, ViewModel.SelectedEntityKey);
            orderView.Dock   = DockStyle.Fill;
            orderView.Parent = pnlView;
            gridView.ExpandMasterRow(0);
        }
Exemplo n.º 2
0
 protected override void OnLoad(System.EventArgs e) {
     base.OnLoad(e);
     UnsubscribeOrderViewEvents();
     var moduleLocator = GetService<Services.IModuleLocator>();
     orderView = moduleLocator.GetModule(ModuleType.OrderView) as OrderView;
     SubscribeOrderViewEvents();
     ViewModelHelper.EnsureModuleViewModel(orderView, ViewModel, ViewModel.SelectedEntityKey);
     orderView.Dock = DockStyle.Fill;
     orderView.Parent = pnlView;
     gridView.ExpandMasterRow(0);
 }