Ejemplo n.º 1
0
        public static void Main(string[] args)
        {
            //			Application.Init ();
            //
            //			builder b = new builder();
            //			b.DeleteEvent += HandleDeleteEvent;
            //			b.DestroyEvent += HandleDestroyEvent;
            //
            //			b.ShowAll();
            //
            //			Application.Run ();

            String engineType = "Xwt.GtkBackend.GtkEngine, Xwt.Gtk, Version=1.0.0.0";
            Application.Initialize (engineType);

            bob = new builder ();
            bob.Title = "Gladebuilder";
            bob.Width = 500;
            bob.Height = 400;
            bob.Show ();
            bob.Disposed += HandleDisposed;
            bob.CloseRequested += HandleCloseRequested;
            bob.Location = new Point(200,200);
            Application.Run ();

            bob.Dispose ();
        }
Ejemplo n.º 2
0
        public static void Main(string[] args)
        {
//			Application.Init ();
//
//			builder b = new builder();
//			b.DeleteEvent += HandleDeleteEvent;
//			b.DestroyEvent += HandleDestroyEvent;
//
//			b.ShowAll();
//
//			Application.Run ();

            String engineType = "Xwt.GtkBackend.GtkEngine, Xwt.Gtk, Version=1.0.0.0";

            Application.Initialize(engineType);


            bob        = new builder();
            bob.Title  = "Gladebuilder";
            bob.Width  = 500;
            bob.Height = 400;
            bob.Show();
            bob.Disposed       += HandleDisposed;
            bob.CloseRequested += HandleCloseRequested;
            bob.Location        = new Point(200, 200);
            Application.Run();

            bob.Dispose();
        }
Ejemplo n.º 3
0
        static void HandleCloseRequested(object sender, CloseRequestedEventArgs args)
        {
            if (bob != null)
            {
                bob.Dispose();
                //bob = null;
            }

            //Application.Exit();
        }