Exemplo n.º 1
0
        public override void Load()
        {
            // Put the following code before InitializeComponent()
            // Sets the current culture
            Thread.CurrentThread.CurrentCulture = new CultureInfo(CultureInfo.CurrentCulture.Name);
            // Sets the current culture
            Thread.CurrentThread.CurrentUICulture = new CultureInfo(CultureInfo.CurrentCulture.Name);



            base.Load();

            // Add layout view to the shell
            ShellLayoutView _shellLayout = _rootWorkItem.Items.AddNew <ShellLayoutView>();

            _rootWorkItem.Workspaces[WorkspaceNames.LayoutWorkspace].Show(_shellLayout);

            // Add window workspace to be used for modal windows
            WindowWorkspace wsp = new WindowWorkspace(_shellLayout.ParentForm);

            _rootWorkItem.Workspaces.Add(wsp, WorkspaceNames.ModalWindows);

            // Add window workspace to be used for screen saver
            WindowWorkspace scrSaver = new WindowWorkspace(_shellLayout.ParentForm);

            _rootWorkItem.Workspaces.Add(scrSaver, WorkspaceNames.ScreenSaverWindow);

            ControlledWorkItem <ModuleController> workItem = _rootWorkItem.WorkItems.AddNew <ControlledWorkItem <ModuleController> >();

            workItem.Controller.Run();
        }
Exemplo n.º 2
0
        public override void Load()
        {
            base.Load();

            // Add layout view to the shell
            ShellLayoutView _shellLayout = _rootWorkItem.Items.AddNew <ShellLayoutView>();

            _rootWorkItem.Workspaces[WorkspaceNames.LayoutWorkspace].Show(_shellLayout);

            // Add window workspace to be used for modal windows
            WindowWorkspace wsp = new WindowWorkspace(_shellLayout.ParentForm);

            _rootWorkItem.Workspaces.Add(wsp, WorkspaceNames.ModalWindows);

            // Add window workspace to be used for screen saver
            WindowWorkspace scrSaver = new WindowWorkspace(_shellLayout.ParentForm);

            _rootWorkItem.Workspaces.Add(scrSaver, WorkspaceNames.ScreenSaverWindow);

            ControlledWorkItem <ModuleController> workItem = _rootWorkItem.WorkItems.AddNew <ControlledWorkItem <ModuleController> >();

            workItem.Controller.Run();
        }