예제 #1
0
        protected override void OnLoad(System.EventArgs e)
        {
            base.OnLoad(e);
            var moduleLocator = GetService <Services.IModuleLocator>();

            customerView = moduleLocator.GetModule(ModuleType.CustomerView) as CustomerView;
            ViewModelHelper.EnsureModuleViewModel(customerView, ViewModel, ViewModel.SelectedEntityKey);
            customerView.Dock   = DockStyle.Fill;
            customerView.Parent = pnlView;
            gridView.ExpandMasterRow(0);
        }
예제 #2
0
 protected override void OnLoad(System.EventArgs e) {
     base.OnLoad(e);
     var moduleLocator = GetService<Services.IModuleLocator>();
     customerView = moduleLocator.GetModule(ModuleType.CustomerView) as CustomerView;
     ViewModelHelper.EnsureModuleViewModel(customerView, ViewModel, ViewModel.SelectedEntityKey);
     customerView.Dock = DockStyle.Fill;
     customerView.Parent = pnlView;
     gridView.ExpandMasterRow(0);
 }