blob: 1ce7107ef92df4ac966648f6ead4202bc1e9115f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
//
// System.Windows.Forms.Application
//
// Author:
// Miguel de Icaza (miguel@ximian.com)
//
// (C) 2002 Ximian, Inc
//
using System;
using System.Drawing;
using Gtk;
using GtkSharp;
using System.ComponentModel;
namespace System.Windows.Forms {
public sealed class Application {
public static void Run ()
{
Gtk.Application.Run ();
}
static void terminate_event_loop (object o, EventArgs args)
{
Gtk.Application.Quit ();
}
public static void Run (Form form)
{
form.Visible = true;
form.Closed += new EventHandler (terminate_event_loop);
Gtk.Application.Run ();
}
}
}
|