public WelcomePageProjectBar() { SetPadding(3, 3, 12, 12); GradientBackround = true; HBox box = new HBox(false, 6); box.PackStart(messageLabel = new Gtk.Label() { Xalign = 0 }, true, true, 0); backButton = new Gtk.Button(); box.PackEnd(backButton, false, false, 0); closeButton = new Gtk.Button(); box.PackEnd(closeButton, false, false, 0); closeButton.Clicked += delegate { if (IdeApp.Workspace.IsOpen) { IdeApp.Workspace.Close(); } else { IdeApp.Workbench.CloseAllDocuments(false); } }; backButton.Clicked += delegate { WelcomePageService.HideWelcomePage(true); }; Add(box); UpdateContent(); }
protected override bool OnKeyPressEvent(EventKey evnt) { if (evnt.Key == Gdk.Key.Escape && IdeApp.Workspace.IsOpen) { WelcomePageService.HideWelcomePage(true); } return(base.OnKeyPressEvent(evnt)); }
public WelcomePageProjectBar() { SetPadding(3, 3, 12, 12); GradientBackground = false; BackgroundColor = MonoDevelop.Ide.Gui.Styles.BaseBackgroundColor.ToGdkColor(); HBox box = new HBox(false, 6); box.PackStart(messageLabel = new Gtk.Label() { Xalign = 0 }, true, true, 0); backButton = new Gtk.Button(); box.PackEnd(backButton, false, false, 0); backButton.Clicked += delegate { WelcomePageService.HideWelcomePage(true); }; Add(box); UpdateContent(); }
public static void Show() { WelcomePageService.ShowWelcomePageOrWindow(options: new WelcomeWindowShowOptions(false, true)); }
public static void Show() { WelcomePageService.ShowWelcomePage(true); }