Пример #1
0
        public EscapeWindow(Widget parent) : base(parent)
        {
            btnLogout        = new Button(this, 80);
            btnLogout.Text   = "Logout";
            btnLogout.Click += () => Logout.Raise();

            btnExit        = new Button(this, 80);
            btnExit.Text   = "Exit";
            btnExit.Click += () => Exit.Raise();

            var layout = new GridLayout();

            layout.Spacing = 5;
            layout.AddWidget(btnLogout, 0, 0);
            layout.AddWidget(btnExit, 1, 0);
            layout.UpdateGeometry(0, 0, 0, 0);

            Pack();
        }