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); }
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); }