Пример #1
0
        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();
        }
Пример #2
0
 protected override bool OnKeyPressEvent(EventKey evnt)
 {
     if (evnt.Key == Gdk.Key.Escape && IdeApp.Workspace.IsOpen)
     {
         WelcomePageService.HideWelcomePage(true);
     }
     return(base.OnKeyPressEvent(evnt));
 }
Пример #3
0
        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();
        }
Пример #4
0
 public static void Show()
 {
     WelcomePageService.ShowWelcomePageOrWindow(options: new WelcomeWindowShowOptions(false, true));
 }
Пример #5
0
 public static void Show()
 {
     WelcomePageService.ShowWelcomePage(true);
 }