예제 #1
0
 public void CloseSubModule()
 {
     openedSubModule.Parent = null;
     openedSubModule.Dispose();
     openedSubModule = null;
     UpdateButtonPanel();
 }
예제 #2
0
        void GotoModule(ModuleType mt, object param)
        {
            var moduleLocator = GetService <Services.IModuleLocator>();

            openedSubModule = moduleLocator.GetModule(mt) as BaseModuleControl;
            ViewModelHelper.EnsureModuleViewModel(openedSubModule, ViewModel, param);
            openedSubModule.Dock   = DockStyle.Fill;
            openedSubModule.Parent = this;
            openedSubModule.OnTransitionCompleted();
            openedSubModule.BringToFront();
        }