コード例 #1
0
ファイル: GtkSharpWindow.cs プロジェクト: ventor3000/guppy
        public override void Show()
        {
            Response = null;
            Gtk.Window parent = GtkSharpDriver.GetForegroundWindow();

            //Size = ShellObject.LayoutInfo.Size;

            window.TransientFor = null;
            window.Modal        = false;

            SolveWindowPosition(parent);

            window.Show();
        }
コード例 #2
0
ファイル: GtkSharpWindow.cs プロジェクト: ventor3000/guppy
        public override object ShowModal()
        {
            Response = null;
            Gtk.Window parent = GtkSharpDriver.GetForegroundWindow();

            window.TransientFor = parent;
            window.Modal        = true;

            SolveWindowPosition(parent);

            window.Show();

            while (window.Visible)
            {
                Gtk.Application.RunIteration(true);
            }

            return(Response);
        }