Пример #1
0
        public static void ShowWelcomePage(bool animate = false)
        {
            if (!visible)
            {
                visible = true;
                if (welcomePage == null)
                {
                    var provider = AddinManager.GetExtensionObjects <IWelcomePageProvider> ().FirstOrDefault();
                    welcomePage = new WelcomePageFrame(provider != null ? provider.CreateWidget() : new DefaultWelcomePage());
                }
                WelcomePageShown?.Invoke(welcomePage, EventArgs.Empty);
                welcomePage.UpdateProjectBar();

                var rootWindow = (DefaultWorkbench)IdeApp.Workbench.RootWindow;
                if (rootWindow.BottomBar is MonoDevelopStatusBar statusBar)
                {
                    statusBar.Visible = false;
                }

                if (rootWindow.DockFrame is Components.Docking.DockFrame dockFrame)
                {
                    dockFrame.AddOverlayWidget(welcomePage, animate);
                }
                welcomePage.GrabFocus();
            }
        }
		public static void ShowWelcomePage (bool animate = false)
		{
			if (!visible) {
				visible = true;
				if (welcomePage == null) {
					var provider = AddinManager.GetExtensionObjects<IWelcomePageProvider> ().FirstOrDefault ();
					welcomePage = new WelcomePageFrame (provider != null ? provider.CreateWidget () : new DefaultWelcomePage ());
				}
				welcomePage.UpdateProjectBar ();
				((DefaultWorkbench)IdeApp.Workbench.RootWindow).BottomBar.Visible = false;
				((DefaultWorkbench)IdeApp.Workbench.RootWindow).DockFrame.AddOverlayWidget (welcomePage, animate);
				welcomePage.GrabFocus ();
			}
		}
Пример #3
0
 public static void ShowWelcomePage(bool animate = false)
 {
     if (!visible)
     {
         visible = true;
         if (welcomePage == null)
         {
             var provider = AddinManager.GetExtensionObjects <IWelcomePageProvider> ().FirstOrDefault();
             welcomePage = new WelcomePageFrame(provider != null ? provider.CreateWidget() : new DefaultWelcomePage());
         }
         welcomePage.UpdateProjectBar();
         ((DefaultWorkbench)IdeApp.Workbench.RootWindow).BottomBar.Visible = false;
         ((DefaultWorkbench)IdeApp.Workbench.RootWindow).DockFrame.AddOverlayWidget(welcomePage, animate);
         welcomePage.GrabFocus();
     }
 }