Exemplo n.º 1
0
        public void Start(IBundleContext context)
        {
            var splashForm = new SplashForm(Resources.Splashscreen);

            splashForm.Show();

            context.AddService(typeof(IWPFUIElementAdapter), new WPFUIElementAdapter());

            var layoutView = new ShellLayoutView();

            context.AddService <IWorkspace>(layoutView.Workspace);
            context.AddService(layoutView.CreateShellLayoutViewProxy());


            var form = new ShellForm();

            context.AddService <Form>(form);
            form.ShowLayoutIvew(layoutView);

            form.Activated += (sender, e) => splashForm.Close();
        }
Exemplo n.º 2
0
 public void ShowLayoutIvew(ShellLayoutView view)
 {
     Controls.Clear();
     Controls.Add(view);
     view.Dock = DockStyle.Fill;
 }