protected virtual void Build()
 {
     Stetic.Gui.Initialize();
     // Widget Monodoc.Editor.OpenDocDialog
     this.Name           = "Monodoc.Editor.OpenDocDialog";
     this.Title          = Mono.Unix.Catalog.GetString("File to Open");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.HasSeparator   = false;
     // Internal child Monodoc.Editor.OpenDocDialog.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name        = "dialog1_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.openFileDialog      = new Gtk.FileChooserWidget(((Gtk.FileChooserAction)(0)));
     this.openFileDialog.Name = "openFileDialog";
     w1.Add(this.openFileDialog);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(w1[this.openFileDialog]));
     w2.Position = 0;
     // Internal child Monodoc.Editor.OpenDocDialog.ActionArea
     Gtk.HButtonBox w3 = this.ActionArea;
     w3.Name        = "dialog1_ActionArea";
     w3.Spacing     = 6;
     w3.BorderWidth = ((uint)(5));
     w3.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonCancel              = new Gtk.Button();
     this.buttonCancel.CanDefault   = true;
     this.buttonCancel.CanFocus     = true;
     this.buttonCancel.Name         = "buttonCancel";
     this.buttonCancel.UseStock     = true;
     this.buttonCancel.UseUnderline = true;
     this.buttonCancel.Label        = "gtk-cancel";
     this.AddActionWidget(this.buttonCancel, -6);
     Gtk.ButtonBox.ButtonBoxChild w4 = ((Gtk.ButtonBox.ButtonBoxChild)(w3[this.buttonCancel]));
     w4.Expand = false;
     w4.Fill   = false;
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonOk              = new Gtk.Button();
     this.buttonOk.CanDefault   = true;
     this.buttonOk.CanFocus     = true;
     this.buttonOk.Name         = "buttonOk";
     this.buttonOk.UseStock     = true;
     this.buttonOk.UseUnderline = true;
     this.buttonOk.Label        = "gtk-open";
     w3.Add(this.buttonOk);
     Gtk.ButtonBox.ButtonBoxChild w5 = ((Gtk.ButtonBox.ButtonBoxChild)(w3[this.buttonOk]));
     w5.Position = 1;
     w5.Expand   = false;
     w5.Fill     = false;
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 629;
     this.DefaultHeight = 448;
     this.Show();
     this.openFileDialog.FileActivated += new System.EventHandler(this.OnOpenFileDialogFileActivated);
     this.buttonCancel.Clicked         += new System.EventHandler(this.OnButtonCancelClicked);
     this.buttonOk.Clicked             += new System.EventHandler(this.OnButtonOkClicked);
 }
Ejemplo n.º 2
0
 public static void Build(object obj, string id)
 {
     System.Collections.Hashtable bindings = new System.Collections.Hashtable();
     if ((id == "administrator.EditCreateUser")) {
         Gtk.Window cobj = ((Gtk.Window)(obj));
         // Widget administrator.EditCreateUser
         cobj.Title = "EditCreateUser";
         cobj.WindowPosition = ((Gtk.WindowPosition)(4));
         cobj.Events = ((Gdk.EventMask)(0));
         cobj.Name = "administrator.EditCreateUser";
         cobj.DefaultWidth = 400;
         cobj.DefaultHeight = 300;
         bindings["administrator.EditCreateUser"] = cobj;
         cobj.Show();
     }
     else {
         if ((id == "administrator.LoginWindow")) {
             Gtk.Window cobj = ((Gtk.Window)(obj));
             // Widget administrator.LoginWindow
             cobj.Title = "Boxerp Server Administrator";
             cobj.WindowPosition = ((Gtk.WindowPosition)(1));
             cobj.Modal = true;
             cobj.Resizable = false;
             cobj.AllowGrow = false;
             cobj.Events = ((Gdk.EventMask)(0));
             cobj.Name = "administrator.LoginWindow";
             // Container child administrator.LoginWindow.Gtk.Container+ContainerChild
             Gtk.VBox w1 = new Gtk.VBox();
             w1.BorderWidth = ((uint)(5));
             w1.Events = ((Gdk.EventMask)(0));
             w1.Name = "vbox1";
             // Container child vbox1.Gtk.Box+BoxChild
             Gtk.HBox w2 = new Gtk.HBox();
             w2.Events = ((Gdk.EventMask)(0));
             w2.Name = "hbox1";
             // Container child hbox1.Gtk.Box+BoxChild
             Gtk.Label w3 = new Gtk.Label();
             w3.LabelProp = "Login:"******"label1";
             w3.WidthRequest = 150;
             bindings["label1"] = w3;
             w2.Add(w3);
             Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w2[w3]));
             w4.Position = 0;
             // Container child hbox1.Gtk.Box+BoxChild
             Gtk.Entry w5 = new Gtk.Entry();
             w5.Text = "demo";
             w5.IsEditable = true;
             w5.MaxLength = 100;
             w5.InvisibleChar = '●';
             w5.CanFocus = true;
             w5.Events = ((Gdk.EventMask)(0));
             w5.Name = "entryLogin";
             w5.WidthRequest = 200;
             bindings["entryLogin"] = w5;
             w2.Add(w5);
             Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(w2[w5]));
             w6.Position = 1;
             w6.Expand = false;
             w6.Fill = false;
             bindings["hbox1"] = w2;
             w1.Add(w2);
             Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w1[w2]));
             w7.Position = 0;
             w7.Expand = false;
             w7.Fill = false;
             // Container child vbox1.Gtk.Box+BoxChild
             Gtk.HBox w8 = new Gtk.HBox();
             w8.Events = ((Gdk.EventMask)(0));
             w8.Name = "hbox2";
             w8.WidthRequest = 150;
             // Container child hbox2.Gtk.Box+BoxChild
             Gtk.Label w9 = new Gtk.Label();
             w9.LabelProp = "Password:"******"label2";
             bindings["label2"] = w9;
             w8.Add(w9);
             Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(w8[w9]));
             w10.Position = 0;
             w10.Fill = false;
             // Container child hbox2.Gtk.Box+BoxChild
             Gtk.Entry w11 = new Gtk.Entry();
             w11.Text = "pass";
             w11.IsEditable = true;
             w11.Visibility = false;
             w11.InvisibleChar = '●';
             w11.CanFocus = true;
             w11.Events = ((Gdk.EventMask)(0));
             w11.Name = "entryPassword";
             w11.WidthRequest = 200;
             bindings["entryPassword"] = w11;
             w8.Add(w11);
             Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(w8[w11]));
             w12.Position = 1;
             w12.Expand = false;
             w12.Fill = false;
             bindings["hbox2"] = w8;
             w1.Add(w8);
             Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(w1[w8]));
             w13.Position = 1;
             // Container child vbox1.Gtk.Box+BoxChild
             Gtk.HSeparator w14 = new Gtk.HSeparator();
             w14.Events = ((Gdk.EventMask)(0));
             w14.Name = "hseparator1";
             bindings["hseparator1"] = w14;
             w1.Add(w14);
             Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(w1[w14]));
             w15.Position = 2;
             w15.Expand = false;
             w15.Fill = false;
             // Container child vbox1.Gtk.Box+BoxChild
             Gtk.HBox w16 = new Gtk.HBox();
             w16.Events = ((Gdk.EventMask)(0));
             w16.Name = "hbox3";
             // Container child hbox3.Gtk.Box+BoxChild
             Gtk.Button w17 = new Gtk.Button();
             w17.CanFocus = true;
             w17.Events = ((Gdk.EventMask)(0));
             w17.Name = "buttonConnect";
             // Container child buttonConnect.Gtk.Container+ContainerChild
             Gtk.Alignment w18 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
             w18.Events = ((Gdk.EventMask)(0));
             w18.Name = "GtkAlignment";
             // Container child GtkAlignment.Gtk.Container+ContainerChild
             Gtk.HBox w19 = new Gtk.HBox();
             w19.Spacing = 2;
             w19.Events = ((Gdk.EventMask)(0));
             w19.Name = "GtkHBox";
             // Container child GtkHBox.Gtk.Container+ContainerChild
             Gtk.Image w20 = new Gtk.Image();
             w20.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-connect", 16, 0);
             w20.Events = ((Gdk.EventMask)(0));
             w20.Name = "image15";
             bindings["image15"] = w20;
             w19.Add(w20);
             // Container child GtkHBox.Gtk.Container+ContainerChild
             Gtk.Label w22 = new Gtk.Label();
             w22.LabelProp = "Connect";
             w22.Events = ((Gdk.EventMask)(0));
             w22.Name = "GtkLabel";
             bindings["GtkLabel"] = w22;
             w19.Add(w22);
             bindings["GtkHBox"] = w19;
             w18.Add(w19);
             bindings["GtkAlignment"] = w18;
             w17.Add(w18);
             bindings["buttonConnect"] = w17;
             w16.Add(w17);
             Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(w16[w17]));
             w26.PackType = ((Gtk.PackType)(1));
             w26.Position = 0;
             w26.Expand = false;
             w26.Fill = false;
             bindings["hbox3"] = w16;
             w1.Add(w16);
             Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(w1[w16]));
             w27.Position = 3;
             w27.Expand = false;
             w27.Fill = false;
             bindings["vbox1"] = w1;
             cobj.Add(w1);
             cobj.DefaultWidth = 370;
             cobj.DefaultHeight = 129;
             bindings["administrator.LoginWindow"] = cobj;
             w3.Show();
             w5.Show();
             w2.Show();
             w9.Show();
             w11.Show();
             w8.Show();
             w14.Show();
             w20.Show();
             w22.Show();
             w19.Show();
             w18.Show();
             w17.Show();
             w16.Show();
             w1.Show();
             cobj.Show();
             cobj.DeleteEvent += ((Gtk.DeleteEventHandler)(System.Delegate.CreateDelegate(typeof(Gtk.DeleteEventHandler), cobj, "OnDeleteEvent")));
             w5.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnConnect")));
             w11.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnConnect")));
             w17.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnConnect")));
         }
         else {
             if ((id == "administrator.MainWindow")) {
                 Gtk.Window cobj = ((Gtk.Window)(obj));
                 // Widget administrator.MainWindow
                 cobj.Title = "Boxerp Administrator";
                 Gtk.UIManager w1 = new Gtk.UIManager();
                 Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
                 Gtk.Action w3 = new Gtk.Action("File", "File", null, null);
                 w3.ShortLabel = "File";
                 bindings["File"] = w3;
                 w2.Add(w3, null);
                 Gtk.Action w4 = new Gtk.Action("Exit", "Exit", null, null);
                 w4.ShortLabel = "Exit";
                 bindings["Exit"] = w4;
                 w2.Add(w4, null);
                 Gtk.Action w5 = new Gtk.Action("Edit", "Edit", null, null);
                 w5.ShortLabel = "Edit";
                 bindings["Edit"] = w5;
                 w2.Add(w5, null);
                 Gtk.Action w6 = new Gtk.Action("Cut", "Cut", null, null);
                 w6.ShortLabel = "Cut";
                 bindings["Cut"] = w6;
                 w2.Add(w6, null);
                 Gtk.Action w7 = new Gtk.Action("Copy", "Copy", null, null);
                 w7.ShortLabel = "Copy";
                 bindings["Copy"] = w7;
                 w2.Add(w7, null);
                 Gtk.Action w8 = new Gtk.Action("Paste", "Paste", null, null);
                 w8.ShortLabel = "Paste";
                 bindings["Paste"] = w8;
                 w2.Add(w8, null);
                 Gtk.Action w9 = new Gtk.Action("Help", "Help", null, null);
                 w9.ShortLabel = "Help";
                 bindings["Help"] = w9;
                 w2.Add(w9, null);
                 Gtk.Action w10 = new Gtk.Action("About", "About", null, null);
                 w10.ShortLabel = "About";
                 bindings["About"] = w10;
                 w2.Add(w10, null);
                 w1.InsertActionGroup(w2, 0);
                 cobj.AddAccelGroup(w1.AccelGroup);
                 cobj.WindowPosition = ((Gtk.WindowPosition)(4));
                 cobj.DefaultWidth = 800;
                 cobj.DefaultHeight = 600;
                 cobj.Events = ((Gdk.EventMask)(0));
                 cobj.Name = "administrator.MainWindow";
                 // Container child administrator.MainWindow.Gtk.Container+ContainerChild
                 Gtk.VBox w11 = new Gtk.VBox();
                 w11.Events = ((Gdk.EventMask)(0));
                 w11.Name = "vbox1";
                 // Container child vbox1.Gtk.Box+BoxChild
                 w1.AddUiFromString("<ui><menubar name='menubar1'><menu action='File'><menuitem action='Exit'/></menu><menu action='Edit'><menuitem action='Cut'/><menuitem action='Copy'/><menuitem action='Paste'/></menu><menu action='Help'><menuitem action='About'/></menu></menubar></ui>");
                 Gtk.MenuBar w12 = ((Gtk.MenuBar)(w1.GetWidget("/menubar1")));
                 w12.Events = ((Gdk.EventMask)(0));
                 w12.Name = "menubar1";
                 bindings["menubar1"] = w12;
                 w11.Add(w12);
                 Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(w11[w12]));
                 w13.Position = 0;
                 w13.Expand = false;
                 w13.Fill = false;
                 // Container child vbox1.Gtk.Box+BoxChild
                 w1.AddUiFromString("<ui><toolbar name='toolbar1'/></ui>");
                 Gtk.Toolbar w14 = ((Gtk.Toolbar)(w1.GetWidget("/toolbar1")));
                 w14.ShowArrow = false;
                 w14.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
                 w14.IconSize = ((Gtk.IconSize)(3));
                 w14.Events = ((Gdk.EventMask)(0));
                 w14.Name = "toolbar1";
                 bindings["toolbar1"] = w14;
                 w11.Add(w14);
                 Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(w11[w14]));
                 w15.Position = 1;
                 w15.Expand = false;
                 w15.Fill = false;
                 // Container child vbox1.Gtk.Box+BoxChild
                 Gtk.VBox w16 = new Gtk.VBox();
                 w16.BorderWidth = ((uint)(5));
                 w16.Events = ((Gdk.EventMask)(0));
                 w16.Name = "vbox2";
                 // Container child vbox2.Gtk.Box+BoxChild
                 Gtk.HBox w17 = new Gtk.HBox();
                 w17.Events = ((Gdk.EventMask)(0));
                 w17.Name = "hbox1";
                 // Container child hbox1.Gtk.Box+BoxChild
                 Gtk.Label w18 = new Gtk.Label();
                 w18.LabelProp = "<b>Enterprise:</b>";
                 w18.UseMarkup = true;
                 w18.Ypad = 6;
                 w18.Events = ((Gdk.EventMask)(256));
                 w18.Name = "labelEnterprise";
                 bindings["labelEnterprise"] = w18;
                 w17.Add(w18);
                 Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(w17[w18]));
                 w19.Position = 0;
                 w19.Expand = false;
                 w19.Fill = false;
                 // Container child hbox1.Gtk.Box+BoxChild
                 Gtk.Entry w20 = new Gtk.Entry();
                 w20.IsEditable = true;
                 w20.InvisibleChar = '●';
                 w20.CanFocus = true;
                 w20.Events = ((Gdk.EventMask)(0));
                 w20.Name = "entryEnterprise";
                 bindings["entryEnterprise"] = w20;
                 w17.Add(w20);
                 Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(w17[w20]));
                 w21.Position = 1;
                 w21.Expand = false;
                 w21.Fill = false;
                 // Container child hbox1.Gtk.Box+BoxChild
                 Gtk.Button w22 = new Gtk.Button();
                 Gtk.Tooltips w23 = new Gtk.Tooltips();
                 w23.SetTip(w22, "Añadir un Hecho", "Añadir un Hecho");
                 w22.CanFocus = true;
                 w22.Events = ((Gdk.EventMask)(0));
                 w22.Name = "buttonFindEnterprise";
                 w22.HasDefault = true;
                 // Container child buttonFindEnterprise.Gtk.Container+ContainerChild
                 Gtk.Alignment w24 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w24.Events = ((Gdk.EventMask)(0));
                 w24.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w25 = new Gtk.HBox();
                 w25.Spacing = 2;
                 w25.Events = ((Gdk.EventMask)(0));
                 w25.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w26 = new Gtk.Image();
                 w26.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-find", 16, 0);
                 w26.Events = ((Gdk.EventMask)(0));
                 w26.Name = "image1";
                 bindings["image1"] = w26;
                 w25.Add(w26);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w28 = new Gtk.Label();
                 w28.LabelProp = "";
                 w28.Events = ((Gdk.EventMask)(0));
                 w28.Name = "GtkLabel";
                 bindings["GtkLabel"] = w28;
                 w25.Add(w28);
                 bindings["GtkHBox"] = w25;
                 w24.Add(w25);
                 bindings["GtkAlignment"] = w24;
                 w22.Add(w24);
                 bindings["buttonFindEnterprise"] = w22;
                 w17.Add(w22);
                 Gtk.Box.BoxChild w32 = ((Gtk.Box.BoxChild)(w17[w22]));
                 w32.Position = 2;
                 w32.Expand = false;
                 w32.Fill = false;
                 bindings["hbox1"] = w17;
                 w16.Add(w17);
                 Gtk.Box.BoxChild w33 = ((Gtk.Box.BoxChild)(w16[w17]));
                 w33.Position = 0;
                 w33.Expand = false;
                 w33.Fill = false;
                 // Container child vbox2.Gtk.Box+BoxChild
                 Gtk.ScrolledWindow w34 = new Gtk.ScrolledWindow();
                 w34.VscrollbarPolicy = ((Gtk.PolicyType)(1));
                 w34.HscrollbarPolicy = ((Gtk.PolicyType)(1));
                 w34.CanFocus = true;
                 w34.Events = ((Gdk.EventMask)(0));
                 w34.Name = "scrolledwindow1";
                 // Container child scrolledwindow1.Gtk.Container+ContainerChild
                 Gtk.Viewport w35 = new Gtk.Viewport();
                 w35.ShadowType = ((Gtk.ShadowType)(0));
                 w35.Events = ((Gdk.EventMask)(0));
                 w35.Name = "GtkViewport";
                 // Container child GtkViewport.Gtk.Container+ContainerChild
                 Boxerp.Client.GtkSharp.Lib.FilteredListView w36 = new Boxerp.Client.GtkSharp.Lib.FilteredListView();
                 w36.Events = ((Gdk.EventMask)(256));
                 w36.Name = "ftreeviewEnterprises";
                 bindings["ftreeviewEnterprises"] = w36;
                 w35.Add(w36);
                 bindings["GtkViewport"] = w35;
                 w34.Add(w35);
                 bindings["scrolledwindow1"] = w34;
                 w16.Add(w34);
                 Gtk.Box.BoxChild w39 = ((Gtk.Box.BoxChild)(w16[w34]));
                 w39.Position = 1;
                 // Container child vbox2.Gtk.Box+BoxChild
                 Gtk.HBox w40 = new Gtk.HBox();
                 w40.Events = ((Gdk.EventMask)(0));
                 w40.Name = "hbox14";
                 // Container child hbox14.Gtk.Box+BoxChild
                 Gtk.Button w41 = new Gtk.Button();
                 w23.SetTip(w41, "Añadir un Hecho", "Añadir un Hecho");
                 w41.CanFocus = true;
                 w41.Events = ((Gdk.EventMask)(0));
                 w41.Name = "buttonNewEnterprise";
                 w41.HasDefault = true;
                 // Container child buttonNewEnterprise.Gtk.Container+ContainerChild
                 Gtk.Alignment w42 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w42.Events = ((Gdk.EventMask)(0));
                 w42.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w43 = new Gtk.HBox();
                 w43.Spacing = 2;
                 w43.Events = ((Gdk.EventMask)(0));
                 w43.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w44 = new Gtk.Image();
                 w44.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-new", 16, 0);
                 w44.Events = ((Gdk.EventMask)(0));
                 w44.Name = "image2";
                 bindings["image2"] = w44;
                 w43.Add(w44);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w46 = new Gtk.Label();
                 w46.LabelProp = "";
                 w46.Events = ((Gdk.EventMask)(0));
                 w46.Name = "GtkLabel";
                 bindings["GtkLabel"] = w46;
                 w43.Add(w46);
                 bindings["GtkHBox"] = w43;
                 w42.Add(w43);
                 bindings["GtkAlignment"] = w42;
                 w41.Add(w42);
                 bindings["buttonNewEnterprise"] = w41;
                 w40.Add(w41);
                 Gtk.Box.BoxChild w50 = ((Gtk.Box.BoxChild)(w40[w41]));
                 w50.PackType = ((Gtk.PackType)(1));
                 w50.Position = 0;
                 w50.Expand = false;
                 w50.Fill = false;
                 // Container child hbox14.Gtk.Box+BoxChild
                 Gtk.Button w51 = new Gtk.Button();
                 w23.SetTip(w51, "Editar el Hecho", "Editar el Hecho");
                 w51.CanFocus = true;
                 w51.Events = ((Gdk.EventMask)(0));
                 w51.Name = "buttonEditEnterprise";
                 // Container child buttonEditEnterprise.Gtk.Container+ContainerChild
                 Gtk.Alignment w52 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w52.Events = ((Gdk.EventMask)(0));
                 w52.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w53 = new Gtk.HBox();
                 w53.Spacing = 2;
                 w53.Events = ((Gdk.EventMask)(0));
                 w53.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w54 = new Gtk.Image();
                 w54.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-edit", 16, 0);
                 w54.Events = ((Gdk.EventMask)(0));
                 w54.Name = "image3";
                 bindings["image3"] = w54;
                 w53.Add(w54);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w56 = new Gtk.Label();
                 w56.LabelProp = "";
                 w56.Events = ((Gdk.EventMask)(0));
                 w56.Name = "GtkLabel";
                 bindings["GtkLabel"] = w56;
                 w53.Add(w56);
                 bindings["GtkHBox"] = w53;
                 w52.Add(w53);
                 bindings["GtkAlignment"] = w52;
                 w51.Add(w52);
                 bindings["buttonEditEnterprise"] = w51;
                 w40.Add(w51);
                 Gtk.Box.BoxChild w60 = ((Gtk.Box.BoxChild)(w40[w51]));
                 w60.PackType = ((Gtk.PackType)(1));
                 w60.Position = 1;
                 w60.Expand = false;
                 w60.Fill = false;
                 // Container child hbox14.Gtk.Box+BoxChild
                 Gtk.Button w61 = new Gtk.Button();
                 w23.SetTip(w61, "Quitar el Hecho", "Quitar el Hecho");
                 w61.CanFocus = true;
                 w61.Events = ((Gdk.EventMask)(0));
                 w61.Name = "buttonDelEnterprise";
                 // Container child buttonDelEnterprise.Gtk.Container+ContainerChild
                 Gtk.Alignment w62 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w62.Events = ((Gdk.EventMask)(0));
                 w62.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w63 = new Gtk.HBox();
                 w63.Spacing = 2;
                 w63.Events = ((Gdk.EventMask)(0));
                 w63.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w64 = new Gtk.Image();
                 w64.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-delete", 16, 0);
                 w64.Events = ((Gdk.EventMask)(0));
                 w64.Name = "image4";
                 bindings["image4"] = w64;
                 w63.Add(w64);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w66 = new Gtk.Label();
                 w66.LabelProp = "";
                 w66.Events = ((Gdk.EventMask)(0));
                 w66.Name = "GtkLabel";
                 bindings["GtkLabel"] = w66;
                 w63.Add(w66);
                 bindings["GtkHBox"] = w63;
                 w62.Add(w63);
                 bindings["GtkAlignment"] = w62;
                 w61.Add(w62);
                 bindings["buttonDelEnterprise"] = w61;
                 w40.Add(w61);
                 Gtk.Box.BoxChild w70 = ((Gtk.Box.BoxChild)(w40[w61]));
                 w70.PackType = ((Gtk.PackType)(1));
                 w70.Position = 2;
                 w70.Expand = false;
                 w70.Fill = false;
                 bindings["hbox14"] = w40;
                 w16.Add(w40);
                 Gtk.Box.BoxChild w71 = ((Gtk.Box.BoxChild)(w16[w40]));
                 w71.Position = 2;
                 w71.Expand = false;
                 w71.Fill = false;
                 bindings["vbox2"] = w16;
                 w11.Add(w16);
                 Gtk.Box.BoxChild w72 = ((Gtk.Box.BoxChild)(w11[w16]));
                 w72.Position = 2;
                 w72.Expand = false;
                 w72.Fill = false;
                 // Container child vbox1.Gtk.Box+BoxChild
                 Gtk.HSeparator w73 = new Gtk.HSeparator();
                 w73.Events = ((Gdk.EventMask)(0));
                 w73.Name = "hseparator2";
                 bindings["hseparator2"] = w73;
                 w11.Add(w73);
                 Gtk.Box.BoxChild w74 = ((Gtk.Box.BoxChild)(w11[w73]));
                 w74.Position = 3;
                 w74.Expand = false;
                 w74.Fill = false;
                 // Container child vbox1.Gtk.Box+BoxChild
                 Gtk.HBox w75 = new Gtk.HBox();
                 w75.Homogeneous = true;
                 w75.Events = ((Gdk.EventMask)(0));
                 w75.Name = "hbox2";
                 // Container child hbox2.Gtk.Box+BoxChild
                 Gtk.VBox w76 = new Gtk.VBox();
                 w76.BorderWidth = ((uint)(5));
                 w76.Events = ((Gdk.EventMask)(0));
                 w76.Name = "vbox3";
                 // Container child vbox3.Gtk.Box+BoxChild
                 Gtk.HBox w77 = new Gtk.HBox();
                 w77.Events = ((Gdk.EventMask)(0));
                 w77.Name = "hbox3";
                 // Container child hbox3.Gtk.Box+BoxChild
                 Gtk.Label w78 = new Gtk.Label();
                 w78.LabelProp = "<b>User:</b>";
                 w78.UseMarkup = true;
                 w78.Ypad = 6;
                 w78.Events = ((Gdk.EventMask)(256));
                 w78.Name = "labelUser";
                 bindings["labelUser"] = w78;
                 w77.Add(w78);
                 Gtk.Box.BoxChild w79 = ((Gtk.Box.BoxChild)(w77[w78]));
                 w79.Position = 0;
                 w79.Expand = false;
                 w79.Fill = false;
                 // Container child hbox3.Gtk.Box+BoxChild
                 Gtk.Entry w80 = new Gtk.Entry();
                 w80.IsEditable = true;
                 w80.InvisibleChar = '●';
                 w80.CanFocus = true;
                 w80.Events = ((Gdk.EventMask)(0));
                 w80.Name = "entryUser";
                 bindings["entryUser"] = w80;
                 w77.Add(w80);
                 Gtk.Box.BoxChild w81 = ((Gtk.Box.BoxChild)(w77[w80]));
                 w81.Position = 1;
                 w81.Expand = false;
                 w81.Fill = false;
                 // Container child hbox3.Gtk.Box+BoxChild
                 Gtk.Button w82 = new Gtk.Button();
                 w23.SetTip(w82, "Añadir un Hecho", "Añadir un Hecho");
                 w82.CanFocus = true;
                 w82.Events = ((Gdk.EventMask)(0));
                 w82.Name = "buttonFindUser";
                 w82.HasDefault = true;
                 // Container child buttonFindUser.Gtk.Container+ContainerChild
                 Gtk.Alignment w83 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w83.Events = ((Gdk.EventMask)(0));
                 w83.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w84 = new Gtk.HBox();
                 w84.Spacing = 2;
                 w84.Events = ((Gdk.EventMask)(0));
                 w84.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w85 = new Gtk.Image();
                 w85.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-find", 16, 0);
                 w85.Events = ((Gdk.EventMask)(0));
                 w85.Name = "image5";
                 bindings["image5"] = w85;
                 w84.Add(w85);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w87 = new Gtk.Label();
                 w87.LabelProp = "";
                 w87.Events = ((Gdk.EventMask)(0));
                 w87.Name = "GtkLabel";
                 bindings["GtkLabel"] = w87;
                 w84.Add(w87);
                 bindings["GtkHBox"] = w84;
                 w83.Add(w84);
                 bindings["GtkAlignment"] = w83;
                 w82.Add(w83);
                 bindings["buttonFindUser"] = w82;
                 w77.Add(w82);
                 Gtk.Box.BoxChild w91 = ((Gtk.Box.BoxChild)(w77[w82]));
                 w91.Position = 2;
                 w91.Expand = false;
                 w91.Fill = false;
                 bindings["hbox3"] = w77;
                 w76.Add(w77);
                 Gtk.Box.BoxChild w92 = ((Gtk.Box.BoxChild)(w76[w77]));
                 w92.Position = 0;
                 w92.Expand = false;
                 w92.Fill = false;
                 // Container child vbox3.Gtk.Box+BoxChild
                 Gtk.ScrolledWindow w93 = new Gtk.ScrolledWindow();
                 w93.VscrollbarPolicy = ((Gtk.PolicyType)(1));
                 w93.HscrollbarPolicy = ((Gtk.PolicyType)(1));
                 w93.CanFocus = true;
                 w93.Events = ((Gdk.EventMask)(0));
                 w93.Name = "scrolledwindow2";
                 // Container child scrolledwindow2.Gtk.Container+ContainerChild
                 Gtk.Viewport w94 = new Gtk.Viewport();
                 w94.ShadowType = ((Gtk.ShadowType)(0));
                 w94.Events = ((Gdk.EventMask)(0));
                 w94.Name = "GtkViewport1";
                 // Container child GtkViewport1.Gtk.Container+ContainerChild
                 Boxerp.Client.GtkSharp.Lib.FilteredListView w95 = new Boxerp.Client.GtkSharp.Lib.FilteredListView();
                 w95.Events = ((Gdk.EventMask)(256));
                 w95.Name = "ftreeviewUsers";
                 bindings["ftreeviewUsers"] = w95;
                 w94.Add(w95);
                 bindings["GtkViewport1"] = w94;
                 w93.Add(w94);
                 bindings["scrolledwindow2"] = w93;
                 w76.Add(w93);
                 Gtk.Box.BoxChild w98 = ((Gtk.Box.BoxChild)(w76[w93]));
                 w98.Position = 1;
                 // Container child vbox3.Gtk.Box+BoxChild
                 Gtk.HBox w99 = new Gtk.HBox();
                 w99.Events = ((Gdk.EventMask)(0));
                 w99.Name = "hbox15";
                 // Container child hbox15.Gtk.Box+BoxChild
                 Gtk.Button w100 = new Gtk.Button();
                 w23.SetTip(w100, "Añadir un Hecho", "Añadir un Hecho");
                 w100.CanFocus = true;
                 w100.Events = ((Gdk.EventMask)(0));
                 w100.Name = "buttonNewUser";
                 w100.HasDefault = true;
                 // Container child buttonNewUser.Gtk.Container+ContainerChild
                 Gtk.Alignment w101 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w101.Events = ((Gdk.EventMask)(0));
                 w101.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w102 = new Gtk.HBox();
                 w102.Spacing = 2;
                 w102.Events = ((Gdk.EventMask)(0));
                 w102.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w103 = new Gtk.Image();
                 w103.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-new", 16, 0);
                 w103.Events = ((Gdk.EventMask)(0));
                 w103.Name = "image6";
                 bindings["image6"] = w103;
                 w102.Add(w103);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w105 = new Gtk.Label();
                 w105.LabelProp = "";
                 w105.Events = ((Gdk.EventMask)(0));
                 w105.Name = "GtkLabel";
                 bindings["GtkLabel"] = w105;
                 w102.Add(w105);
                 bindings["GtkHBox"] = w102;
                 w101.Add(w102);
                 bindings["GtkAlignment"] = w101;
                 w100.Add(w101);
                 bindings["buttonNewUser"] = w100;
                 w99.Add(w100);
                 Gtk.Box.BoxChild w109 = ((Gtk.Box.BoxChild)(w99[w100]));
                 w109.PackType = ((Gtk.PackType)(1));
                 w109.Position = 0;
                 w109.Expand = false;
                 w109.Fill = false;
                 // Container child hbox15.Gtk.Box+BoxChild
                 Gtk.Button w110 = new Gtk.Button();
                 w23.SetTip(w110, "Editar el Hecho", "Editar el Hecho");
                 w110.CanFocus = true;
                 w110.Events = ((Gdk.EventMask)(0));
                 w110.Name = "buttonEditUser";
                 // Container child buttonEditUser.Gtk.Container+ContainerChild
                 Gtk.Alignment w111 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w111.Events = ((Gdk.EventMask)(0));
                 w111.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w112 = new Gtk.HBox();
                 w112.Spacing = 2;
                 w112.Events = ((Gdk.EventMask)(0));
                 w112.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w113 = new Gtk.Image();
                 w113.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-edit", 16, 0);
                 w113.Events = ((Gdk.EventMask)(0));
                 w113.Name = "image7";
                 bindings["image7"] = w113;
                 w112.Add(w113);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w115 = new Gtk.Label();
                 w115.LabelProp = "";
                 w115.Events = ((Gdk.EventMask)(0));
                 w115.Name = "GtkLabel";
                 bindings["GtkLabel"] = w115;
                 w112.Add(w115);
                 bindings["GtkHBox"] = w112;
                 w111.Add(w112);
                 bindings["GtkAlignment"] = w111;
                 w110.Add(w111);
                 bindings["buttonEditUser"] = w110;
                 w99.Add(w110);
                 Gtk.Box.BoxChild w119 = ((Gtk.Box.BoxChild)(w99[w110]));
                 w119.PackType = ((Gtk.PackType)(1));
                 w119.Position = 1;
                 w119.Expand = false;
                 w119.Fill = false;
                 // Container child hbox15.Gtk.Box+BoxChild
                 Gtk.Button w120 = new Gtk.Button();
                 w23.SetTip(w120, "Quitar el Hecho", "Quitar el Hecho");
                 w120.CanFocus = true;
                 w120.Events = ((Gdk.EventMask)(0));
                 w120.Name = "buttonDelUser";
                 // Container child buttonDelUser.Gtk.Container+ContainerChild
                 Gtk.Alignment w121 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w121.Events = ((Gdk.EventMask)(0));
                 w121.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w122 = new Gtk.HBox();
                 w122.Spacing = 2;
                 w122.Events = ((Gdk.EventMask)(0));
                 w122.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w123 = new Gtk.Image();
                 w123.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-delete", 16, 0);
                 w123.Events = ((Gdk.EventMask)(0));
                 w123.Name = "image8";
                 bindings["image8"] = w123;
                 w122.Add(w123);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w125 = new Gtk.Label();
                 w125.LabelProp = "";
                 w125.Events = ((Gdk.EventMask)(0));
                 w125.Name = "GtkLabel";
                 bindings["GtkLabel"] = w125;
                 w122.Add(w125);
                 bindings["GtkHBox"] = w122;
                 w121.Add(w122);
                 bindings["GtkAlignment"] = w121;
                 w120.Add(w121);
                 bindings["buttonDelUser"] = w120;
                 w99.Add(w120);
                 Gtk.Box.BoxChild w129 = ((Gtk.Box.BoxChild)(w99[w120]));
                 w129.PackType = ((Gtk.PackType)(1));
                 w129.Position = 2;
                 w129.Expand = false;
                 w129.Fill = false;
                 bindings["hbox15"] = w99;
                 w76.Add(w99);
                 Gtk.Box.BoxChild w130 = ((Gtk.Box.BoxChild)(w76[w99]));
                 w130.Position = 2;
                 w130.Expand = false;
                 w130.Fill = false;
                 bindings["vbox3"] = w76;
                 w75.Add(w76);
                 Gtk.Box.BoxChild w131 = ((Gtk.Box.BoxChild)(w75[w76]));
                 w131.Position = 0;
                 // Container child hbox2.Gtk.Box+BoxChild
                 Gtk.VBox w132 = new Gtk.VBox();
                 w132.BorderWidth = ((uint)(5));
                 w132.Events = ((Gdk.EventMask)(0));
                 w132.Name = "vbox4";
                 // Container child vbox4.Gtk.Box+BoxChild
                 Gtk.HBox w133 = new Gtk.HBox();
                 w133.Events = ((Gdk.EventMask)(0));
                 w133.Name = "hbox4";
                 // Container child hbox4.Gtk.Box+BoxChild
                 Gtk.Label w134 = new Gtk.Label();
                 w134.LabelProp = "<b>Group:</b>";
                 w134.UseMarkup = true;
                 w134.Ypad = 6;
                 w134.Events = ((Gdk.EventMask)(256));
                 w134.Name = "labelGroup";
                 bindings["labelGroup"] = w134;
                 w133.Add(w134);
                 Gtk.Box.BoxChild w135 = ((Gtk.Box.BoxChild)(w133[w134]));
                 w135.Position = 0;
                 w135.Expand = false;
                 w135.Fill = false;
                 // Container child hbox4.Gtk.Box+BoxChild
                 Gtk.Entry w136 = new Gtk.Entry();
                 w136.IsEditable = true;
                 w136.InvisibleChar = '●';
                 w136.CanFocus = true;
                 w136.Events = ((Gdk.EventMask)(0));
                 w136.Name = "entryGroup";
                 bindings["entryGroup"] = w136;
                 w133.Add(w136);
                 Gtk.Box.BoxChild w137 = ((Gtk.Box.BoxChild)(w133[w136]));
                 w137.Position = 1;
                 w137.Expand = false;
                 w137.Fill = false;
                 // Container child hbox4.Gtk.Box+BoxChild
                 Gtk.Button w138 = new Gtk.Button();
                 w23.SetTip(w138, "Añadir un Hecho", "Añadir un Hecho");
                 w138.CanFocus = true;
                 w138.Events = ((Gdk.EventMask)(0));
                 w138.Name = "buttonFindGroup";
                 w138.HasDefault = true;
                 // Container child buttonFindGroup.Gtk.Container+ContainerChild
                 Gtk.Alignment w139 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w139.Events = ((Gdk.EventMask)(0));
                 w139.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w140 = new Gtk.HBox();
                 w140.Spacing = 2;
                 w140.Events = ((Gdk.EventMask)(0));
                 w140.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w141 = new Gtk.Image();
                 w141.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-find", 16, 0);
                 w141.Events = ((Gdk.EventMask)(0));
                 w141.Name = "image9";
                 bindings["image9"] = w141;
                 w140.Add(w141);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w143 = new Gtk.Label();
                 w143.LabelProp = "";
                 w143.Events = ((Gdk.EventMask)(0));
                 w143.Name = "GtkLabel";
                 bindings["GtkLabel"] = w143;
                 w140.Add(w143);
                 bindings["GtkHBox"] = w140;
                 w139.Add(w140);
                 bindings["GtkAlignment"] = w139;
                 w138.Add(w139);
                 bindings["buttonFindGroup"] = w138;
                 w133.Add(w138);
                 Gtk.Box.BoxChild w147 = ((Gtk.Box.BoxChild)(w133[w138]));
                 w147.Position = 2;
                 w147.Expand = false;
                 w147.Fill = false;
                 bindings["hbox4"] = w133;
                 w132.Add(w133);
                 Gtk.Box.BoxChild w148 = ((Gtk.Box.BoxChild)(w132[w133]));
                 w148.Position = 0;
                 w148.Expand = false;
                 w148.Fill = false;
                 // Container child vbox4.Gtk.Box+BoxChild
                 Gtk.ScrolledWindow w149 = new Gtk.ScrolledWindow();
                 w149.VscrollbarPolicy = ((Gtk.PolicyType)(1));
                 w149.HscrollbarPolicy = ((Gtk.PolicyType)(1));
                 w149.CanFocus = true;
                 w149.Events = ((Gdk.EventMask)(0));
                 w149.Name = "scrolledwindow3";
                 // Container child scrolledwindow3.Gtk.Container+ContainerChild
                 Gtk.Viewport w150 = new Gtk.Viewport();
                 w150.ShadowType = ((Gtk.ShadowType)(0));
                 w150.Events = ((Gdk.EventMask)(0));
                 w150.Name = "GtkViewport2";
                 // Container child GtkViewport2.Gtk.Container+ContainerChild
                 Boxerp.Client.GtkSharp.Lib.FilteredListView w151 = new Boxerp.Client.GtkSharp.Lib.FilteredListView();
                 w151.Events = ((Gdk.EventMask)(256));
                 w151.Name = "ftreeviewGroups";
                 bindings["ftreeviewGroups"] = w151;
                 w150.Add(w151);
                 bindings["GtkViewport2"] = w150;
                 w149.Add(w150);
                 bindings["scrolledwindow3"] = w149;
                 w132.Add(w149);
                 Gtk.Box.BoxChild w154 = ((Gtk.Box.BoxChild)(w132[w149]));
                 w154.Position = 1;
                 // Container child vbox4.Gtk.Box+BoxChild
                 Gtk.HBox w155 = new Gtk.HBox();
                 w155.Events = ((Gdk.EventMask)(0));
                 w155.Name = "hbox16";
                 // Container child hbox16.Gtk.Box+BoxChild
                 Gtk.Button w156 = new Gtk.Button();
                 w23.SetTip(w156, "Añadir un Hecho", "Añadir un Hecho");
                 w156.CanFocus = true;
                 w156.Events = ((Gdk.EventMask)(0));
                 w156.Name = "buttonNewGroup";
                 w156.HasDefault = true;
                 // Container child buttonNewGroup.Gtk.Container+ContainerChild
                 Gtk.Alignment w157 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w157.Events = ((Gdk.EventMask)(0));
                 w157.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w158 = new Gtk.HBox();
                 w158.Spacing = 2;
                 w158.Events = ((Gdk.EventMask)(0));
                 w158.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w159 = new Gtk.Image();
                 w159.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-new", 16, 0);
                 w159.Events = ((Gdk.EventMask)(0));
                 w159.Name = "image10";
                 bindings["image10"] = w159;
                 w158.Add(w159);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w161 = new Gtk.Label();
                 w161.LabelProp = "";
                 w161.Events = ((Gdk.EventMask)(0));
                 w161.Name = "GtkLabel";
                 bindings["GtkLabel"] = w161;
                 w158.Add(w161);
                 bindings["GtkHBox"] = w158;
                 w157.Add(w158);
                 bindings["GtkAlignment"] = w157;
                 w156.Add(w157);
                 bindings["buttonNewGroup"] = w156;
                 w155.Add(w156);
                 Gtk.Box.BoxChild w165 = ((Gtk.Box.BoxChild)(w155[w156]));
                 w165.PackType = ((Gtk.PackType)(1));
                 w165.Position = 0;
                 w165.Expand = false;
                 w165.Fill = false;
                 // Container child hbox16.Gtk.Box+BoxChild
                 Gtk.Button w166 = new Gtk.Button();
                 w23.SetTip(w166, "Editar el Hecho", "Editar el Hecho");
                 w166.CanFocus = true;
                 w166.Events = ((Gdk.EventMask)(0));
                 w166.Name = "buttonEditGroup";
                 // Container child buttonEditGroup.Gtk.Container+ContainerChild
                 Gtk.Alignment w167 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w167.Events = ((Gdk.EventMask)(0));
                 w167.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w168 = new Gtk.HBox();
                 w168.Spacing = 2;
                 w168.Events = ((Gdk.EventMask)(0));
                 w168.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w169 = new Gtk.Image();
                 w169.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-edit", 16, 0);
                 w169.Events = ((Gdk.EventMask)(0));
                 w169.Name = "image11";
                 bindings["image11"] = w169;
                 w168.Add(w169);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w171 = new Gtk.Label();
                 w171.LabelProp = "";
                 w171.Events = ((Gdk.EventMask)(0));
                 w171.Name = "GtkLabel";
                 bindings["GtkLabel"] = w171;
                 w168.Add(w171);
                 bindings["GtkHBox"] = w168;
                 w167.Add(w168);
                 bindings["GtkAlignment"] = w167;
                 w166.Add(w167);
                 bindings["buttonEditGroup"] = w166;
                 w155.Add(w166);
                 Gtk.Box.BoxChild w175 = ((Gtk.Box.BoxChild)(w155[w166]));
                 w175.PackType = ((Gtk.PackType)(1));
                 w175.Position = 1;
                 w175.Expand = false;
                 w175.Fill = false;
                 // Container child hbox16.Gtk.Box+BoxChild
                 Gtk.Button w176 = new Gtk.Button();
                 w23.SetTip(w176, "Quitar el Hecho", "Quitar el Hecho");
                 w176.CanFocus = true;
                 w176.Events = ((Gdk.EventMask)(0));
                 w176.Name = "buttonDelGroup";
                 // Container child buttonDelGroup.Gtk.Container+ContainerChild
                 Gtk.Alignment w177 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w177.Events = ((Gdk.EventMask)(0));
                 w177.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w178 = new Gtk.HBox();
                 w178.Spacing = 2;
                 w178.Events = ((Gdk.EventMask)(0));
                 w178.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w179 = new Gtk.Image();
                 w179.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-delete", 16, 0);
                 w179.Events = ((Gdk.EventMask)(0));
                 w179.Name = "image12";
                 bindings["image12"] = w179;
                 w178.Add(w179);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w181 = new Gtk.Label();
                 w181.LabelProp = "";
                 w181.Events = ((Gdk.EventMask)(0));
                 w181.Name = "GtkLabel";
                 bindings["GtkLabel"] = w181;
                 w178.Add(w181);
                 bindings["GtkHBox"] = w178;
                 w177.Add(w178);
                 bindings["GtkAlignment"] = w177;
                 w176.Add(w177);
                 bindings["buttonDelGroup"] = w176;
                 w155.Add(w176);
                 Gtk.Box.BoxChild w185 = ((Gtk.Box.BoxChild)(w155[w176]));
                 w185.PackType = ((Gtk.PackType)(1));
                 w185.Position = 2;
                 w185.Expand = false;
                 w185.Fill = false;
                 bindings["hbox16"] = w155;
                 w132.Add(w155);
                 Gtk.Box.BoxChild w186 = ((Gtk.Box.BoxChild)(w132[w155]));
                 w186.Position = 2;
                 w186.Expand = false;
                 w186.Fill = false;
                 bindings["vbox4"] = w132;
                 w75.Add(w132);
                 Gtk.Box.BoxChild w187 = ((Gtk.Box.BoxChild)(w75[w132]));
                 w187.Position = 1;
                 bindings["hbox2"] = w75;
                 w11.Add(w75);
                 Gtk.Box.BoxChild w188 = ((Gtk.Box.BoxChild)(w11[w75]));
                 w188.Position = 4;
                 // Container child vbox1.Gtk.Box+BoxChild
                 Gtk.HSeparator w189 = new Gtk.HSeparator();
                 w189.Events = ((Gdk.EventMask)(0));
                 w189.Name = "hseparator1";
                 bindings["hseparator1"] = w189;
                 w11.Add(w189);
                 Gtk.Box.BoxChild w190 = ((Gtk.Box.BoxChild)(w11[w189]));
                 w190.Position = 6;
                 w190.Expand = false;
                 w190.Fill = false;
                 // Container child vbox1.Gtk.Box+BoxChild
                 Gtk.Statusbar w191 = new Gtk.Statusbar();
                 w191.Events = ((Gdk.EventMask)(0));
                 w191.Name = "statusbar1";
                 bindings["statusbar1"] = w191;
                 w11.Add(w191);
                 Gtk.Box.BoxChild w192 = ((Gtk.Box.BoxChild)(w11[w191]));
                 w192.Position = 7;
                 w192.Expand = false;
                 w192.Fill = false;
                 bindings["vbox1"] = w11;
                 cobj.Add(w11);
                 bindings["administrator.MainWindow"] = cobj;
                 w12.Show();
                 w14.Show();
                 w18.Show();
                 w20.Show();
                 w26.Show();
                 w28.Show();
                 w25.Show();
                 w24.Show();
                 w22.Show();
                 w17.Show();
                 w36.Show();
                 w35.Show();
                 w34.Show();
                 w44.Show();
                 w46.Show();
                 w43.Show();
                 w42.Show();
                 w41.Show();
                 w54.Show();
                 w56.Show();
                 w53.Show();
                 w52.Show();
                 w51.Show();
                 w64.Show();
                 w66.Show();
                 w63.Show();
                 w62.Show();
                 w61.Show();
                 w40.Show();
                 w16.Show();
                 w73.Show();
                 w78.Show();
                 w80.Show();
                 w85.Show();
                 w87.Show();
                 w84.Show();
                 w83.Show();
                 w82.Show();
                 w77.Show();
                 w95.Show();
                 w94.Show();
                 w93.Show();
                 w103.Show();
                 w105.Show();
                 w102.Show();
                 w101.Show();
                 w100.Show();
                 w113.Show();
                 w115.Show();
                 w112.Show();
                 w111.Show();
                 w110.Show();
                 w123.Show();
                 w125.Show();
                 w122.Show();
                 w121.Show();
                 w120.Show();
                 w99.Show();
                 w76.Show();
                 w134.Show();
                 w136.Show();
                 w141.Show();
                 w143.Show();
                 w140.Show();
                 w139.Show();
                 w138.Show();
                 w133.Show();
                 w151.Show();
                 w150.Show();
                 w149.Show();
                 w159.Show();
                 w161.Show();
                 w158.Show();
                 w157.Show();
                 w156.Show();
                 w169.Show();
                 w171.Show();
                 w168.Show();
                 w167.Show();
                 w166.Show();
                 w179.Show();
                 w181.Show();
                 w178.Show();
                 w177.Show();
                 w176.Show();
                 w155.Show();
                 w132.Show();
                 w75.Show();
                 w189.Show();
                 w191.Show();
                 w11.Show();
                 cobj.Show();
                 cobj.DeleteEvent += ((Gtk.DeleteEventHandler)(System.Delegate.CreateDelegate(typeof(Gtk.DeleteEventHandler), cobj, "OnDeleteEvent")));
                 w20.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnFindEnterprise")));
                 w22.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnFindEnterprise")));
                 w61.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnDelEnterpriseClicked")));
                 w51.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnEditEnterpriseClicked")));
                 w41.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnNewEnterpriseClicked")));
                 w80.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnFindUser")));
                 w82.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnFindUser")));
                 w120.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnDelUserClicked")));
                 w110.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnEditUserClicked")));
                 w100.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnNewUserClicked")));
                 w136.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnFindGroup")));
                 w138.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnFindGroup")));
                 w176.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnDelGroupClicked")));
                 w166.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnEditGroupClicked")));
                 w156.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnNewGroupClicked")));
             }
             else {
                 if ((id == "administrator.EditUserWindow")) {
                     Gtk.Window cobj = ((Gtk.Window)(obj));
                     // Widget administrator.EditUserWindow
                     cobj.Title = "User";
                     cobj.WindowPosition = ((Gtk.WindowPosition)(4));
                     cobj.Events = ((Gdk.EventMask)(0));
                     cobj.Name = "administrator.EditUserWindow";
                     // Container child administrator.EditUserWindow.Gtk.Container+ContainerChild
                     Gtk.VBox w1 = new Gtk.VBox();
                     w1.Events = ((Gdk.EventMask)(0));
                     w1.Name = "vbox1";
                     // Container child vbox1.Gtk.Box+BoxChild
                     Gtk.Notebook w2 = new Gtk.Notebook();
                     w2.CanFocus = true;
                     w2.Events = ((Gdk.EventMask)(0));
                     w2.Name = "notebook1";
                     // Container child notebook1.Gtk.Notebook+NotebookChild
                     Gtk.VBox w3 = new Gtk.VBox();
                     w3.Events = ((Gdk.EventMask)(0));
                     w3.Name = "vbox2";
                     // Container child vbox2.Gtk.Box+BoxChild
                     Gtk.Table w4 = new Gtk.Table(((uint)(5)), ((uint)(2)), false);
                     w4.RowSpacing = ((uint)(1));
                     w4.ColumnSpacing = ((uint)(5));
                     w4.BorderWidth = ((uint)(5));
                     w4.Events = ((Gdk.EventMask)(0));
                     w4.Name = "table1";
                     // Container child table1.Gtk.Table+TableChild
                     Gtk.CheckButton w5 = new Gtk.CheckButton();
                     w5.Label = "";
                     w5.DrawIndicator = true;
                     w5.CanFocus = true;
                     w5.Events = ((Gdk.EventMask)(0));
                     w5.Name = "checkActive";
                     bindings["checkActive"] = w5;
                     w4.Add(w5);
                     Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(w4[w5]));
                     w6.BottomAttach = ((uint)(5));
                     w6.LeftAttach = ((uint)(1));
                     w6.RightAttach = ((uint)(2));
                     w6.TopAttach = ((uint)(4));
                     w6.YOptions = ((Gtk.AttachOptions)(4));
                     // Container child table1.Gtk.Table+TableChild
                     Gtk.Label w7 = new Gtk.Label();
                     w7.LabelProp = "Active:";
                     w7.Events = ((Gdk.EventMask)(0));
                     w7.Name = "label4";
                     bindings["label4"] = w7;
                     w4.Add(w7);
                     Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(w4[w7]));
                     w8.BottomAttach = ((uint)(5));
                     w8.TopAttach = ((uint)(4));
                     w8.YOptions = ((Gtk.AttachOptions)(4));
                     w8.XOptions = ((Gtk.AttachOptions)(4));
                     // Container child table1.Gtk.Table+TableChild
                     Gtk.Entry w9 = new Gtk.Entry();
                     w9.IsEditable = true;
                     w9.Visibility = false;
                     w9.InvisibleChar = '●';
                     w9.CanFocus = true;
                     w9.Events = ((Gdk.EventMask)(0));
                     w9.Name = "entryPassword";
                     bindings["entryPassword"] = w9;
                     w4.Add(w9);
                     Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(w4[w9]));
                     w10.BottomAttach = ((uint)(4));
                     w10.LeftAttach = ((uint)(1));
                     w10.RightAttach = ((uint)(2));
                     w10.TopAttach = ((uint)(3));
                     w10.YOptions = ((Gtk.AttachOptions)(4));
                     // Container child table1.Gtk.Table+TableChild
                     Gtk.Entry w11 = new Gtk.Entry();
                     w11.IsEditable = true;
                     w11.InvisibleChar = '●';
                     w11.CanFocus = true;
                     w11.Events = ((Gdk.EventMask)(0));
                     w11.Name = "entryEmail";
                     bindings["entryEmail"] = w11;
                     w4.Add(w11);
                     Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(w4[w11]));
                     w12.BottomAttach = ((uint)(3));
                     w12.LeftAttach = ((uint)(1));
                     w12.RightAttach = ((uint)(2));
                     w12.TopAttach = ((uint)(2));
                     w12.YOptions = ((Gtk.AttachOptions)(4));
                     // Container child table1.Gtk.Table+TableChild
                     Gtk.Entry w13 = new Gtk.Entry();
                     w13.IsEditable = true;
                     w13.InvisibleChar = '●';
                     w13.CanFocus = true;
                     w13.Events = ((Gdk.EventMask)(0));
                     w13.Name = "entryRealName";
                     bindings["entryRealName"] = w13;
                     w4.Add(w13);
                     Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(w4[w13]));
                     w14.BottomAttach = ((uint)(2));
                     w14.LeftAttach = ((uint)(1));
                     w14.RightAttach = ((uint)(2));
                     w14.TopAttach = ((uint)(1));
                     w14.YOptions = ((Gtk.AttachOptions)(4));
                     // Container child table1.Gtk.Table+TableChild
                     Gtk.Label w15 = new Gtk.Label();
                     w15.LabelProp = "Password:"******"label14";
                     bindings["label14"] = w15;
                     w4.Add(w15);
                     Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(w4[w15]));
                     w16.BottomAttach = ((uint)(4));
                     w16.TopAttach = ((uint)(3));
                     w16.YOptions = ((Gtk.AttachOptions)(4));
                     w16.XOptions = ((Gtk.AttachOptions)(4));
                     // Container child table1.Gtk.Table+TableChild
                     Gtk.Label w17 = new Gtk.Label();
                     w17.LabelProp = "Email:";
                     w17.Events = ((Gdk.EventMask)(0));
                     w17.Name = "label13";
                     bindings["label13"] = w17;
                     w4.Add(w17);
                     Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(w4[w17]));
                     w18.BottomAttach = ((uint)(3));
                     w18.TopAttach = ((uint)(2));
                     w18.YOptions = ((Gtk.AttachOptions)(4));
                     w18.XOptions = ((Gtk.AttachOptions)(4));
                     // Container child table1.Gtk.Table+TableChild
                     Gtk.Label w19 = new Gtk.Label();
                     w19.LabelProp = "Real Name:";
                     w19.Events = ((Gdk.EventMask)(0));
                     w19.Name = "label12";
                     bindings["label12"] = w19;
                     w4.Add(w19);
                     Gtk.Table.TableChild w20 = ((Gtk.Table.TableChild)(w4[w19]));
                     w20.BottomAttach = ((uint)(2));
                     w20.TopAttach = ((uint)(1));
                     w20.YOptions = ((Gtk.AttachOptions)(4));
                     w20.XOptions = ((Gtk.AttachOptions)(4));
                     // Container child table1.Gtk.Table+TableChild
                     Gtk.Label w21 = new Gtk.Label();
                     w21.LabelProp = "User Name:";
                     w21.Events = ((Gdk.EventMask)(0));
                     w21.Name = "label10";
                     bindings["label10"] = w21;
                     w4.Add(w21);
                     Gtk.Table.TableChild w22 = ((Gtk.Table.TableChild)(w4[w21]));
                     w22.YOptions = ((Gtk.AttachOptions)(4));
                     w22.XOptions = ((Gtk.AttachOptions)(4));
                     // Container child table1.Gtk.Table+TableChild
                     Gtk.Entry w23 = new Gtk.Entry();
                     w23.IsEditable = true;
                     w23.InvisibleChar = '●';
                     w23.CanFocus = true;
                     w23.Events = ((Gdk.EventMask)(0));
                     w23.Name = "entryUserName";
                     bindings["entryUserName"] = w23;
                     w4.Add(w23);
                     Gtk.Table.TableChild w24 = ((Gtk.Table.TableChild)(w4[w23]));
                     w24.LeftAttach = ((uint)(1));
                     w24.RightAttach = ((uint)(2));
                     w24.YOptions = ((Gtk.AttachOptions)(4));
                     bindings["table1"] = w4;
                     w3.Add(w4);
                     Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(w3[w4]));
                     w25.Position = 0;
                     w25.Expand = false;
                     w25.Fill = false;
                     // Container child vbox2.Gtk.Box+BoxChild
                     Boxerp.Client.GtkSharp.Lib.DoubleListView w26 = new Boxerp.Client.GtkSharp.Lib.DoubleListView();
                     w26.Events = ((Gdk.EventMask)(256));
                     w26.Name = "dtreeview";
                     bindings["dtreeview"] = w26;
                     w3.Add(w26);
                     Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(w3[w26]));
                     w27.Position = 1;
                     bindings["vbox2"] = w3;
                     w2.Add(w3);
                     Gtk.Notebook.NotebookChild w28 = ((Gtk.Notebook.NotebookChild)(w2[w3]));
                     w28.TabExpand = false;
                     // Notebook tab
                     Gtk.Label w29 = new Gtk.Label();
                     w29.LabelProp = "Properties";
                     w29.Events = ((Gdk.EventMask)(0));
                     w29.Name = "label1";
                     bindings["label1"] = w29;
                     w2.SetTabLabel(w3, w29);
                     // Container child notebook1.Gtk.Notebook+NotebookChild
                     Gtk.VBox w30 = new Gtk.VBox();
                     w30.Events = ((Gdk.EventMask)(0));
                     w30.Name = "vbox3";
                     bindings["vbox3"] = w30;
                     w2.Add(w30);
                     Gtk.Notebook.NotebookChild w31 = ((Gtk.Notebook.NotebookChild)(w2[w30]));
                     w31.Position = 1;
                     w31.TabExpand = false;
                     // Notebook tab
                     Gtk.Label w32 = new Gtk.Label();
                     w32.LabelProp = "Permissions";
                     w32.Events = ((Gdk.EventMask)(0));
                     w32.Name = "label1";
                     bindings["label1"] = w32;
                     w2.SetTabLabel(w30, w32);
                     bindings["notebook1"] = w2;
                     w1.Add(w2);
                     Gtk.Box.BoxChild w33 = ((Gtk.Box.BoxChild)(w1[w2]));
                     w33.Position = 0;
                     w33.Padding = ((uint)(5));
                     // Container child vbox1.Gtk.Box+BoxChild
                     Gtk.HButtonBox w34 = new Gtk.HButtonBox();
                     w34.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
                     w34.Spacing = 2;
                     w34.BorderWidth = ((uint)(5));
                     w34.Events = ((Gdk.EventMask)(0));
                     w34.Name = "hbuttonbox1";
                     // Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
                     Gtk.Button w35 = new Gtk.Button();
                     w35.CanFocus = true;
                     w35.Events = ((Gdk.EventMask)(0));
                     w35.Name = "buttonCancel";
                     // Container child buttonCancel.Gtk.Container+ContainerChild
                     Gtk.Alignment w36 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                     w36.Events = ((Gdk.EventMask)(0));
                     w36.Name = "GtkAlignment";
                     // Container child GtkAlignment.Gtk.Container+ContainerChild
                     Gtk.HBox w37 = new Gtk.HBox();
                     w37.Spacing = 2;
                     w37.Events = ((Gdk.EventMask)(0));
                     w37.Name = "GtkHBox";
                     // Container child GtkHBox.Gtk.Container+ContainerChild
                     Gtk.Image w38 = new Gtk.Image();
                     w38.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-cancel", 16, 0);
                     w38.Events = ((Gdk.EventMask)(0));
                     w38.Name = "image13";
                     bindings["image13"] = w38;
                     w37.Add(w38);
                     // Container child GtkHBox.Gtk.Container+ContainerChild
                     Gtk.Label w40 = new Gtk.Label();
                     w40.LabelProp = "Cancel";
                     w40.Events = ((Gdk.EventMask)(0));
                     w40.Name = "GtkLabel";
                     bindings["GtkLabel"] = w40;
                     w37.Add(w40);
                     bindings["GtkHBox"] = w37;
                     w36.Add(w37);
                     bindings["GtkAlignment"] = w36;
                     w35.Add(w36);
                     bindings["buttonCancel"] = w35;
                     w34.Add(w35);
                     Gtk.ButtonBox.ButtonBoxChild w44 = ((Gtk.ButtonBox.ButtonBoxChild)(w34[w35]));
                     w44.Expand = false;
                     w44.Fill = false;
                     // Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
                     Gtk.Button w45 = new Gtk.Button();
                     w45.CanFocus = true;
                     w45.Events = ((Gdk.EventMask)(0));
                     w45.Name = "buttonOk";
                     // Container child buttonOk.Gtk.Container+ContainerChild
                     Gtk.Alignment w46 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                     w46.Events = ((Gdk.EventMask)(0));
                     w46.Name = "GtkAlignment";
                     // Container child GtkAlignment.Gtk.Container+ContainerChild
                     Gtk.HBox w47 = new Gtk.HBox();
                     w47.Spacing = 2;
                     w47.Events = ((Gdk.EventMask)(0));
                     w47.Name = "GtkHBox";
                     // Container child GtkHBox.Gtk.Container+ContainerChild
                     Gtk.Image w48 = new Gtk.Image();
                     w48.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-ok", 16, 0);
                     w48.Events = ((Gdk.EventMask)(0));
                     w48.Name = "image14";
                     bindings["image14"] = w48;
                     w47.Add(w48);
                     // Container child GtkHBox.Gtk.Container+ContainerChild
                     Gtk.Label w50 = new Gtk.Label();
                     w50.LabelProp = "Ok";
                     w50.Events = ((Gdk.EventMask)(0));
                     w50.Name = "GtkLabel";
                     bindings["GtkLabel"] = w50;
                     w47.Add(w50);
                     bindings["GtkHBox"] = w47;
                     w46.Add(w47);
                     bindings["GtkAlignment"] = w46;
                     w45.Add(w46);
                     bindings["buttonOk"] = w45;
                     w34.Add(w45);
                     Gtk.ButtonBox.ButtonBoxChild w54 = ((Gtk.ButtonBox.ButtonBoxChild)(w34[w45]));
                     w54.Position = 1;
                     w54.Expand = false;
                     w54.Fill = false;
                     bindings["hbuttonbox1"] = w34;
                     w1.Add(w34);
                     Gtk.Box.BoxChild w55 = ((Gtk.Box.BoxChild)(w1[w34]));
                     w55.PackType = ((Gtk.PackType)(1));
                     w55.Position = 1;
                     w55.Expand = false;
                     w55.Fill = false;
                     bindings["vbox1"] = w1;
                     cobj.Add(w1);
                     cobj.DefaultWidth = 400;
                     cobj.DefaultHeight = 273;
                     bindings["administrator.EditUserWindow"] = cobj;
                     w5.Show();
                     w7.Show();
                     w9.Show();
                     w11.Show();
                     w13.Show();
                     w15.Show();
                     w17.Show();
                     w19.Show();
                     w21.Show();
                     w23.Show();
                     w4.Show();
                     w26.Show();
                     w3.Show();
                     w29.Show();
                     w30.Show();
                     w32.Show();
                     w2.Show();
                     w38.Show();
                     w40.Show();
                     w37.Show();
                     w36.Show();
                     w35.Show();
                     w48.Show();
                     w50.Show();
                     w47.Show();
                     w46.Show();
                     w45.Show();
                     w34.Show();
                     w1.Show();
                     cobj.Show();
                     cobj.DeleteEvent += ((Gtk.DeleteEventHandler)(System.Delegate.CreateDelegate(typeof(Gtk.DeleteEventHandler), cobj, "OnClose")));
                     w35.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnCancelClicked")));
                     w45.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnOkClicked")));
                 }
             }
         }
     }
     System.Reflection.FieldInfo[] fields = obj.GetType().GetFields(((System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic) | System.Reflection.BindingFlags.Instance));
     for (int n = 0; (n < fields.Length); n = (n + 1)) {
         System.Reflection.FieldInfo field = fields[n];
         object widget = bindings[field.Name];
         if (((widget != null) && field.FieldType.IsInstanceOfType(widget))) {
             field.SetValue(obj, widget);
         }
     }
 }
 public static void Build(object obj, string id)
 {
     System.Collections.Hashtable bindings = new System.Collections.Hashtable();
     if ((id == "SharpTranslator.ReversibleCombos")) {
         Gtk.Bin cobj = ((Gtk.Bin)(obj));
         // Widget SharpTranslator.ReversibleCombos
         BinContainer.Attach(cobj);
         cobj.Events = ((Gdk.EventMask)(256));
         cobj.Name = "SharpTranslator.ReversibleCombos";
         // Container child SharpTranslator.ReversibleCombos.Gtk.Container+ContainerChild
         Gtk.HBox w1 = new Gtk.HBox();
         w1.Spacing = 5;
         w1.BorderWidth = ((uint)(5));
         w1.Events = ((Gdk.EventMask)(0));
         w1.Name = "hbox1";
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.Label w2 = new Gtk.Label();
         w2.LabelProp = "Source:";
         w2.Events = ((Gdk.EventMask)(0));
         w2.Name = "labelSource";
         bindings["labelSource"] = w2;
         w1.Add(w2);
         Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(w1[w2]));
         w3.Position = 0;
         w3.Expand = false;
         w3.Fill = false;
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.ComboBox w4 = Gtk.ComboBox.NewText();
         w4.Events = ((Gdk.EventMask)(0));
         w4.Name = "comboSource";
         bindings["comboSource"] = w4;
         w1.Add(w4);
         Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(w1[w4]));
         w5.Position = 1;
         w5.Expand = false;
         w5.Fill = false;
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.VSeparator w6 = new Gtk.VSeparator();
         w6.Events = ((Gdk.EventMask)(0));
         w6.Name = "vseparator1";
         bindings["vseparator1"] = w6;
         w1.Add(w6);
         Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w1[w6]));
         w7.Position = 2;
         w7.Expand = false;
         w7.Fill = false;
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.CheckButton w8 = new Gtk.CheckButton();
         w8.Label = "reverse";
         w8.DrawIndicator = true;
         w8.BorderWidth = ((uint)(5));
         w8.CanFocus = true;
         w8.Events = ((Gdk.EventMask)(0));
         w8.Name = "checkbuttonReverse";
         bindings["checkbuttonReverse"] = w8;
         w1.Add(w8);
         Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(w1[w8]));
         w9.Position = 3;
         w9.Expand = false;
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.VSeparator w10 = new Gtk.VSeparator();
         w10.Events = ((Gdk.EventMask)(0));
         w10.Name = "vseparator2";
         bindings["vseparator2"] = w10;
         w1.Add(w10);
         Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(w1[w10]));
         w11.Position = 4;
         w11.Expand = false;
         w11.Fill = false;
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.Label w12 = new Gtk.Label();
         w12.LabelProp = "Target:";
         w12.Events = ((Gdk.EventMask)(0));
         w12.Name = "labelTarget";
         bindings["labelTarget"] = w12;
         w1.Add(w12);
         Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(w1[w12]));
         w13.Position = 5;
         w13.Expand = false;
         w13.Fill = false;
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.ComboBox w14 = Gtk.ComboBox.NewText();
         w14.Events = ((Gdk.EventMask)(0));
         w14.Name = "comboTarget";
         bindings["comboTarget"] = w14;
         w1.Add(w14);
         Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(w1[w14]));
         w15.Position = 6;
         w15.Expand = false;
         w15.Fill = false;
         bindings["hbox1"] = w1;
         cobj.Add(w1);
         bindings["SharpTranslator.ReversibleCombos"] = cobj;
         w2.Show();
         w4.Show();
         w6.Show();
         w8.Show();
         w10.Show();
         w12.Show();
         w14.Show();
         w1.Show();
         cobj.Show();
     }
     else {
         if ((id == "SharpTranslator.AboutDialog")) {
             Gtk.Dialog cobj = ((Gtk.Dialog)(obj));
             // Widget SharpTranslator.AboutDialog
             cobj.Title = "AboutDialog";
             cobj.WindowPosition = ((Gtk.WindowPosition)(4));
             cobj.HasSeparator = false;
             cobj.Events = ((Gdk.EventMask)(256));
             cobj.Name = "SharpTranslator.AboutDialog";
             // Internal child SharpTranslator.AboutDialog.VBox
             Gtk.VBox w1 = cobj.VBox;
             w1.BorderWidth = ((uint)(2));
             w1.Events = ((Gdk.EventMask)(256));
             w1.Name = "dialog_VBox";
             // Container child dialog_VBox.Gtk.Box+BoxChild
             Gtk.TextView w2 = new Gtk.TextView();
             w2.Buffer.Text = "\n         SharpTranslator\n\n    Version 0.1.3  (October 2006)\n\n    License: GPL\n\n    Author: Carlos Ble <http://www.shidix.com/carlosble>\n\n    English-Spanish dictionary was taken from i2e:\n          (Alfredo Casademunt, Jose Luis Triviño)\n\n";
             w2.CanFocus = true;
             w2.Events = ((Gdk.EventMask)(0));
             w2.Name = "textview1";
             bindings["textview1"] = w2;
             w1.Add(w2);
             Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(w1[w2]));
             w3.Position = 0;
             // Container child dialog_VBox.Gtk.Box+BoxChild
             Gtk.HSeparator w4 = new Gtk.HSeparator();
             w4.Events = ((Gdk.EventMask)(0));
             w4.Name = "hseparator1";
             bindings["hseparator1"] = w4;
             w1.Add(w4);
             Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(w1[w4]));
             w5.Position = 1;
             w5.Expand = false;
             w5.Fill = false;
             bindings["dialog_VBox"] = w1;
             // Internal child SharpTranslator.AboutDialog.ActionArea
             Gtk.HButtonBox w6 = cobj.ActionArea;
             w6.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
             w6.Spacing = 10;
             w6.BorderWidth = ((uint)(5));
             w6.Events = ((Gdk.EventMask)(256));
             w6.Name = "SharpTranslator.AboutDialog_ActionArea";
             // Container child SharpTranslator.AboutDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
             Gtk.Button w7 = new Gtk.Button();
             w7.CanFocus = true;
             w7.Events = ((Gdk.EventMask)(0));
             w7.Name = "buttonClose";
             w7.CanDefault = true;
             // Container child buttonClose.Gtk.Container+ContainerChild
             Gtk.Alignment w8 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
             w8.Events = ((Gdk.EventMask)(0));
             w8.Name = "GtkAlignment";
             // Container child GtkAlignment.Gtk.Container+ContainerChild
             Gtk.HBox w9 = new Gtk.HBox();
             w9.Spacing = 2;
             w9.Events = ((Gdk.EventMask)(0));
             w9.Name = "GtkHBox";
             // Container child GtkHBox.Gtk.Container+ContainerChild
             Gtk.Image w10 = new Gtk.Image();
             w10.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-close", 16, 0);
             w10.Events = ((Gdk.EventMask)(0));
             w10.Name = "image1";
             bindings["image1"] = w10;
             w9.Add(w10);
             // Container child GtkHBox.Gtk.Container+ContainerChild
             Gtk.Label w12 = new Gtk.Label();
             w12.LabelProp = "Close";
             w12.Events = ((Gdk.EventMask)(0));
             w12.Name = "GtkLabel";
             bindings["GtkLabel"] = w12;
             w9.Add(w12);
             bindings["GtkHBox"] = w9;
             w8.Add(w9);
             bindings["GtkAlignment"] = w8;
             w7.Add(w8);
             bindings["buttonClose"] = w7;
             cobj.AddActionWidget(w7, 0);
             Gtk.ButtonBox.ButtonBoxChild w16 = ((Gtk.ButtonBox.ButtonBoxChild)(w6[w7]));
             w16.Expand = false;
             w16.Fill = false;
             bindings["SharpTranslator.AboutDialog_ActionArea"] = w6;
             cobj.DefaultWidth = 487;
             cobj.DefaultHeight = 303;
             bindings["SharpTranslator.AboutDialog"] = cobj;
             w2.Show();
             w4.Show();
             w1.Show();
             w10.Show();
             w12.Show();
             w9.Show();
             w8.Show();
             w7.Show();
             w6.Show();
             cobj.Show();
             w7.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnClose")));
         }
         else {
             if ((id == "SharpTranslator.LearnWindow")) {
                 Gtk.Window cobj = ((Gtk.Window)(obj));
                 // Widget SharpTranslator.LearnWindow
                 cobj.Title = "LearnWindow";
                 cobj.WindowPosition = ((Gtk.WindowPosition)(1));
                 cobj.Resizable = false;
                 cobj.AllowGrow = false;
                 cobj.Events = ((Gdk.EventMask)(0));
                 cobj.Name = "SharpTranslator.LearnWindow";
                 // Container child SharpTranslator.LearnWindow.Gtk.Container+ContainerChild
                 Gtk.VBox w1 = new Gtk.VBox();
                 w1.Spacing = 5;
                 w1.BorderWidth = ((uint)(3));
                 w1.Events = ((Gdk.EventMask)(0));
                 w1.Name = "vbox1";
                 // Container child vbox1.Gtk.Box+BoxChild
                 Gtk.HBox w2 = new Gtk.HBox();
                 w2.BorderWidth = ((uint)(3));
                 w2.Events = ((Gdk.EventMask)(0));
                 w2.Name = "hbox5";
                 // Container child hbox5.Gtk.Box+BoxChild
                 Gtk.Label w3 = new Gtk.Label();
                 w3.LabelProp = "Type of item:";
                 w3.Events = ((Gdk.EventMask)(0));
                 w3.Name = "label1";
                 bindings["label1"] = w3;
                 w2.Add(w3);
                 Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w2[w3]));
                 w4.Position = 0;
                 w4.Expand = false;
                 w4.Fill = false;
                 // Container child hbox5.Gtk.Box+BoxChild
                 Gtk.HBox w5 = new Gtk.HBox();
                 w5.Events = ((Gdk.EventMask)(0));
                 w5.Name = "hbox4";
                 // Container child hbox4.Gtk.Box+BoxChild
                 Gtk.CheckButton w6 = new Gtk.CheckButton();
                 w6.Label = "Word";
                 w6.Active = true;
                 w6.DrawIndicator = true;
                 w6.CanFocus = true;
                 w6.Events = ((Gdk.EventMask)(0));
                 w6.Name = "checkbWord";
                 bindings["checkbWord"] = w6;
                 w5.Add(w6);
                 Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w5[w6]));
                 w7.Position = 0;
                 // Container child hbox4.Gtk.Box+BoxChild
                 Gtk.CheckButton w8 = new Gtk.CheckButton();
                 w8.Label = "Expression";
                 w8.DrawIndicator = true;
                 w8.CanFocus = true;
                 w8.Events = ((Gdk.EventMask)(0));
                 w8.Name = "checkbExpression";
                 bindings["checkbExpression"] = w8;
                 w5.Add(w8);
                 Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(w5[w8]));
                 w9.Position = 1;
                 bindings["hbox4"] = w5;
                 w2.Add(w5);
                 Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(w2[w5]));
                 w10.Position = 1;
                 w10.Expand = false;
                 bindings["hbox5"] = w2;
                 w1.Add(w2);
                 Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(w1[w2]));
                 w11.Position = 0;
                 w11.Expand = false;
                 w11.Fill = false;
                 // Container child vbox1.Gtk.Box+BoxChild
                 SharpTranslator.ReversibleCombos w12 = new SharpTranslator.ReversibleCombos();
                 w12.Events = ((Gdk.EventMask)(256));
                 w12.Name = "rCombos";
                 bindings["rCombos"] = w12;
                 w1.Add(w12);
                 Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(w1[w12]));
                 w13.Position = 1;
                 w13.Expand = false;
                 w13.Fill = false;
                 // Container child vbox1.Gtk.Box+BoxChild
                 Gtk.HBox w14 = new Gtk.HBox();
                 w14.Spacing = 5;
                 w14.BorderWidth = ((uint)(3));
                 w14.Events = ((Gdk.EventMask)(0));
                 w14.Name = "hbox3";
                 // Container child hbox3.Gtk.Box+BoxChild
                 Gtk.Label w15 = new Gtk.Label();
                 w15.LabelProp = "Text:";
                 w15.Events = ((Gdk.EventMask)(0));
                 w15.Name = "labelText";
                 bindings["labelText"] = w15;
                 w14.Add(w15);
                 Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(w14[w15]));
                 w16.Position = 0;
                 w16.Expand = false;
                 w16.Fill = false;
                 // Container child hbox3.Gtk.Box+BoxChild
                 Gtk.Entry w17 = new Gtk.Entry();
                 w17.IsEditable = true;
                 w17.InvisibleChar = '●';
                 w17.CanFocus = true;
                 w17.Events = ((Gdk.EventMask)(0));
                 w17.Name = "entryText";
                 bindings["entryText"] = w17;
                 w14.Add(w17);
                 Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(w14[w17]));
                 w18.Position = 1;
                 // Container child hbox3.Gtk.Box+BoxChild
                 Gtk.Label w19 = new Gtk.Label();
                 w19.LabelProp = "Translation:";
                 w19.Events = ((Gdk.EventMask)(0));
                 w19.Name = "label3";
                 bindings["label3"] = w19;
                 w14.Add(w19);
                 Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(w14[w19]));
                 w20.Position = 2;
                 w20.Expand = false;
                 w20.Fill = false;
                 // Container child hbox3.Gtk.Box+BoxChild
                 Gtk.Entry w21 = new Gtk.Entry();
                 w21.IsEditable = true;
                 w21.InvisibleChar = '●';
                 w21.CanFocus = true;
                 w21.Events = ((Gdk.EventMask)(0));
                 w21.Name = "entryTranslation";
                 bindings["entryTranslation"] = w21;
                 w14.Add(w21);
                 Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(w14[w21]));
                 w22.Position = 3;
                 bindings["hbox3"] = w14;
                 w1.Add(w14);
                 Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(w1[w14]));
                 w23.Position = 2;
                 w23.Expand = false;
                 w23.Fill = false;
                 // Container child vbox1.Gtk.Box+BoxChild
                 Gtk.HSeparator w24 = new Gtk.HSeparator();
                 w24.Events = ((Gdk.EventMask)(0));
                 w24.Name = "hseparator1";
                 bindings["hseparator1"] = w24;
                 w1.Add(w24);
                 Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(w1[w24]));
                 w25.Position = 3;
                 w25.Expand = false;
                 w25.Fill = false;
                 // Container child vbox1.Gtk.Box+BoxChild
                 Gtk.HButtonBox w26 = new Gtk.HButtonBox();
                 w26.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
                 w26.Spacing = 3;
                 w26.BorderWidth = ((uint)(3));
                 w26.Events = ((Gdk.EventMask)(0));
                 w26.Name = "hbuttonbox1";
                 // Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
                 Gtk.Button w27 = new Gtk.Button();
                 w27.CanFocus = true;
                 w27.Events = ((Gdk.EventMask)(0));
                 w27.Name = "buttonCancel";
                 // Container child buttonCancel.Gtk.Container+ContainerChild
                 Gtk.Alignment w28 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w28.Events = ((Gdk.EventMask)(0));
                 w28.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w29 = new Gtk.HBox();
                 w29.Spacing = 2;
                 w29.Events = ((Gdk.EventMask)(0));
                 w29.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w30 = new Gtk.Image();
                 w30.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-cancel", 16, 0);
                 w30.Events = ((Gdk.EventMask)(0));
                 w30.Name = "image2";
                 bindings["image2"] = w30;
                 w29.Add(w30);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w32 = new Gtk.Label();
                 w32.LabelProp = "Cancel";
                 w32.Events = ((Gdk.EventMask)(0));
                 w32.Name = "GtkLabel";
                 bindings["GtkLabel"] = w32;
                 w29.Add(w32);
                 bindings["GtkHBox"] = w29;
                 w28.Add(w29);
                 bindings["GtkAlignment"] = w28;
                 w27.Add(w28);
                 bindings["buttonCancel"] = w27;
                 w26.Add(w27);
                 Gtk.ButtonBox.ButtonBoxChild w36 = ((Gtk.ButtonBox.ButtonBoxChild)(w26[w27]));
                 w36.Expand = false;
                 w36.Fill = false;
                 // Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
                 Gtk.Button w37 = new Gtk.Button();
                 w37.CanFocus = true;
                 w37.Events = ((Gdk.EventMask)(0));
                 w37.Name = "buttonAccept";
                 // Container child buttonAccept.Gtk.Container+ContainerChild
                 Gtk.Alignment w38 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w38.Events = ((Gdk.EventMask)(0));
                 w38.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w39 = new Gtk.HBox();
                 w39.Spacing = 2;
                 w39.Events = ((Gdk.EventMask)(0));
                 w39.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w40 = new Gtk.Image();
                 w40.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-ok", 16, 0);
                 w40.Events = ((Gdk.EventMask)(0));
                 w40.Name = "image3";
                 bindings["image3"] = w40;
                 w39.Add(w40);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w42 = new Gtk.Label();
                 w42.LabelProp = "Accept";
                 w42.Events = ((Gdk.EventMask)(0));
                 w42.Name = "GtkLabel";
                 bindings["GtkLabel"] = w42;
                 w39.Add(w42);
                 bindings["GtkHBox"] = w39;
                 w38.Add(w39);
                 bindings["GtkAlignment"] = w38;
                 w37.Add(w38);
                 bindings["buttonAccept"] = w37;
                 w26.Add(w37);
                 Gtk.ButtonBox.ButtonBoxChild w46 = ((Gtk.ButtonBox.ButtonBoxChild)(w26[w37]));
                 w46.Position = 1;
                 w46.Expand = false;
                 w46.Fill = false;
                 bindings["hbuttonbox1"] = w26;
                 w1.Add(w26);
                 Gtk.Box.BoxChild w47 = ((Gtk.Box.BoxChild)(w1[w26]));
                 w47.Position = 4;
                 w47.Expand = false;
                 w47.Fill = false;
                 bindings["vbox1"] = w1;
                 cobj.Add(w1);
                 cobj.DefaultWidth = 586;
                 cobj.DefaultHeight = 194;
                 bindings["SharpTranslator.LearnWindow"] = cobj;
                 w3.Show();
                 w6.Show();
                 w8.Show();
                 w5.Show();
                 w2.Show();
                 w12.Show();
                 w15.Show();
                 w17.Show();
                 w19.Show();
                 w21.Show();
                 w14.Show();
                 w24.Show();
                 w30.Show();
                 w32.Show();
                 w29.Show();
                 w28.Show();
                 w27.Show();
                 w40.Show();
                 w42.Show();
                 w39.Show();
                 w38.Show();
                 w37.Show();
                 w26.Show();
                 w1.Show();
                 cobj.Show();
                 cobj.DeleteEvent += ((Gtk.DeleteEventHandler)(System.Delegate.CreateDelegate(typeof(Gtk.DeleteEventHandler), cobj, "OnClose")));
                 w37.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnAccept")));
             }
             else {
                 if ((id == "SharpTranslator.MainWindow")) {
                     Gtk.Window cobj = ((Gtk.Window)(obj));
                     // Widget SharpTranslator.MainWindow
                     cobj.Title = "SharpTranslator";
                     Gtk.UIManager w1 = new Gtk.UIManager();
                     Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
                     Gtk.Action w3 = new Gtk.Action("File", "File", null, null);
                     w3.ShortLabel = "Archivo";
                     bindings["File"] = w3;
                     w2.Add(w3, null);
                     Gtk.Action w4 = new Gtk.Action("Edit", "Edit", null, null);
                     w4.ShortLabel = "Editar";
                     bindings["Edit"] = w4;
                     w2.Add(w4, null);
                     Gtk.Action w5 = new Gtk.Action("Learn", "Learn", null, "gtk-new");
                     w5.ShortLabel = "Learn";
                     bindings["Learn"] = w5;
                     w2.Add(w5, null);
                     Gtk.Action w6 = new Gtk.Action("floppy", null, null, "gtk-floppy");
                     bindings["floppy"] = w6;
                     w2.Add(w6, null);
                     Gtk.Action w7 = new Gtk.Action("LearnWords", "Learn words", null, "gtk-new");
                     w7.ShortLabel = "Learn ";
                     bindings["LearnWords"] = w7;
                     w2.Add(w7, null);
                     Gtk.Action w8 = new Gtk.Action("AddLanguage", "Add Language", null, "gtk-add");
                     w8.ShortLabel = "Exit";
                     bindings["AddLanguage"] = w8;
                     w2.Add(w8, null);
                     Gtk.Action w9 = new Gtk.Action("Cut", "Cut", null, "gtk-cut");
                     w9.ShortLabel = "Cut";
                     bindings["Cut"] = w9;
                     w2.Add(w9, null);
                     Gtk.Action w10 = new Gtk.Action("Copy", "Copy", null, "gtk-copy");
                     w10.ShortLabel = "Copy";
                     bindings["Copy"] = w10;
                     w2.Add(w10, null);
                     Gtk.Action w11 = new Gtk.Action("Paste", "Paste", null, "gtk-paste");
                     w11.ShortLabel = "Paste";
                     bindings["Paste"] = w11;
                     w2.Add(w11, null);
                     Gtk.Action w12 = new Gtk.Action("Help", "Help", null, null);
                     w12.ShortLabel = "Help";
                     bindings["Help"] = w12;
                     w2.Add(w12, null);
                     Gtk.Action w13 = new Gtk.Action("About", "About", null, "gnome-stock-about");
                     w13.ShortLabel = "About";
                     bindings["About"] = w13;
                     w2.Add(w13, null);
                     Gtk.Action w14 = new Gtk.Action("ImportDictionary", "Import Dictionary", null, "gnome-stock-book-blue");
                     w14.ShortLabel = "Import Dictionary";
                     bindings["ImportDictionary"] = w14;
                     w2.Add(w14, null);
                     Gtk.Action w15 = new Gtk.Action("Preferences", "Preferences", null, "gtk-preferences");
                     w15.ShortLabel = "Preferences";
                     bindings["Preferences"] = w15;
                     w2.Add(w15, null);
                     Gtk.Action w16 = new Gtk.Action("Close", "Close", null, "gtk-close");
                     w16.ShortLabel = "Close";
                     bindings["Close"] = w16;
                     w2.Add(w16, null);
                     w1.InsertActionGroup(w2, 0);
                     cobj.AddAccelGroup(w1.AccelGroup);
                     cobj.Icon = Gtk.IconTheme.Default.LoadIcon("gtk-properties", 16, 0);
                     cobj.WindowPosition = ((Gtk.WindowPosition)(1));
                     cobj.DefaultWidth = 60;
                     cobj.Events = ((Gdk.EventMask)(0));
                     cobj.Name = "SharpTranslator.MainWindow";
                     // Container child SharpTranslator.MainWindow.Gtk.Container+ContainerChild
                     Gtk.VBox w17 = new Gtk.VBox();
                     w17.Events = ((Gdk.EventMask)(0));
                     w17.Name = "vbox1";
                     // Container child vbox1.Gtk.Box+BoxChild
                     w1.AddUiFromString("<ui><menubar name='menubar1'><menu action='File'><menuitem action='LearnWords'/><menuitem action='AddLanguage'/><menuitem action='ImportDictionary'/><menuitem action='Close'/></menu><menu action='Edit'><menuitem action='Cut'/><menuitem action='Copy'/><menuitem action='Paste'/><menuitem action='Preferences'/></menu><menu action='Help'><menuitem action='About'/></menu></menubar></ui>");
                     Gtk.MenuBar w18 = ((Gtk.MenuBar)(w1.GetWidget("/menubar1")));
                     w18.Events = ((Gdk.EventMask)(0));
                     w18.Name = "menubar1";
                     bindings["menubar1"] = w18;
                     w17.Add(w18);
                     Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(w17[w18]));
                     w19.Position = 0;
                     w19.Expand = false;
                     w19.Fill = false;
                     // Container child vbox1.Gtk.Box+BoxChild
                     w1.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem action='Learn'/></toolbar></ui>");
                     Gtk.Toolbar w20 = ((Gtk.Toolbar)(w1.GetWidget("/toolbar1")));
                     w20.ShowArrow = false;
                     w20.Tooltips = false;
                     w20.ToolbarStyle = ((Gtk.ToolbarStyle)(2));
                     w20.IconSize = ((Gtk.IconSize)(2));
                     w20.Events = ((Gdk.EventMask)(0));
                     w20.Name = "toolbar1";
                     bindings["toolbar1"] = w20;
                     w17.Add(w20);
                     Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(w17[w20]));
                     w21.Position = 1;
                     w21.Expand = false;
                     w21.Fill = false;
                     // Container child vbox1.Gtk.Box+BoxChild
                     SharpTranslator.ReversibleCombos w22 = new SharpTranslator.ReversibleCombos();
                     w22.Events = ((Gdk.EventMask)(256));
                     w22.Name = "rCombos";
                     bindings["rCombos"] = w22;
                     w17.Add(w22);
                     Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(w17[w22]));
                     w23.Position = 2;
                     w23.Expand = false;
                     w23.Fill = false;
                     // Container child vbox1.Gtk.Box+BoxChild
                     Gtk.ScrolledWindow w24 = new Gtk.ScrolledWindow();
                     w24.VscrollbarPolicy = ((Gtk.PolicyType)(1));
                     w24.HscrollbarPolicy = ((Gtk.PolicyType)(1));
                     w24.CanFocus = true;
                     w24.Events = ((Gdk.EventMask)(0));
                     w24.Name = "scrolledwindow1";
                     // Container child scrolledwindow1.Gtk.Container+ContainerChild
                     Gtk.TreeView w25 = new Gtk.TreeView();
                     w25.CanFocus = true;
                     w25.Events = ((Gdk.EventMask)(0));
                     w25.Name = "treeviewResults";
                     bindings["treeviewResults"] = w25;
                     w24.Add(w25);
                     bindings["scrolledwindow1"] = w24;
                     w17.Add(w24);
                     Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(w17[w24]));
                     w27.Position = 3;
                     // Container child vbox1.Gtk.Box+BoxChild
                     Gtk.HBox w28 = new Gtk.HBox();
                     w28.Spacing = 5;
                     w28.BorderWidth = ((uint)(3));
                     w28.Events = ((Gdk.EventMask)(0));
                     w28.Name = "hbox3";
                     // Container child hbox3.Gtk.Box+BoxChild
                     Gtk.Label w29 = new Gtk.Label();
                     w29.LabelProp = "Word:";
                     w29.Events = ((Gdk.EventMask)(0));
                     w29.Name = "labelWord";
                     bindings["labelWord"] = w29;
                     w28.Add(w29);
                     Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(w28[w29]));
                     w30.Position = 0;
                     w30.Expand = false;
                     w30.Fill = false;
                     // Container child hbox3.Gtk.Box+BoxChild
                     Gtk.Entry w31 = new Gtk.Entry();
                     w31.IsEditable = true;
                     w31.InvisibleChar = '●';
                     w31.CanFocus = true;
                     w31.Events = ((Gdk.EventMask)(0));
                     w31.Name = "entryKeyword";
                     w31.CanDefault = true;
                     bindings["entryKeyword"] = w31;
                     w28.Add(w31);
                     Gtk.Box.BoxChild w32 = ((Gtk.Box.BoxChild)(w28[w31]));
                     w32.Position = 1;
                     // Container child hbox3.Gtk.Box+BoxChild
                     Gtk.Button w33 = new Gtk.Button();
                     Gtk.Tooltips w34 = new Gtk.Tooltips();
                     w34.SetTip(w33, "Search keyword", "Search keyword");
                     w33.CanFocus = true;
                     w33.Events = ((Gdk.EventMask)(0));
                     w33.Name = "buttonSearch";
                     // Container child buttonSearch.Gtk.Container+ContainerChild
                     Gtk.Alignment w35 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                     w35.Events = ((Gdk.EventMask)(0));
                     w35.Name = "GtkAlignment";
                     // Container child GtkAlignment.Gtk.Container+ContainerChild
                     Gtk.HBox w36 = new Gtk.HBox();
                     w36.Spacing = 2;
                     w36.Events = ((Gdk.EventMask)(0));
                     w36.Name = "GtkHBox";
                     // Container child GtkHBox.Gtk.Container+ContainerChild
                     Gtk.Image w37 = new Gtk.Image();
                     w37.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-find", 16, 0);
                     w37.Events = ((Gdk.EventMask)(0));
                     w37.Name = "image4";
                     bindings["image4"] = w37;
                     w36.Add(w37);
                     // Container child GtkHBox.Gtk.Container+ContainerChild
                     Gtk.Label w39 = new Gtk.Label();
                     w39.LabelProp = "Search";
                     w39.Events = ((Gdk.EventMask)(0));
                     w39.Name = "GtkLabel";
                     bindings["GtkLabel"] = w39;
                     w36.Add(w39);
                     bindings["GtkHBox"] = w36;
                     w35.Add(w36);
                     bindings["GtkAlignment"] = w35;
                     w33.Add(w35);
                     bindings["buttonSearch"] = w33;
                     w28.Add(w33);
                     Gtk.Box.BoxChild w43 = ((Gtk.Box.BoxChild)(w28[w33]));
                     w43.Position = 2;
                     w43.Expand = false;
                     w43.Fill = false;
                     bindings["hbox3"] = w28;
                     w17.Add(w28);
                     Gtk.Box.BoxChild w44 = ((Gtk.Box.BoxChild)(w17[w28]));
                     w44.Position = 4;
                     w44.Expand = false;
                     w44.Fill = false;
                     // Container child vbox1.Gtk.Box+BoxChild
                     Gtk.HBox w45 = new Gtk.HBox();
                     w45.Spacing = 5;
                     w45.BorderWidth = ((uint)(3));
                     w45.Events = ((Gdk.EventMask)(0));
                     w45.Name = "hbox4";
                     // Container child hbox4.Gtk.Box+BoxChild
                     Gtk.Label w46 = new Gtk.Label();
                     w46.LabelProp = "Expression:";
                     w46.Events = ((Gdk.EventMask)(0));
                     w46.Name = "labelExpression";
                     bindings["labelExpression"] = w46;
                     w45.Add(w46);
                     Gtk.Box.BoxChild w47 = ((Gtk.Box.BoxChild)(w45[w46]));
                     w47.Position = 0;
                     w47.Expand = false;
                     w47.Fill = false;
                     // Container child hbox4.Gtk.Box+BoxChild
                     Gtk.Entry w48 = new Gtk.Entry();
                     w48.IsEditable = true;
                     w48.InvisibleChar = '●';
                     w48.CanFocus = true;
                     w48.Events = ((Gdk.EventMask)(0));
                     w48.Name = "entryExpression";
                     bindings["entryExpression"] = w48;
                     w45.Add(w48);
                     Gtk.Box.BoxChild w49 = ((Gtk.Box.BoxChild)(w45[w48]));
                     w49.Position = 1;
                     // Container child hbox4.Gtk.Box+BoxChild
                     Gtk.Button w50 = new Gtk.Button();
                     w34.SetTip(w50, "Search keyword", "Search keyword");
                     w50.CanFocus = true;
                     w50.Events = ((Gdk.EventMask)(0));
                     w50.Name = "buttonSearchExpression";
                     // Container child buttonSearchExpression.Gtk.Container+ContainerChild
                     Gtk.Alignment w51 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                     w51.Events = ((Gdk.EventMask)(0));
                     w51.Name = "GtkAlignment";
                     // Container child GtkAlignment.Gtk.Container+ContainerChild
                     Gtk.HBox w52 = new Gtk.HBox();
                     w52.Spacing = 2;
                     w52.Events = ((Gdk.EventMask)(0));
                     w52.Name = "GtkHBox";
                     // Container child GtkHBox.Gtk.Container+ContainerChild
                     Gtk.Image w53 = new Gtk.Image();
                     w53.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-find", 16, 0);
                     w53.Events = ((Gdk.EventMask)(0));
                     w53.Name = "image5";
                     bindings["image5"] = w53;
                     w52.Add(w53);
                     // Container child GtkHBox.Gtk.Container+ContainerChild
                     Gtk.Label w55 = new Gtk.Label();
                     w55.LabelProp = "Search";
                     w55.Events = ((Gdk.EventMask)(0));
                     w55.Name = "GtkLabel";
                     bindings["GtkLabel"] = w55;
                     w52.Add(w55);
                     bindings["GtkHBox"] = w52;
                     w51.Add(w52);
                     bindings["GtkAlignment"] = w51;
                     w50.Add(w51);
                     bindings["buttonSearchExpression"] = w50;
                     w45.Add(w50);
                     Gtk.Box.BoxChild w59 = ((Gtk.Box.BoxChild)(w45[w50]));
                     w59.Position = 2;
                     w59.Expand = false;
                     w59.Fill = false;
                     // Container child hbox4.Gtk.Box+BoxChild
                     Gtk.Button w60 = new Gtk.Button();
                     w34.SetTip(w60, "Search keyword", "Search keyword");
                     w60.CanFocus = true;
                     w60.Events = ((Gdk.EventMask)(0));
                     w60.Name = "buttonShowAll";
                     w60.Label = "Show All";
                     bindings["buttonShowAll"] = w60;
                     w45.Add(w60);
                     Gtk.Box.BoxChild w61 = ((Gtk.Box.BoxChild)(w45[w60]));
                     w61.Position = 3;
                     w61.Expand = false;
                     w61.Fill = false;
                     bindings["hbox4"] = w45;
                     w17.Add(w45);
                     Gtk.Box.BoxChild w62 = ((Gtk.Box.BoxChild)(w17[w45]));
                     w62.Position = 5;
                     w62.Expand = false;
                     w62.Fill = false;
                     // Container child vbox1.Gtk.Box+BoxChild
                     Gtk.HSeparator w63 = new Gtk.HSeparator();
                     w63.Events = ((Gdk.EventMask)(0));
                     w63.Name = "hseparator1";
                     bindings["hseparator1"] = w63;
                     w17.Add(w63);
                     Gtk.Box.BoxChild w64 = ((Gtk.Box.BoxChild)(w17[w63]));
                     w64.Position = 6;
                     w64.Expand = false;
                     w64.Fill = false;
                     // Container child vbox1.Gtk.Box+BoxChild
                     Gtk.HButtonBox w65 = new Gtk.HButtonBox();
                     w65.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
                     w65.BorderWidth = ((uint)(3));
                     w65.Events = ((Gdk.EventMask)(0));
                     w65.Name = "hbuttonbox1";
                     // Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
                     Gtk.Button w66 = new Gtk.Button();
                     w66.CanFocus = true;
                     w66.Events = ((Gdk.EventMask)(0));
                     w66.Name = "buttonClose";
                     // Container child buttonClose.Gtk.Container+ContainerChild
                     Gtk.Alignment w67 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                     w67.Events = ((Gdk.EventMask)(0));
                     w67.Name = "GtkAlignment";
                     // Container child GtkAlignment.Gtk.Container+ContainerChild
                     Gtk.HBox w68 = new Gtk.HBox();
                     w68.Spacing = 2;
                     w68.Events = ((Gdk.EventMask)(0));
                     w68.Name = "GtkHBox";
                     // Container child GtkHBox.Gtk.Container+ContainerChild
                     Gtk.Image w69 = new Gtk.Image();
                     w69.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-close", 16, 0);
                     w69.Events = ((Gdk.EventMask)(0));
                     w69.Name = "image6";
                     bindings["image6"] = w69;
                     w68.Add(w69);
                     // Container child GtkHBox.Gtk.Container+ContainerChild
                     Gtk.Label w71 = new Gtk.Label();
                     w71.LabelProp = "Close";
                     w71.Events = ((Gdk.EventMask)(0));
                     w71.Name = "GtkLabel";
                     bindings["GtkLabel"] = w71;
                     w68.Add(w71);
                     bindings["GtkHBox"] = w68;
                     w67.Add(w68);
                     bindings["GtkAlignment"] = w67;
                     w66.Add(w67);
                     bindings["buttonClose"] = w66;
                     w65.Add(w66);
                     Gtk.ButtonBox.ButtonBoxChild w75 = ((Gtk.ButtonBox.ButtonBoxChild)(w65[w66]));
                     w75.Expand = false;
                     w75.Fill = false;
                     bindings["hbuttonbox1"] = w65;
                     w17.Add(w65);
                     Gtk.Box.BoxChild w76 = ((Gtk.Box.BoxChild)(w17[w65]));
                     w76.Position = 7;
                     w76.Expand = false;
                     w76.Fill = false;
                     bindings["vbox1"] = w17;
                     cobj.Add(w17);
                     cobj.DefaultHeight = 480;
                     bindings["SharpTranslator.MainWindow"] = cobj;
                     w18.Show();
                     w20.Show();
                     w22.Show();
                     w25.Show();
                     w24.Show();
                     w29.Show();
                     w31.Show();
                     w37.Show();
                     w39.Show();
                     w36.Show();
                     w35.Show();
                     w33.Show();
                     w28.Show();
                     w46.Show();
                     w48.Show();
                     w53.Show();
                     w55.Show();
                     w52.Show();
                     w51.Show();
                     w50.Show();
                     w60.Show();
                     w45.Show();
                     w63.Show();
                     w69.Show();
                     w71.Show();
                     w68.Show();
                     w67.Show();
                     w66.Show();
                     w65.Show();
                     w17.Show();
                     cobj.Show();
                     cobj.DeleteEvent += ((Gtk.DeleteEventHandler)(System.Delegate.CreateDelegate(typeof(Gtk.DeleteEventHandler), cobj, "OnDeleteEvent")));
                     w5.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnLearn")));
                     w7.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnLearn")));
                     w13.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnAbout")));
                     w16.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnClose")));
                     w31.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnSearch")));
                     w33.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnSearch")));
                     w48.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnSearchExpression")));
                     w50.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnSearchExpression")));
                     w60.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnShowAll")));
                     w66.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnClose")));
                 }
             }
         }
     }
     System.Reflection.FieldInfo[] fields = obj.GetType().GetFields(((System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic) | System.Reflection.BindingFlags.Instance));
     for (int n = 0; (n < fields.Length); n = (n + 1)) {
         System.Reflection.FieldInfo field = fields[n];
         object widget = bindings[field.Name];
         if (((widget != null) && field.FieldType.IsInstanceOfType(widget))) {
             field.SetValue(obj, widget);
         }
     }
 }
Ejemplo n.º 4
0
 public static void Build(object obj, string id)
 {
     System.Collections.Hashtable bindings = new System.Collections.Hashtable();
     if ((id == "Boxerp.Client.GtkSharp.Lib.QuestionDialog")) {
         Gtk.Dialog cobj = ((Gtk.Dialog)(obj));
         // Widget Boxerp.Client.GtkSharp.Lib.QuestionDialog
         cobj.Title = "Question";
         cobj.WindowPosition = ((Gtk.WindowPosition)(4));
         cobj.Modal = true;
         cobj.HasSeparator = false;
         cobj.Events = ((Gdk.EventMask)(256));
         cobj.Name = "Boxerp.Client.GtkSharp.Lib.QuestionDialog";
         // Internal child Boxerp.Client.GtkSharp.Lib.QuestionDialog.VBox
         Gtk.VBox w1 = cobj.VBox;
         w1.BorderWidth = ((uint)(2));
         w1.Events = ((Gdk.EventMask)(256));
         w1.Name = "dialog_VBox";
         // Container child dialog_VBox.Gtk.Box+BoxChild
         Gtk.HBox w2 = new Gtk.HBox();
         w2.Events = ((Gdk.EventMask)(0));
         w2.Name = "hbox1";
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.Image w3 = new Gtk.Image();
         w3.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-dialog-info", 16, 0);
         w3.Events = ((Gdk.EventMask)(0));
         w3.Name = "image";
         bindings["image"] = w3;
         w2.Add(w3);
         Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w2[w3]));
         w4.Position = 0;
         w4.Expand = false;
         w4.Fill = false;
         w4.Padding = ((uint)(5));
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.Label w5 = new Gtk.Label();
         w5.LabelProp = "Info";
         w5.Events = ((Gdk.EventMask)(0));
         w5.Name = "label";
         bindings["label"] = w5;
         w2.Add(w5);
         Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(w2[w5]));
         w6.Position = 1;
         bindings["hbox1"] = w2;
         w1.Add(w2);
         Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w1[w2]));
         w7.Position = 0;
         w7.Expand = false;
         w7.Fill = false;
         w7.Padding = ((uint)(5));
         bindings["dialog_VBox"] = w1;
         // Internal child Boxerp.Client.GtkSharp.Lib.QuestionDialog.ActionArea
         Gtk.HButtonBox w8 = cobj.ActionArea;
         w8.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
         w8.Spacing = 10;
         w8.BorderWidth = ((uint)(5));
         w8.Events = ((Gdk.EventMask)(256));
         w8.Name = "Boxerp.Client.GtkSharp.Lib.QuestionDialog_ActionArea";
         // Container child Boxerp.Client.GtkSharp.Lib.QuestionDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
         Gtk.Button w9 = new Gtk.Button();
         w9.CanFocus = true;
         w9.Events = ((Gdk.EventMask)(0));
         w9.Name = "button22";
         w9.CanDefault = true;
         // Container child button22.Gtk.Container+ContainerChild
         Gtk.Alignment w10 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
         w10.Events = ((Gdk.EventMask)(0));
         w10.Name = "GtkAlignment";
         // Container child GtkAlignment.Gtk.Container+ContainerChild
         Gtk.HBox w11 = new Gtk.HBox();
         w11.Spacing = 2;
         w11.Events = ((Gdk.EventMask)(0));
         w11.Name = "GtkHBox";
         // Container child GtkHBox.Gtk.Container+ContainerChild
         Gtk.Image w12 = new Gtk.Image();
         w12.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-no", 16, 0);
         w12.Events = ((Gdk.EventMask)(0));
         w12.Name = "image2";
         bindings["image2"] = w12;
         w11.Add(w12);
         // Container child GtkHBox.Gtk.Container+ContainerChild
         Gtk.Label w14 = new Gtk.Label();
         w14.LabelProp = "No";
         w14.Events = ((Gdk.EventMask)(0));
         w14.Name = "GtkLabel";
         bindings["GtkLabel"] = w14;
         w11.Add(w14);
         bindings["GtkHBox"] = w11;
         w10.Add(w11);
         bindings["GtkAlignment"] = w10;
         w9.Add(w10);
         bindings["button22"] = w9;
         cobj.AddActionWidget(w9, -9);
         Gtk.ButtonBox.ButtonBoxChild w18 = ((Gtk.ButtonBox.ButtonBoxChild)(w8[w9]));
         w18.Expand = false;
         w18.Fill = false;
         // Container child Boxerp.Client.GtkSharp.Lib.QuestionDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
         Gtk.Button w19 = new Gtk.Button();
         w19.CanFocus = true;
         w19.Events = ((Gdk.EventMask)(0));
         w19.Name = "button24";
         w19.CanDefault = true;
         // Container child button24.Gtk.Container+ContainerChild
         Gtk.Alignment w20 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
         w20.Events = ((Gdk.EventMask)(0));
         w20.Name = "GtkAlignment1";
         // Container child GtkAlignment1.Gtk.Container+ContainerChild
         Gtk.HBox w21 = new Gtk.HBox();
         w21.Spacing = 2;
         w21.Events = ((Gdk.EventMask)(0));
         w21.Name = "GtkHBox1";
         // Container child GtkHBox1.Gtk.Container+ContainerChild
         Gtk.Image w22 = new Gtk.Image();
         w22.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-yes", 16, 0);
         w22.Events = ((Gdk.EventMask)(0));
         w22.Name = "image3";
         bindings["image3"] = w22;
         w21.Add(w22);
         // Container child GtkHBox1.Gtk.Container+ContainerChild
         Gtk.Label w24 = new Gtk.Label();
         w24.LabelProp = "Yes";
         w24.Events = ((Gdk.EventMask)(0));
         w24.Name = "GtkLabel1";
         bindings["GtkLabel1"] = w24;
         w21.Add(w24);
         bindings["GtkHBox1"] = w21;
         w20.Add(w21);
         bindings["GtkAlignment1"] = w20;
         w19.Add(w20);
         bindings["button24"] = w19;
         cobj.AddActionWidget(w19, -8);
         Gtk.ButtonBox.ButtonBoxChild w28 = ((Gtk.ButtonBox.ButtonBoxChild)(w8[w19]));
         w28.Position = 1;
         w28.Expand = false;
         w28.Fill = false;
         bindings["Boxerp.Client.GtkSharp.Lib.QuestionDialog_ActionArea"] = w8;
         cobj.DefaultWidth = 400;
         cobj.DefaultHeight = 99;
         bindings["Boxerp.Client.GtkSharp.Lib.QuestionDialog"] = cobj;
         w3.Show();
         w5.Show();
         w2.Show();
         w1.Show();
         w12.Show();
         w14.Show();
         w11.Show();
         w10.Show();
         w9.Show();
         w22.Show();
         w24.Show();
         w21.Show();
         w20.Show();
         w19.Show();
         w8.Show();
         cobj.Show();
         w9.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnNo")));
         w19.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnYes")));
     }
     else {
         if ((id == "Boxerp.Client.GtkSharp.Lib.SimpleListView")) {
             Gtk.Bin cobj = ((Gtk.Bin)(obj));
             // Widget Boxerp.Client.GtkSharp.Lib.SimpleListView
             BinContainer.Attach(cobj);
             cobj.Events = ((Gdk.EventMask)(256));
             cobj.Name = "Boxerp.Client.GtkSharp.Lib.SimpleListView";
             // Container child Boxerp.Client.GtkSharp.Lib.SimpleListView.Gtk.Container+ContainerChild
             Gtk.TreeView w1 = new Gtk.TreeView();
             w1.CanFocus = true;
             w1.Events = ((Gdk.EventMask)(0));
             w1.Name = "treeview";
             bindings["treeview"] = w1;
             cobj.Add(w1);
             bindings["Boxerp.Client.GtkSharp.Lib.SimpleListView"] = cobj;
             w1.Show();
             cobj.Show();
         }
         else {
             if ((id == "Boxerp.Client.GtkSharp.Lib.WarningDialog")) {
                 Gtk.Dialog cobj = ((Gtk.Dialog)(obj));
                 // Widget Boxerp.Client.GtkSharp.Lib.WarningDialog
                 cobj.Title = "Warning";
                 cobj.Icon = Gtk.IconTheme.Default.LoadIcon("gtk-dialog-warning", 16, 0);
                 cobj.WindowPosition = ((Gtk.WindowPosition)(4));
                 cobj.HasSeparator = false;
                 cobj.Resizable = false;
                 cobj.AllowGrow = false;
                 cobj.DefaultWidth = 500;
                 cobj.Events = ((Gdk.EventMask)(256));
                 cobj.Name = "Boxerp.Client.GtkSharp.Lib.WarningDialog";
                 // Internal child Boxerp.Client.GtkSharp.Lib.WarningDialog.VBox
                 Gtk.VBox w1 = cobj.VBox;
                 w1.BorderWidth = ((uint)(2));
                 w1.Events = ((Gdk.EventMask)(256));
                 w1.Name = "dialog_VBox";
                 // Container child dialog_VBox.Gtk.Box+BoxChild
                 Gtk.HBox w2 = new Gtk.HBox();
                 w2.Spacing = 5;
                 w2.BorderWidth = ((uint)(5));
                 w2.Events = ((Gdk.EventMask)(0));
                 w2.Name = "hbox1";
                 // Container child hbox1.Gtk.Box+BoxChild
                 Gtk.Image w3 = new Gtk.Image();
                 w3.Pixbuf = Gtk.IconTheme.Default.LoadIcon("stock_dialog-warning", 16, 0);
                 w3.Events = ((Gdk.EventMask)(0));
                 w3.Name = "image";
                 bindings["image"] = w3;
                 w2.Add(w3);
                 Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w2[w3]));
                 w4.Position = 0;
                 w4.Expand = false;
                 w4.Fill = false;
                 // Container child hbox1.Gtk.Box+BoxChild
                 Gtk.Label w5 = new Gtk.Label();
                 w5.LabelProp = "Warning";
                 w5.Events = ((Gdk.EventMask)(0));
                 w5.Name = "label";
                 bindings["label"] = w5;
                 w2.Add(w5);
                 Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(w2[w5]));
                 w6.Position = 1;
                 bindings["hbox1"] = w2;
                 w1.Add(w2);
                 Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w1[w2]));
                 w7.Position = 0;
                 w7.Expand = false;
                 w7.Fill = false;
                 bindings["dialog_VBox"] = w1;
                 // Internal child Boxerp.Client.GtkSharp.Lib.WarningDialog.ActionArea
                 Gtk.HButtonBox w8 = cobj.ActionArea;
                 w8.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
                 w8.Spacing = 10;
                 w8.BorderWidth = ((uint)(5));
                 w8.Events = ((Gdk.EventMask)(256));
                 w8.Name = "Boxerp.Client.GtkSharp.Lib.WarningDialog_ActionArea";
                 // Container child Boxerp.Client.GtkSharp.Lib.WarningDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
                 Gtk.Button w9 = new Gtk.Button();
                 w9.CanFocus = true;
                 w9.Events = ((Gdk.EventMask)(0));
                 w9.Name = "buttonOk";
                 w9.CanDefault = true;
                 // Container child buttonOk.Gtk.Container+ContainerChild
                 Gtk.Alignment w10 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w10.Events = ((Gdk.EventMask)(0));
                 w10.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w11 = new Gtk.HBox();
                 w11.Spacing = 2;
                 w11.Events = ((Gdk.EventMask)(0));
                 w11.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w12 = new Gtk.Image();
                 w12.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-ok", 16, 0);
                 w12.Events = ((Gdk.EventMask)(0));
                 w12.Name = "image7";
                 bindings["image7"] = w12;
                 w11.Add(w12);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w14 = new Gtk.Label();
                 w14.LabelProp = "Ok";
                 w14.Events = ((Gdk.EventMask)(0));
                 w14.Name = "GtkLabel";
                 bindings["GtkLabel"] = w14;
                 w11.Add(w14);
                 bindings["GtkHBox"] = w11;
                 w10.Add(w11);
                 bindings["GtkAlignment"] = w10;
                 w9.Add(w10);
                 bindings["buttonOk"] = w9;
                 cobj.AddActionWidget(w9, 0);
                 Gtk.ButtonBox.ButtonBoxChild w18 = ((Gtk.ButtonBox.ButtonBoxChild)(w8[w9]));
                 w18.Expand = false;
                 w18.Fill = false;
                 bindings["Boxerp.Client.GtkSharp.Lib.WarningDialog_ActionArea"] = w8;
                 cobj.DefaultHeight = 104;
                 bindings["Boxerp.Client.GtkSharp.Lib.WarningDialog"] = cobj;
                 w3.Show();
                 w5.Show();
                 w2.Show();
                 w1.Show();
                 w12.Show();
                 w14.Show();
                 w11.Show();
                 w10.Show();
                 w9.Show();
                 w8.Show();
                 cobj.Show();
                 w9.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnOk")));
             }
             else {
                 if ((id == "Boxerp.Client.GtkSharp.Lib.WaitWindow")) {
                     Gtk.Window cobj = ((Gtk.Window)(obj));
                     // Widget Boxerp.Client.GtkSharp.Lib.WaitWindow
                     cobj.Title = "Operation in progress...";
                     cobj.WindowPosition = ((Gtk.WindowPosition)(1));
                     cobj.Events = ((Gdk.EventMask)(0));
                     cobj.Name = "Boxerp.Client.GtkSharp.Lib.WaitWindow";
                     // Container child Boxerp.Client.GtkSharp.Lib.WaitWindow.Gtk.Container+ContainerChild
                     Gtk.VBox w1 = new Gtk.VBox();
                     w1.Spacing = 2;
                     w1.BorderWidth = ((uint)(5));
                     w1.Events = ((Gdk.EventMask)(256));
                     w1.Name = "vbox";
                     // Container child vbox.Gtk.Box+BoxChild
                     Gtk.Label w2 = new Gtk.Label();
                     w2.LabelProp = "Please wait";
                     w2.Events = ((Gdk.EventMask)(0));
                     w2.Name = "labelMsg";
                     bindings["labelMsg"] = w2;
                     w1.Add(w2);
                     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(w1[w2]));
                     w3.Position = 0;
                     // Container child vbox.Gtk.Box+BoxChild
                     Gtk.ProgressBar w4 = new Gtk.ProgressBar();
                     w4.Events = ((Gdk.EventMask)(0));
                     w4.Name = "progressbar";
                     bindings["progressbar"] = w4;
                     w1.Add(w4);
                     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(w1[w4]));
                     w5.Position = 1;
                     w5.Expand = false;
                     w5.Fill = false;
                     // Container child vbox.Gtk.Box+BoxChild
                     Gtk.HButtonBox w6 = new Gtk.HButtonBox();
                     w6.LayoutStyle = ((Gtk.ButtonBoxStyle)(2));
                     w6.Spacing = 10;
                     w6.BorderWidth = ((uint)(5));
                     w6.Events = ((Gdk.EventMask)(256));
                     w6.Name = "actionArea";
                     // Container child actionArea.Gtk.ButtonBox+ButtonBoxChild
                     Gtk.Button w7 = new Gtk.Button();
                     w7.CanFocus = true;
                     w7.Events = ((Gdk.EventMask)(0));
                     w7.Name = "button";
                     w7.CanDefault = true;
                     // Container child button.Gtk.Container+ContainerChild
                     Gtk.Alignment w8 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                     w8.Events = ((Gdk.EventMask)(0));
                     w8.Name = "GtkAlignment";
                     // Container child GtkAlignment.Gtk.Container+ContainerChild
                     Gtk.HBox w9 = new Gtk.HBox();
                     w9.Spacing = 2;
                     w9.Events = ((Gdk.EventMask)(0));
                     w9.Name = "GtkHBox";
                     // Container child GtkHBox.Gtk.Container+ContainerChild
                     Gtk.Image w10 = new Gtk.Image();
                     w10.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-cancel", 16, 0);
                     w10.Events = ((Gdk.EventMask)(0));
                     w10.Name = "image1";
                     bindings["image1"] = w10;
                     w9.Add(w10);
                     // Container child GtkHBox.Gtk.Container+ContainerChild
                     Gtk.Label w12 = new Gtk.Label();
                     w12.LabelProp = "Cancel";
                     w12.Events = ((Gdk.EventMask)(0));
                     w12.Name = "GtkLabel";
                     bindings["GtkLabel"] = w12;
                     w9.Add(w12);
                     bindings["GtkHBox"] = w9;
                     w8.Add(w9);
                     bindings["GtkAlignment"] = w8;
                     w7.Add(w8);
                     bindings["button"] = w7;
                     w6.Add(w7);
                     Gtk.ButtonBox.ButtonBoxChild w16 = ((Gtk.ButtonBox.ButtonBoxChild)(w6[w7]));
                     w16.Expand = false;
                     w16.Fill = false;
                     bindings["actionArea"] = w6;
                     w1.Add(w6);
                     Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(w1[w6]));
                     w17.Position = 2;
                     w17.Expand = false;
                     w17.Fill = false;
                     bindings["vbox"] = w1;
                     cobj.Add(w1);
                     cobj.DefaultWidth = 400;
                     cobj.DefaultHeight = 119;
                     bindings["Boxerp.Client.GtkSharp.Lib.WaitWindow"] = cobj;
                     w2.Show();
                     w4.Show();
                     w10.Show();
                     w12.Show();
                     w9.Show();
                     w8.Show();
                     w7.Show();
                     w6.Show();
                     w1.Show();
                     cobj.Show();
                     cobj.DeleteEvent += ((Gtk.DeleteEventHandler)(System.Delegate.CreateDelegate(typeof(Gtk.DeleteEventHandler), cobj, "OnDeleteEvent")));
                     w7.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnCancel")));
                 }
                 else {
                     if ((id == "Boxerp.Client.GtkSharp.Lib.WaitDialog")) {
                         Gtk.Dialog cobj = ((Gtk.Dialog)(obj));
                         // Widget Boxerp.Client.GtkSharp.Lib.WaitDialog
                         cobj.Title = "Operation in progress...";
                         cobj.WindowPosition = ((Gtk.WindowPosition)(1));
                         cobj.HasSeparator = false;
                         cobj.Events = ((Gdk.EventMask)(256));
                         cobj.Name = "Boxerp.Client.GtkSharp.Lib.WaitDialog";
                         // Internal child Boxerp.Client.GtkSharp.Lib.WaitDialog.VBox
                         Gtk.VBox w1 = cobj.VBox;
                         w1.Spacing = 2;
                         w1.BorderWidth = ((uint)(2));
                         w1.Events = ((Gdk.EventMask)(256));
                         w1.Name = "dialog_VBox";
                         // Container child dialog_VBox.Gtk.Box+BoxChild
                         Gtk.Label w2 = new Gtk.Label();
                         w2.LabelProp = "Please wait";
                         w2.Events = ((Gdk.EventMask)(0));
                         w2.Name = "labelMsg";
                         bindings["labelMsg"] = w2;
                         w1.Add(w2);
                         Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(w1[w2]));
                         w3.Position = 0;
                         // Container child dialog_VBox.Gtk.Box+BoxChild
                         Gtk.ProgressBar w4 = new Gtk.ProgressBar();
                         w4.Events = ((Gdk.EventMask)(0));
                         w4.Name = "progressbar";
                         bindings["progressbar"] = w4;
                         w1.Add(w4);
                         Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(w1[w4]));
                         w5.Position = 1;
                         w5.Expand = false;
                         w5.Fill = false;
                         bindings["dialog_VBox"] = w1;
                         // Internal child Boxerp.Client.GtkSharp.Lib.WaitDialog.ActionArea
                         Gtk.HButtonBox w6 = cobj.ActionArea;
                         w6.LayoutStyle = ((Gtk.ButtonBoxStyle)(2));
                         w6.Spacing = 10;
                         w6.BorderWidth = ((uint)(5));
                         w6.Events = ((Gdk.EventMask)(256));
                         w6.Name = "actionArea";
                         // Container child actionArea.Gtk.ButtonBox+ButtonBoxChild
                         Gtk.Button w7 = new Gtk.Button();
                         w7.CanFocus = true;
                         w7.Events = ((Gdk.EventMask)(0));
                         w7.Name = "button";
                         w7.CanDefault = true;
                         // Container child button.Gtk.Container+ContainerChild
                         Gtk.Alignment w8 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                         w8.Events = ((Gdk.EventMask)(0));
                         w8.Name = "GtkAlignment";
                         // Container child GtkAlignment.Gtk.Container+ContainerChild
                         Gtk.HBox w9 = new Gtk.HBox();
                         w9.Spacing = 2;
                         w9.Events = ((Gdk.EventMask)(0));
                         w9.Name = "GtkHBox";
                         // Container child GtkHBox.Gtk.Container+ContainerChild
                         Gtk.Image w10 = new Gtk.Image();
                         w10.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-cancel", 16, 0);
                         w10.Events = ((Gdk.EventMask)(0));
                         w10.Name = "image8";
                         bindings["image8"] = w10;
                         w9.Add(w10);
                         // Container child GtkHBox.Gtk.Container+ContainerChild
                         Gtk.Label w12 = new Gtk.Label();
                         w12.LabelProp = "Cancel";
                         w12.Events = ((Gdk.EventMask)(0));
                         w12.Name = "GtkLabel";
                         bindings["GtkLabel"] = w12;
                         w9.Add(w12);
                         bindings["GtkHBox"] = w9;
                         w8.Add(w9);
                         bindings["GtkAlignment"] = w8;
                         w7.Add(w8);
                         bindings["button"] = w7;
                         cobj.AddActionWidget(w7, -7);
                         Gtk.ButtonBox.ButtonBoxChild w16 = ((Gtk.ButtonBox.ButtonBoxChild)(w6[w7]));
                         w16.Expand = false;
                         w16.Fill = false;
                         bindings["actionArea"] = w6;
                         cobj.DefaultWidth = 400;
                         cobj.DefaultHeight = 113;
                         bindings["Boxerp.Client.GtkSharp.Lib.WaitDialog"] = cobj;
                         w2.Show();
                         w4.Show();
                         w1.Show();
                         w10.Show();
                         w12.Show();
                         w9.Show();
                         w8.Show();
                         w7.Show();
                         w6.Show();
                         cobj.Show();
                         cobj.Close += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnClose")));
                         cobj.DeleteEvent += ((Gtk.DeleteEventHandler)(System.Delegate.CreateDelegate(typeof(Gtk.DeleteEventHandler), cobj, "OnDeleteEvent")));
                         w7.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnCancel")));
                     }
                     else {
                         if ((id == "Boxerp.Client.GtkSharp.Lib.DoubleListView")) {
                             Gtk.Bin cobj = ((Gtk.Bin)(obj));
                             // Widget Boxerp.Client.GtkSharp.Lib.DoubleListView
                             BinContainer.Attach(cobj);
                             cobj.Events = ((Gdk.EventMask)(256));
                             cobj.Name = "Boxerp.Client.GtkSharp.Lib.DoubleListView";
                             // Container child Boxerp.Client.GtkSharp.Lib.DoubleListView.Gtk.Container+ContainerChild
                             Gtk.VBox w1 = new Gtk.VBox();
                             w1.Events = ((Gdk.EventMask)(0));
                             w1.Name = "vbox2";
                             // Container child vbox2.Gtk.Box+BoxChild
                             Gtk.HBox w2 = new Gtk.HBox();
                             w2.Events = ((Gdk.EventMask)(0));
                             w2.Name = "hbox2";
                             // Container child hbox2.Gtk.Box+BoxChild
                             Gtk.Label w3 = new Gtk.Label();
                             w3.LabelProp = "label1";
                             w3.Events = ((Gdk.EventMask)(0));
                             w3.Name = "labelLeft";
                             bindings["labelLeft"] = w3;
                             w2.Add(w3);
                             Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w2[w3]));
                             w4.Position = 0;
                             w4.Fill = false;
                             // Container child hbox2.Gtk.Box+BoxChild
                             Gtk.VSeparator w5 = new Gtk.VSeparator();
                             w5.Events = ((Gdk.EventMask)(0));
                             w5.Name = "vseparator1";
                             bindings["vseparator1"] = w5;
                             w2.Add(w5);
                             Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(w2[w5]));
                             w6.Position = 1;
                             w6.Expand = false;
                             w6.Fill = false;
                             // Container child hbox2.Gtk.Box+BoxChild
                             Gtk.Label w7 = new Gtk.Label();
                             w7.LabelProp = "label2";
                             w7.Events = ((Gdk.EventMask)(0));
                             w7.Name = "labelRight";
                             bindings["labelRight"] = w7;
                             w2.Add(w7);
                             Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(w2[w7]));
                             w8.Position = 2;
                             w8.Fill = false;
                             bindings["hbox2"] = w2;
                             w1.Add(w2);
                             Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(w1[w2]));
                             w9.Position = 0;
                             w9.Expand = false;
                             // Container child vbox2.Gtk.Box+BoxChild
                             Gtk.HBox w10 = new Gtk.HBox();
                             w10.Spacing = 5;
                             w10.BorderWidth = ((uint)(5));
                             w10.Events = ((Gdk.EventMask)(0));
                             w10.Name = "hbox1";
                             // Container child hbox1.Gtk.Box+BoxChild
                             Gtk.ScrolledWindow w11 = new Gtk.ScrolledWindow();
                             w11.VscrollbarPolicy = ((Gtk.PolicyType)(1));
                             w11.HscrollbarPolicy = ((Gtk.PolicyType)(1));
                             w11.CanFocus = true;
                             w11.Events = ((Gdk.EventMask)(0));
                             w11.Name = "scrolledwindow1";
                             // Container child scrolledwindow1.Gtk.Container+ContainerChild
                             Gtk.Viewport w12 = new Gtk.Viewport();
                             w12.ShadowType = ((Gtk.ShadowType)(0));
                             w12.Events = ((Gdk.EventMask)(0));
                             w12.Name = "GtkViewport";
                             // Container child GtkViewport.Gtk.Container+ContainerChild
                             Boxerp.Client.GtkSharp.Lib.SimpleListView w13 = new Boxerp.Client.GtkSharp.Lib.SimpleListView();
                             w13.Events = ((Gdk.EventMask)(256));
                             w13.Name = "slistviewLeft";
                             bindings["slistviewLeft"] = w13;
                             w12.Add(w13);
                             bindings["GtkViewport"] = w12;
                             w11.Add(w12);
                             bindings["scrolledwindow1"] = w11;
                             w10.Add(w11);
                             Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(w10[w11]));
                             w16.Position = 0;
                             // Container child hbox1.Gtk.Box+BoxChild
                             Gtk.VBox w17 = new Gtk.VBox();
                             w17.Homogeneous = true;
                             w17.Events = ((Gdk.EventMask)(0));
                             w17.Name = "vbox1";
                             // Container child vbox1.Gtk.Box+BoxChild
                             Gtk.Button w18 = new Gtk.Button();
                             w18.CanFocus = true;
                             w18.Events = ((Gdk.EventMask)(0));
                             w18.Name = "button5";
                             // Container child button5.Gtk.Container+ContainerChild
                             Gtk.Alignment w19 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                             w19.Events = ((Gdk.EventMask)(0));
                             w19.Name = "GtkAlignment";
                             // Container child GtkAlignment.Gtk.Container+ContainerChild
                             Gtk.HBox w20 = new Gtk.HBox();
                             w20.Spacing = 2;
                             w20.Events = ((Gdk.EventMask)(0));
                             w20.Name = "GtkHBox";
                             // Container child GtkHBox.Gtk.Container+ContainerChild
                             Gtk.Image w21 = new Gtk.Image();
                             w21.Pixbuf = Gtk.IconTheme.Default.LoadIcon("stock_left", 16, 0);
                             w21.Events = ((Gdk.EventMask)(0));
                             w21.Name = "image5";
                             bindings["image5"] = w21;
                             w20.Add(w21);
                             // Container child GtkHBox.Gtk.Container+ContainerChild
                             Gtk.Label w23 = new Gtk.Label();
                             w23.LabelProp = "";
                             w23.Events = ((Gdk.EventMask)(0));
                             w23.Name = "GtkLabel";
                             bindings["GtkLabel"] = w23;
                             w20.Add(w23);
                             bindings["GtkHBox"] = w20;
                             w19.Add(w20);
                             bindings["GtkAlignment"] = w19;
                             w18.Add(w19);
                             bindings["button5"] = w18;
                             w17.Add(w18);
                             Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(w17[w18]));
                             w27.Position = 1;
                             w27.Expand = false;
                             w27.Fill = false;
                             // Container child vbox1.Gtk.Box+BoxChild
                             Gtk.Button w28 = new Gtk.Button();
                             w28.CanFocus = true;
                             w28.Events = ((Gdk.EventMask)(0));
                             w28.Name = "button6";
                             // Container child button6.Gtk.Container+ContainerChild
                             Gtk.Alignment w29 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                             w29.Events = ((Gdk.EventMask)(0));
                             w29.Name = "GtkAlignment";
                             // Container child GtkAlignment.Gtk.Container+ContainerChild
                             Gtk.HBox w30 = new Gtk.HBox();
                             w30.Spacing = 2;
                             w30.Events = ((Gdk.EventMask)(0));
                             w30.Name = "GtkHBox";
                             // Container child GtkHBox.Gtk.Container+ContainerChild
                             Gtk.Image w31 = new Gtk.Image();
                             w31.Pixbuf = Gtk.IconTheme.Default.LoadIcon("stock_right", 16, 0);
                             w31.Events = ((Gdk.EventMask)(0));
                             w31.Name = "image6";
                             bindings["image6"] = w31;
                             w30.Add(w31);
                             // Container child GtkHBox.Gtk.Container+ContainerChild
                             Gtk.Label w33 = new Gtk.Label();
                             w33.LabelProp = "";
                             w33.Events = ((Gdk.EventMask)(0));
                             w33.Name = "GtkLabel";
                             bindings["GtkLabel"] = w33;
                             w30.Add(w33);
                             bindings["GtkHBox"] = w30;
                             w29.Add(w30);
                             bindings["GtkAlignment"] = w29;
                             w28.Add(w29);
                             bindings["button6"] = w28;
                             w17.Add(w28);
                             Gtk.Box.BoxChild w37 = ((Gtk.Box.BoxChild)(w17[w28]));
                             w37.Position = 2;
                             w37.Expand = false;
                             w37.Fill = false;
                             bindings["vbox1"] = w17;
                             w10.Add(w17);
                             Gtk.Box.BoxChild w38 = ((Gtk.Box.BoxChild)(w10[w17]));
                             w38.Position = 1;
                             w38.Expand = false;
                             w38.Fill = false;
                             // Container child hbox1.Gtk.Box+BoxChild
                             Gtk.ScrolledWindow w39 = new Gtk.ScrolledWindow();
                             w39.VscrollbarPolicy = ((Gtk.PolicyType)(1));
                             w39.HscrollbarPolicy = ((Gtk.PolicyType)(1));
                             w39.CanFocus = true;
                             w39.Events = ((Gdk.EventMask)(0));
                             w39.Name = "scrolledwindow2";
                             // Container child scrolledwindow2.Gtk.Container+ContainerChild
                             Gtk.Viewport w40 = new Gtk.Viewport();
                             w40.ShadowType = ((Gtk.ShadowType)(0));
                             w40.Events = ((Gdk.EventMask)(0));
                             w40.Name = "GtkViewport1";
                             // Container child GtkViewport1.Gtk.Container+ContainerChild
                             Boxerp.Client.GtkSharp.Lib.SimpleListView w41 = new Boxerp.Client.GtkSharp.Lib.SimpleListView();
                             w41.Events = ((Gdk.EventMask)(256));
                             w41.Name = "slistviewRight";
                             bindings["slistviewRight"] = w41;
                             w40.Add(w41);
                             bindings["GtkViewport1"] = w40;
                             w39.Add(w40);
                             bindings["scrolledwindow2"] = w39;
                             w10.Add(w39);
                             Gtk.Box.BoxChild w44 = ((Gtk.Box.BoxChild)(w10[w39]));
                             w44.PackType = ((Gtk.PackType)(1));
                             w44.Position = 2;
                             bindings["hbox1"] = w10;
                             w1.Add(w10);
                             Gtk.Box.BoxChild w45 = ((Gtk.Box.BoxChild)(w1[w10]));
                             w45.Position = 1;
                             bindings["vbox2"] = w1;
                             cobj.Add(w1);
                             bindings["Boxerp.Client.GtkSharp.Lib.DoubleListView"] = cobj;
                             w3.Show();
                             w5.Show();
                             w7.Show();
                             w2.Show();
                             w13.Show();
                             w12.Show();
                             w11.Show();
                             w21.Show();
                             w23.Show();
                             w20.Show();
                             w19.Show();
                             w18.Show();
                             w31.Show();
                             w33.Show();
                             w30.Show();
                             w29.Show();
                             w28.Show();
                             w17.Show();
                             w41.Show();
                             w40.Show();
                             w39.Show();
                             w10.Show();
                             w1.Show();
                             cobj.Show();
                             w18.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnLeftClicked")));
                             w28.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnRightClicked")));
                         }
                         else {
                             if ((id == "Boxerp.Client.GtkSharp.Lib.InfoDialog")) {
                                 Gtk.Dialog cobj = ((Gtk.Dialog)(obj));
                                 // Widget Boxerp.Client.GtkSharp.Lib.InfoDialog
                                 cobj.Title = "Info";
                                 cobj.WindowPosition = ((Gtk.WindowPosition)(4));
                                 cobj.HasSeparator = false;
                                 cobj.Events = ((Gdk.EventMask)(256));
                                 cobj.Name = "Boxerp.Client.GtkSharp.Lib.InfoDialog";
                                 // Internal child Boxerp.Client.GtkSharp.Lib.InfoDialog.VBox
                                 Gtk.VBox w1 = cobj.VBox;
                                 w1.BorderWidth = ((uint)(2));
                                 w1.Events = ((Gdk.EventMask)(256));
                                 w1.Name = "dialog_VBox";
                                 // Container child dialog_VBox.Gtk.Box+BoxChild
                                 Gtk.HBox w2 = new Gtk.HBox();
                                 w2.Spacing = 5;
                                 w2.BorderWidth = ((uint)(5));
                                 w2.Events = ((Gdk.EventMask)(0));
                                 w2.Name = "hbox1";
                                 // Container child hbox1.Gtk.Box+BoxChild
                                 Gtk.Image w3 = new Gtk.Image();
                                 w3.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-dialog-info", 16, 0);
                                 w3.Events = ((Gdk.EventMask)(0));
                                 w3.Name = "image";
                                 bindings["image"] = w3;
                                 w2.Add(w3);
                                 Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w2[w3]));
                                 w4.Position = 0;
                                 w4.Expand = false;
                                 w4.Fill = false;
                                 // Container child hbox1.Gtk.Box+BoxChild
                                 Gtk.Label w5 = new Gtk.Label();
                                 w5.LabelProp = "Info";
                                 w5.Events = ((Gdk.EventMask)(0));
                                 w5.Name = "label";
                                 bindings["label"] = w5;
                                 w2.Add(w5);
                                 Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(w2[w5]));
                                 w6.Position = 1;
                                 bindings["hbox1"] = w2;
                                 w1.Add(w2);
                                 Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w1[w2]));
                                 w7.Position = 0;
                                 w7.Expand = false;
                                 w7.Fill = false;
                                 bindings["dialog_VBox"] = w1;
                                 // Internal child Boxerp.Client.GtkSharp.Lib.InfoDialog.ActionArea
                                 Gtk.HButtonBox w8 = cobj.ActionArea;
                                 w8.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
                                 w8.Spacing = 10;
                                 w8.BorderWidth = ((uint)(5));
                                 w8.Events = ((Gdk.EventMask)(256));
                                 w8.Name = "Boxerp.Client.GtkSharp.Lib.InfoDialog_ActionArea";
                                 // Container child Boxerp.Client.GtkSharp.Lib.InfoDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
                                 Gtk.Button w9 = new Gtk.Button();
                                 w9.CanFocus = true;
                                 w9.Events = ((Gdk.EventMask)(0));
                                 w9.Name = "button35";
                                 w9.CanDefault = true;
                                 // Container child button35.Gtk.Container+ContainerChild
                                 Gtk.Alignment w10 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                                 w10.Events = ((Gdk.EventMask)(0));
                                 w10.Name = "GtkAlignment";
                                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                                 Gtk.HBox w11 = new Gtk.HBox();
                                 w11.Spacing = 2;
                                 w11.Events = ((Gdk.EventMask)(0));
                                 w11.Name = "GtkHBox";
                                 // Container child GtkHBox.Gtk.Container+ContainerChild
                                 Gtk.Image w12 = new Gtk.Image();
                                 w12.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-ok", 16, 0);
                                 w12.Events = ((Gdk.EventMask)(0));
                                 w12.Name = "image4";
                                 bindings["image4"] = w12;
                                 w11.Add(w12);
                                 // Container child GtkHBox.Gtk.Container+ContainerChild
                                 Gtk.Label w14 = new Gtk.Label();
                                 w14.LabelProp = "Ok";
                                 w14.Events = ((Gdk.EventMask)(0));
                                 w14.Name = "GtkLabel";
                                 bindings["GtkLabel"] = w14;
                                 w11.Add(w14);
                                 bindings["GtkHBox"] = w11;
                                 w10.Add(w11);
                                 bindings["GtkAlignment"] = w10;
                                 w9.Add(w10);
                                 bindings["button35"] = w9;
                                 cobj.AddActionWidget(w9, 0);
                                 Gtk.ButtonBox.ButtonBoxChild w18 = ((Gtk.ButtonBox.ButtonBoxChild)(w8[w9]));
                                 w18.Expand = false;
                                 w18.Fill = false;
                                 bindings["Boxerp.Client.GtkSharp.Lib.InfoDialog_ActionArea"] = w8;
                                 cobj.DefaultWidth = 400;
                                 cobj.DefaultHeight = 104;
                                 bindings["Boxerp.Client.GtkSharp.Lib.InfoDialog"] = cobj;
                                 w3.Show();
                                 w5.Show();
                                 w2.Show();
                                 w1.Show();
                                 w12.Show();
                                 w14.Show();
                                 w11.Show();
                                 w10.Show();
                                 w9.Show();
                                 w8.Show();
                                 cobj.Show();
                                 w9.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnOkClicked")));
                             }
                             else {
                                 if ((id == "button7")) {
                                     Gtk.Button cobj = ((Gtk.Button)(obj));
                                     // Widget button7
                                     cobj.CanFocus = true;
                                     cobj.Events = ((Gdk.EventMask)(0));
                                     cobj.Name = "button7";
                                     cobj.CanDefault = true;
                                     cobj.Label = "button7";
                                     bindings["button7"] = cobj;
                                     cobj.Show();
                                 }
                                 else {
                                     if ((id == "Boxerp.Client.GtkSharp.Lib.FilteredListView")) {
                                         Gtk.Bin cobj = ((Gtk.Bin)(obj));
                                         // Widget Boxerp.Client.GtkSharp.Lib.FilteredListView
                                         BinContainer.Attach(cobj);
                                         cobj.Events = ((Gdk.EventMask)(256));
                                         cobj.Name = "Boxerp.Client.GtkSharp.Lib.FilteredListView";
                                         // Container child Boxerp.Client.GtkSharp.Lib.FilteredListView.Gtk.Container+ContainerChild
                                         Gtk.TreeView w1 = new Gtk.TreeView();
                                         w1.CanFocus = true;
                                         w1.Events = ((Gdk.EventMask)(0));
                                         w1.Name = "treeview";
                                         bindings["treeview"] = w1;
                                         cobj.Add(w1);
                                         bindings["Boxerp.Client.GtkSharp.Lib.FilteredListView"] = cobj;
                                         w1.Show();
                                         cobj.Show();
                                     }
                                     else {
                                         if ((id == "Boxerp.Client.GtkSharp.Lib.SimpleTreeView")) {
                                             Gtk.Bin cobj = ((Gtk.Bin)(obj));
                                             // Widget Boxerp.Client.GtkSharp.Lib.SimpleTreeView
                                             BinContainer.Attach(cobj);
                                             cobj.Events = ((Gdk.EventMask)(256));
                                             cobj.Name = "Boxerp.Client.GtkSharp.Lib.SimpleTreeView";
                                             // Container child Boxerp.Client.GtkSharp.Lib.SimpleTreeView.Gtk.Container+ContainerChild
                                             Gtk.TreeView w1 = new Gtk.TreeView();
                                             w1.CanFocus = true;
                                             w1.Events = ((Gdk.EventMask)(0));
                                             w1.Name = "treeview";
                                             bindings["treeview"] = w1;
                                             cobj.Add(w1);
                                             bindings["Boxerp.Client.GtkSharp.Lib.SimpleTreeView"] = cobj;
                                             w1.Show();
                                             cobj.Show();
                                         }
                                         else {
                                             if ((id == "Boxerp.Client.GtkSharp.Lib.LoginWindow")) {
                                                 Gtk.Window cobj = ((Gtk.Window)(obj));
                                                 // Widget Boxerp.Client.GtkSharp.Lib.LoginWindow
                                                 cobj.Title = "LoginWindow";
                                                 cobj.WindowPosition = ((Gtk.WindowPosition)(4));
                                                 cobj.Events = ((Gdk.EventMask)(0));
                                                 cobj.Name = "Boxerp.Client.GtkSharp.Lib.LoginWindow";
                                                 cobj.DefaultWidth = 400;
                                                 cobj.DefaultHeight = 300;
                                                 bindings["Boxerp.Client.GtkSharp.Lib.LoginWindow"] = cobj;
                                                 cobj.Show();
                                             }
                                             else {
                                                 if ((id == "MainWindow")) {
                                                     Gtk.Window cobj = ((Gtk.Window)(obj));
                                                     // Widget MainWindow
                                                     cobj.Title = "MainWindow";
                                                     cobj.WindowPosition = ((Gtk.WindowPosition)(4));
                                                     cobj.Events = ((Gdk.EventMask)(0));
                                                     cobj.Name = "MainWindow";
                                                     cobj.DefaultWidth = 400;
                                                     cobj.DefaultHeight = 300;
                                                     bindings["MainWindow"] = cobj;
                                                     cobj.Show();
                                                     cobj.DeleteEvent += ((Gtk.DeleteEventHandler)(System.Delegate.CreateDelegate(typeof(Gtk.DeleteEventHandler), cobj, "OnDeleteEvent")));
                                                 }
                                                 else {
                                                     if ((id == "Boxerp.Client.GtkSharp.Lib.InfoExtendedDialog")) {
                                                         Gtk.Dialog cobj = ((Gtk.Dialog)(obj));
                                                         // Widget Boxerp.Client.GtkSharp.Lib.InfoExtendedDialog
                                                         cobj.Title = "InfoExtendedDialog";
                                                         cobj.WindowPosition = ((Gtk.WindowPosition)(4));
                                                         cobj.HasSeparator = false;
                                                         cobj.Events = ((Gdk.EventMask)(256));
                                                         cobj.Name = "Boxerp.Client.GtkSharp.Lib.InfoExtendedDialog";
                                                         // Internal child Boxerp.Client.GtkSharp.Lib.InfoExtendedDialog.VBox
                                                         Gtk.VBox w1 = cobj.VBox;
                                                         w1.BorderWidth = ((uint)(2));
                                                         w1.Events = ((Gdk.EventMask)(256));
                                                         w1.Name = "dialog_VBox";
                                                         bindings["dialog_VBox"] = w1;
                                                         // Internal child Boxerp.Client.GtkSharp.Lib.InfoExtendedDialog.ActionArea
                                                         Gtk.HButtonBox w2 = cobj.ActionArea;
                                                         w2.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
                                                         w2.Events = ((Gdk.EventMask)(256));
                                                         w2.Name = "Boxerp.Client.GtkSharp.Lib.InfoExtendedDialog_ActionArea";
                                                         // Container child Boxerp.Client.GtkSharp.Lib.InfoExtendedDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
                                                         Gtk.Button w3 = new Gtk.Button();
                                                         w3.CanFocus = true;
                                                         w3.Events = ((Gdk.EventMask)(0));
                                                         w3.Name = "button6";
                                                         w3.CanDefault = true;
                                                         w3.Label = "button6";
                                                         bindings["button6"] = w3;
                                                         cobj.AddActionWidget(w3, 0);
                                                         Gtk.ButtonBox.ButtonBoxChild w4 = ((Gtk.ButtonBox.ButtonBoxChild)(w2[w3]));
                                                         w4.Expand = false;
                                                         w4.Fill = false;
                                                         bindings["Boxerp.Client.GtkSharp.Lib.InfoExtendedDialog_ActionArea"] = w2;
                                                         cobj.DefaultWidth = 400;
                                                         cobj.DefaultHeight = 300;
                                                         bindings["Boxerp.Client.GtkSharp.Lib.InfoExtendedDialog"] = cobj;
                                                         w1.Show();
                                                         w3.Show();
                                                         w2.Show();
                                                         cobj.Show();
                                                     }
                                                 }
                                             }
                                         }
                                     }
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
     System.Reflection.FieldInfo[] fields = obj.GetType().GetFields(((System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic) | System.Reflection.BindingFlags.Instance));
     for (int n = 0; (n < fields.Length); n = (n + 1)) {
         System.Reflection.FieldInfo field = fields[n];
         object widget = bindings[field.Name];
         if (((widget != null) && field.FieldType.IsInstanceOfType(widget))) {
             field.SetValue(obj, widget);
         }
     }
 }
Ejemplo n.º 5
0
 public void AddChildButton(int index, Button button)
 {
     // TODO: support index
     Widget.Add((Gtk.Widget)((WidgetBackend)Toolkit.GetBackend(button)).NativeWidget);
 }
Ejemplo n.º 6
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.CorrectedCoordinatesDlg
     this.Name            = "ocmgtk.CorrectedCoordinatesDlg";
     this.Title           = Mono.Unix.Catalog.GetString("Corrected Coordinates");
     this.WindowPosition  = ((Gtk.WindowPosition)(4));
     this.Modal           = true;
     this.BorderWidth     = ((uint)(6));
     this.Resizable       = false;
     this.AllowGrow       = false;
     this.SkipPagerHint   = true;
     this.SkipTaskbarHint = true;
     // Internal child ocmgtk.CorrectedCoordinatesDlg.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name        = "dialog1_VBox";
     w1.Spacing     = 6;
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.frame1            = new Gtk.Frame();
     this.frame1.Name       = "frame1";
     this.frame1.ShadowType = ((Gtk.ShadowType)(0));
     // Container child frame1.Gtk.Container+ContainerChild
     this.GtkAlignment3             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment3.Name        = "GtkAlignment3";
     this.GtkAlignment3.LeftPadding = ((uint)(12));
     // Container child GtkAlignment3.Gtk.Container+ContainerChild
     this.hbox1         = new Gtk.HBox();
     this.hbox1.Name    = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.label1           = new Gtk.Label();
     this.label1.Name      = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Coodinate:");
     this.hbox1.Add(this.label1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1]));
     w2.Position = 0;
     w2.Expand   = false;
     w2.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.origLabel           = new Gtk.Label();
     this.origLabel.Name      = "origLabel";
     this.origLabel.Xalign    = 0F;
     this.origLabel.LabelProp = "<unknown>";
     this.hbox1.Add(this.origLabel);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.origLabel]));
     w3.Position = 1;
     w3.Expand   = false;
     w3.Fill     = false;
     this.GtkAlignment3.Add(this.hbox1);
     this.frame1.Add(this.GtkAlignment3);
     this.GtkLabel4           = new Gtk.Label();
     this.GtkLabel4.Name      = "GtkLabel4";
     this.GtkLabel4.LabelProp = Mono.Unix.Catalog.GetString("<b>Original Location</b>");
     this.GtkLabel4.UseMarkup = true;
     this.frame1.LabelWidget  = this.GtkLabel4;
     w1.Add(this.frame1);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(w1[this.frame1]));
     w6.Position = 0;
     w6.Expand   = false;
     w6.Fill     = false;
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.frame3            = new Gtk.Frame();
     this.frame3.Name       = "frame3";
     this.frame3.ShadowType = ((Gtk.ShadowType)(0));
     // Container child frame3.Gtk.Container+ContainerChild
     this.GtkAlignment4             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment4.Name        = "GtkAlignment4";
     this.GtkAlignment4.LeftPadding = ((uint)(12));
     // Container child GtkAlignment4.Gtk.Container+ContainerChild
     this.coordEntry           = new ocmgtk.LocationWidget();
     this.coordEntry.Events    = ((Gdk.EventMask)(256));
     this.coordEntry.Name      = "coordEntry";
     this.coordEntry.Latitude  = 0;
     this.coordEntry.Longitude = 0;
     this.GtkAlignment4.Add(this.coordEntry);
     this.frame3.Add(this.GtkAlignment4);
     this.GtkLabel5           = new Gtk.Label();
     this.GtkLabel5.Name      = "GtkLabel5";
     this.GtkLabel5.LabelProp = Mono.Unix.Catalog.GetString("<b>Corrected Location</b>");
     this.GtkLabel5.UseMarkup = true;
     this.frame3.LabelWidget  = this.GtkLabel5;
     w1.Add(this.frame3);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(w1[this.frame3]));
     w9.Position = 1;
     w9.Expand   = false;
     w9.Fill     = false;
     // Internal child ocmgtk.CorrectedCoordinatesDlg.ActionArea
     Gtk.HButtonBox w10 = this.ActionArea;
     w10.Name        = "dialog1_ActionArea";
     w10.Spacing     = 10;
     w10.BorderWidth = ((uint)(5));
     w10.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonCancel              = new Gtk.Button();
     this.buttonCancel.CanDefault   = true;
     this.buttonCancel.CanFocus     = true;
     this.buttonCancel.Name         = "buttonCancel";
     this.buttonCancel.UseStock     = true;
     this.buttonCancel.UseUnderline = true;
     this.buttonCancel.Label        = "gtk-cancel";
     this.AddActionWidget(this.buttonCancel, -6);
     Gtk.ButtonBox.ButtonBoxChild w11 = ((Gtk.ButtonBox.ButtonBoxChild)(w10[this.buttonCancel]));
     w11.Expand = false;
     w11.Fill   = false;
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.resetButton              = new Gtk.Button();
     this.resetButton.Sensitive    = false;
     this.resetButton.CanFocus     = true;
     this.resetButton.Name         = "resetButton";
     this.resetButton.UseUnderline = true;
     this.resetButton.Label        = Mono.Unix.Catalog.GetString("Reset");
     w10.Add(this.resetButton);
     Gtk.ButtonBox.ButtonBoxChild w12 = ((Gtk.ButtonBox.ButtonBoxChild)(w10[this.resetButton]));
     w12.Position = 1;
     w12.Expand   = false;
     w12.Fill     = false;
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonOk              = new Gtk.Button();
     this.buttonOk.CanDefault   = true;
     this.buttonOk.CanFocus     = true;
     this.buttonOk.Name         = "buttonOk";
     this.buttonOk.UseStock     = true;
     this.buttonOk.UseUnderline = true;
     this.buttonOk.Label        = "gtk-ok";
     this.AddActionWidget(this.buttonOk, -5);
     Gtk.ButtonBox.ButtonBoxChild w13 = ((Gtk.ButtonBox.ButtonBoxChild)(w10[this.buttonOk]));
     w13.Position = 2;
     w13.Expand   = false;
     w13.Fill     = false;
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 433;
     this.DefaultHeight = 231;
     this.Show();
     this.buttonCancel.Clicked += new System.EventHandler(this.OnCancelClick);
     this.resetButton.Clicked  += new System.EventHandler(this.OnResetClick);
     this.buttonOk.Clicked     += new System.EventHandler(this.OnOKClick);
 }
Ejemplo n.º 7
0
 public static void Build(object obj, string id)
 {
     System.Collections.Hashtable bindings = new System.Collections.Hashtable();
     if ((id == "LabCardCreator.EraseDialog"))
     {
         Gtk.Dialog cobj = ((Gtk.Dialog)(obj));
         // Widget LabCardCreator.EraseDialog
         cobj.Title          = "Erase card...";
         cobj.WindowPosition = ((Gtk.WindowPosition)(4));
         cobj.HasSeparator   = false;
         cobj.Events         = ((Gdk.EventMask)(256));
         cobj.Name           = "LabCardCreator.EraseDialog";
         cobj.HasDefault     = true;
         cobj.CanDefault     = true;
         // Internal child LabCardCreator.EraseDialog.VBox
         Gtk.VBox w1 = cobj.VBox;
         w1.BorderWidth = ((uint)(2));
         w1.Events      = ((Gdk.EventMask)(256));
         w1.Name        = "dialog_VBox";
         // Container child dialog_VBox.Gtk.Box+BoxChild
         Gtk.VBox w2 = new Gtk.VBox();
         w2.Events = ((Gdk.EventMask)(0));
         w2.Name   = "vbox1";
         // Container child vbox1.Gtk.Box+BoxChild
         Gtk.HBox w3 = new Gtk.HBox();
         w3.Events = ((Gdk.EventMask)(0));
         w3.Name   = "hbox1";
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.Image w4 = new Gtk.Image();
         w4.Pixbuf          = Gtk.IconTheme.Default.LoadIcon("gtk-dialog-warning", 48, 0);
         w4.Events          = ((Gdk.EventMask)(0));
         w4.Name            = "image3";
         w4.WidthRequest    = 70;
         bindings["image3"] = w4;
         w3.Add(w4);
         Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(w3[w4]));
         w5.Position = 0;
         w5.Expand   = false;
         w5.Fill     = false;
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.Label w6 = new Gtk.Label();
         w6.LabelProp         = "<b>Delete card content and format as Labor Card?</b>";
         w6.UseMarkup         = true;
         w6.Justify           = ((Gtk.Justification)(2));
         w6.Events            = ((Gdk.EventMask)(0));
         w6.Name              = "MsgLabel";
         bindings["MsgLabel"] = w6;
         w3.Add(w6);
         Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w3[w6]));
         w7.Position       = 1;
         w7.Padding        = ((uint)(10));
         bindings["hbox1"] = w3;
         w2.Add(w3);
         Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(w2[w3]));
         w8.Position = 0;
         w8.Expand   = false;
         w8.Padding  = ((uint)(10));
         // Container child vbox1.Gtk.Box+BoxChild
         Gtk.Expander w9  = new Gtk.Expander(null);
         Gtk.Tooltips w10 = new Gtk.Tooltips();
         w10.SetTip(w9, "Show hexdump of card content", "Show hexdump of card content");
         w9.CanFocus = true;
         w9.Events   = ((Gdk.EventMask)(0));
         w9.Name     = "ContentExpander";
         // Container child ContentExpander.Gtk.Container+ContainerChild
         Gtk.TextView w11 = new Gtk.TextView();
         w11.CursorVisible       = false;
         w11.Editable            = false;
         w11.AcceptsTab          = false;
         w11.CanFocus            = true;
         w11.Events              = ((Gdk.EventMask)(0));
         w11.Name                = "ContentView";
         bindings["ContentView"] = w11;
         w9.Add(w11);
         Gtk.Label w13 = new Gtk.Label();
         w13.LabelProp               = "Show detailed card content";
         w13.UseUnderline            = true;
         w13.Events                  = ((Gdk.EventMask)(0));
         w13.Name                    = "GtkLabel";
         bindings["GtkLabel"]        = w13;
         w9.LabelWidget              = w13;
         bindings["ContentExpander"] = w9;
         w2.Add(w9);
         Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(w2[w9]));
         w14.Position      = 1;
         bindings["vbox1"] = w2;
         w1.Add(w2);
         Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(w1[w2]));
         w15.Position            = 0;
         bindings["dialog_VBox"] = w1;
         // Internal child LabCardCreator.EraseDialog.ActionArea
         Gtk.HButtonBox w16 = cobj.ActionArea;
         w16.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
         w16.Spacing     = 6;
         w16.BorderWidth = ((uint)(5));
         w16.Events      = ((Gdk.EventMask)(256));
         w16.Name        = "LabCardCreator.EraseDialog_ActionArea";
         // Container child LabCardCreator.EraseDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
         Gtk.Button w17 = new Gtk.Button();
         w17.UseStock             = true;
         w17.UseUnderline         = true;
         w17.CanFocus             = true;
         w17.Events               = ((Gdk.EventMask)(0));
         w17.Name                 = "CancelButton";
         w17.HasDefault           = true;
         w17.CanDefault           = true;
         w17.Label                = "gtk-cancel";
         bindings["CancelButton"] = w17;
         cobj.AddActionWidget(w17, -2);
         Gtk.ButtonBox.ButtonBoxChild w18 = ((Gtk.ButtonBox.ButtonBoxChild)(w16[w17]));
         w18.Expand = false;
         w18.Fill   = false;
         // Container child LabCardCreator.EraseDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
         Gtk.Button w19 = new Gtk.Button();
         w19.UseStock             = true;
         w19.UseUnderline         = true;
         w19.CanFocus             = true;
         w19.Events               = ((Gdk.EventMask)(0));
         w19.Name                 = "DeleteButton";
         w19.CanDefault           = true;
         w19.Label                = "gtk-delete";
         bindings["DeleteButton"] = w19;
         cobj.AddActionWidget(w19, -3);
         Gtk.ButtonBox.ButtonBoxChild w20 = ((Gtk.ButtonBox.ButtonBoxChild)(w16[w19]));
         w20.Position = 1;
         w20.Expand   = false;
         w20.Fill     = false;
         bindings["LabCardCreator.EraseDialog_ActionArea"] = w16;
         cobj.DefaultWidth  = 458;
         cobj.DefaultHeight = 161;
         bindings["LabCardCreator.EraseDialog"] = cobj;
         w4.Show();
         w6.Show();
         w3.Show();
         w11.Show();
         w13.Show();
         w9.Show();
         w2.Show();
         w1.Show();
         w17.Show();
         w19.Show();
         w16.Show();
         cobj.Show();
         w9.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnExpander")));
     }
     else
     {
         if ((id == "LabCardCreator.MainWindow"))
         {
             Gtk.Window cobj = ((Gtk.Window)(obj));
             // Widget LabCardCreator.MainWindow
             cobj.Title = "Labor Card Creator";
             Gtk.UIManager   w1 = new Gtk.UIManager();
             Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
             Gtk.Action      w3 = new Gtk.Action("CardCreator", "_CardCreator", null, null);
             w3.ShortLabel           = "_CardCreator";
             bindings["CardCreator"] = w3;
             w2.Add(w3, null);
             Gtk.Action w4 = new Gtk.Action("Help", "_Help", null, null);
             w4.ShortLabel    = "_Help";
             bindings["Help"] = w4;
             w2.Add(w4, null);
             Gtk.Action w5 = new Gtk.Action("Quit", "Quit", null, "gtk-quit");
             w5.ShortLabel    = "Quit";
             bindings["Quit"] = w5;
             w2.Add(w5, null);
             Gtk.Action w6 = new Gtk.Action("About", "_About...", null, "gtk-about");
             w6.ShortLabel     = "_About";
             bindings["About"] = w6;
             w2.Add(w6, null);
             Gtk.Action w7 = new Gtk.Action("ConnectCardTerminal", "Connect Card Terminal...", null, "gtk-connect");
             w7.ShortLabel = "Connect Card Terminal";
             bindings["ConnectCardTerminal"] = w7;
             w2.Add(w7, null);
             Gtk.Action w8 = new Gtk.Action("DisconnectCardTerminal", "Disconnect Card Terminal", null, "gtk-disconnect");
             w8.ShortLabel = "Disconnect Card Terminal";
             w8.Sensitive  = false;
             bindings["DisconnectCardTerminal"] = w8;
             w2.Add(w8, null);
             Gtk.Action w9 = new Gtk.Action("ViewHexdump", "View _Hexdump...", null, "gtk-justify-fill");
             w9.ShortLabel           = "View _Hexdump";
             bindings["ViewHexdump"] = w9;
             w2.Add(w9, null);
             Gtk.Action w10 = new Gtk.Action("EraseCard", "Erase Card...", null, "gtk-clear");
             w10.ShortLabel        = "Erase Card...";
             bindings["EraseCard"] = w10;
             w2.Add(w10, null);
             Gtk.Action w11 = new Gtk.Action("", "------------------", null, null);
             w11.ShortLabel = "------------------";
             bindings[""]   = w11;
             w2.Add(w11, null);
             w1.InsertActionGroup(w2, 0);
             cobj.AddAccelGroup(w1.AccelGroup);
             cobj.Icon           = Gdk.Pixbuf.LoadFromResource("Labor.png");
             cobj.WindowPosition = ((Gtk.WindowPosition)(4));
             cobj.Events         = ((Gdk.EventMask)(0));
             cobj.Name           = "LabCardCreator.MainWindow";
             // Container child LabCardCreator.MainWindow.Gtk.Container+ContainerChild
             Gtk.VBox w12 = new Gtk.VBox();
             w12.Events = ((Gdk.EventMask)(0));
             w12.Name   = "vbox1";
             // Container child vbox1.Gtk.Box+BoxChild
             w1.AddUiFromString("<ui><menubar name='menubar1'><menu action='CardCreator'><menuitem action='ConnectCardTerminal'/><menuitem action='DisconnectCardTerminal'/><menuitem action='ViewHexdump'/><menuitem action='EraseCard'/><menuitem action='Quit'/><menuitem/></menu><menu action='Help'><menuitem action='About'/></menu></menubar></ui>");
             Gtk.MenuBar w13 = ((Gtk.MenuBar)(w1.GetWidget("/menubar1")));
             w13.Events           = ((Gdk.EventMask)(0));
             w13.Name             = "menubar1";
             bindings["menubar1"] = w13;
             w12.Add(w13);
             Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(w12[w13]));
             w14.Position = 0;
             w14.Expand   = false;
             w14.Fill     = false;
             // Container child vbox1.Gtk.Box+BoxChild
             Gtk.Table w15 = new Gtk.Table(((uint)(4)), ((uint)(2)), false);
             w15.RowSpacing    = ((uint)(6));
             w15.ColumnSpacing = ((uint)(10));
             w15.BorderWidth   = ((uint)(6));
             w15.Events        = ((Gdk.EventMask)(0));
             w15.Name          = "table2";
             // Container child table2.Gtk.Table+TableChild
             Gtk.Entry    w16 = new Gtk.Entry();
             Gtk.Tooltips w17 = new Gtk.Tooltips();
             w17.SetTip(w16, "Internal Card Number", "Internal Card Number");
             w16.Text                = "2342";
             w16.IsEditable          = false;
             w16.InvisibleChar       = '●';
             w16.CanFocus            = true;
             w16.Events              = ((Gdk.EventMask)(0));
             w16.Name                = "numberEntry";
             w16.Sensitive           = false;
             bindings["numberEntry"] = w16;
             w15.Add(w16);
             Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(w15[w16]));
             w18.BottomAttach = ((uint)(3));
             w18.LeftAttach   = ((uint)(1));
             w18.RightAttach  = ((uint)(2));
             w18.TopAttach    = ((uint)(2));
             w18.YOptions     = ((Gtk.AttachOptions)(4));
             w18.XOptions     = ((Gtk.AttachOptions)(4));
             // Container child table2.Gtk.Table+TableChild
             Gtk.Entry w19 = new Gtk.Entry();
             w19.IsEditable        = true;
             w19.InvisibleChar     = '●';
             w19.CanFocus          = true;
             w19.Events            = ((Gdk.EventMask)(0));
             w19.Name              = "nameEntry";
             w19.Sensitive         = false;
             bindings["nameEntry"] = w19;
             w15.Add(w19);
             Gtk.Table.TableChild w20 = ((Gtk.Table.TableChild)(w15[w19]));
             w20.BottomAttach = ((uint)(2));
             w20.LeftAttach   = ((uint)(1));
             w20.RightAttach  = ((uint)(2));
             w20.TopAttach    = ((uint)(1));
             w20.YOptions     = ((Gtk.AttachOptions)(4));
             w20.XOptions     = ((Gtk.AttachOptions)(4));
             // Container child table2.Gtk.Table+TableChild
             Gtk.Entry w21 = new Gtk.Entry();
             w21.IsEditable        = true;
             w21.WidthChars        = 7;
             w21.MaxLength         = 7;
             w21.InvisibleChar     = '●';
             w21.CanFocus          = true;
             w21.Events            = ((Gdk.EventMask)(0));
             w21.Name              = "nickEntry";
             w21.Sensitive         = false;
             bindings["nickEntry"] = w21;
             w15.Add(w21);
             Gtk.Table.TableChild w22 = ((Gtk.Table.TableChild)(w15[w21]));
             w22.LeftAttach  = ((uint)(1));
             w22.RightAttach = ((uint)(2));
             w22.YOptions    = ((Gtk.AttachOptions)(4));
             // Container child table2.Gtk.Table+TableChild
             Gtk.Label w23 = new Gtk.Label();
             w23.LabelProp      = "Card Number:";
             w23.UseUnderline   = true;
             w23.Xalign         = 1F;
             w23.Events         = ((Gdk.EventMask)(0));
             w23.Name           = "label3";
             bindings["label3"] = w23;
             w15.Add(w23);
             Gtk.Table.TableChild w24 = ((Gtk.Table.TableChild)(w15[w23]));
             w24.BottomAttach = ((uint)(3));
             w24.TopAttach    = ((uint)(2));
             w24.YOptions     = ((Gtk.AttachOptions)(4));
             w24.XOptions     = ((Gtk.AttachOptions)(4));
             // Container child table2.Gtk.Table+TableChild
             Gtk.Label w25 = new Gtk.Label();
             w25.LabelProp      = "Real N_ame:";
             w25.UseUnderline   = true;
             w25.Xalign         = 1F;
             w25.Events         = ((Gdk.EventMask)(0));
             w25.Name           = "label2";
             bindings["label2"] = w25;
             w15.Add(w25);
             Gtk.Table.TableChild w26 = ((Gtk.Table.TableChild)(w15[w25]));
             w26.BottomAttach = ((uint)(2));
             w26.TopAttach    = ((uint)(1));
             w26.YOptions     = ((Gtk.AttachOptions)(4));
             w26.XOptions     = ((Gtk.AttachOptions)(4));
             // Container child table2.Gtk.Table+TableChild
             Gtk.Label w27 = new Gtk.Label();
             w27.LabelProp      = "_Nick:";
             w27.UseUnderline   = true;
             w27.Xalign         = 1F;
             w27.Events         = ((Gdk.EventMask)(0));
             w27.Name           = "label4";
             bindings["label4"] = w27;
             w15.Add(w27);
             Gtk.Table.TableChild w28 = ((Gtk.Table.TableChild)(w15[w27]));
             w28.YOptions = ((Gtk.AttachOptions)(4));
             w28.XOptions = ((Gtk.AttachOptions)(4));
             // Container child table2.Gtk.Table+TableChild
             Gtk.Label w29 = new Gtk.Label();
             w29.LabelProp      = "Permissions:";
             w29.UseUnderline   = true;
             w29.Xalign         = 1F;
             w29.Events         = ((Gdk.EventMask)(0));
             w29.Name           = "label1";
             bindings["label1"] = w29;
             w15.Add(w29);
             Gtk.Table.TableChild w30 = ((Gtk.Table.TableChild)(w15[w29]));
             w30.BottomAttach = ((uint)(4));
             w30.TopAttach    = ((uint)(3));
             w30.YOptions     = ((Gtk.AttachOptions)(4));
             w30.XOptions     = ((Gtk.AttachOptions)(4));
             // Container child table2.Gtk.Table+TableChild
             Gtk.HBox w31 = new Gtk.HBox();
             w31.Events = ((Gdk.EventMask)(0));
             w31.Name   = "hbox2";
             // Container child hbox2.Gtk.Box+BoxChild
             Gtk.CheckButton w32 = new Gtk.CheckButton();
             w32.Label              = "Admin";
             w32.DrawIndicator      = true;
             w32.CanFocus           = true;
             w32.Events             = ((Gdk.EventMask)(0));
             w32.Name               = "adminCheck";
             w32.Sensitive          = false;
             bindings["adminCheck"] = w32;
             w31.Add(w32);
             Gtk.Box.BoxChild w33 = ((Gtk.Box.BoxChild)(w31[w32]));
             w33.Position = 0;
             // Container child hbox2.Gtk.Box+BoxChild
             Gtk.CheckButton w34 = new Gtk.CheckButton();
             w34.Label              = "Door 0";
             w34.Active             = true;
             w34.DrawIndicator      = true;
             w34.CanFocus           = true;
             w34.Events             = ((Gdk.EventMask)(0));
             w34.Name               = "door0Check";
             w34.Sensitive          = false;
             bindings["door0Check"] = w34;
             w31.Add(w34);
             Gtk.Box.BoxChild w35 = ((Gtk.Box.BoxChild)(w31[w34]));
             w35.Position = 1;
             // Container child hbox2.Gtk.Box+BoxChild
             Gtk.CheckButton w36 = new Gtk.CheckButton();
             w36.Label              = "Door 1";
             w36.Active             = true;
             w36.DrawIndicator      = true;
             w36.CanFocus           = true;
             w36.Events             = ((Gdk.EventMask)(0));
             w36.Name               = "door1Check";
             w36.Sensitive          = false;
             bindings["door1Check"] = w36;
             w31.Add(w36);
             Gtk.Box.BoxChild w37 = ((Gtk.Box.BoxChild)(w31[w36]));
             w37.Position      = 2;
             bindings["hbox2"] = w31;
             w15.Add(w31);
             Gtk.Table.TableChild w38 = ((Gtk.Table.TableChild)(w15[w31]));
             w38.BottomAttach   = ((uint)(4));
             w38.LeftAttach     = ((uint)(1));
             w38.RightAttach    = ((uint)(2));
             w38.TopAttach      = ((uint)(3));
             w38.YOptions       = ((Gtk.AttachOptions)(4));
             w38.XOptions       = ((Gtk.AttachOptions)(4));
             bindings["table2"] = w15;
             w12.Add(w15);
             Gtk.Box.BoxChild w39 = ((Gtk.Box.BoxChild)(w12[w15]));
             w39.Position = 1;
             w39.Expand   = false;
             w39.Fill     = false;
             // Container child vbox1.Gtk.Box+BoxChild
             Gtk.Statusbar w40 = new Gtk.Statusbar();
             w40.HasResizeGrip     = false;
             w40.Events            = ((Gdk.EventMask)(0));
             w40.Name              = "Statusbar";
             bindings["Statusbar"] = w40;
             w12.Add(w40);
             Gtk.Box.BoxChild w41 = ((Gtk.Box.BoxChild)(w12[w40]));
             w41.PackType = ((Gtk.PackType)(1));
             w41.Position = 2;
             w41.Expand   = false;
             w41.Fill     = false;
             // Container child vbox1.Gtk.Box+BoxChild
             Gtk.HBox w42 = new Gtk.HBox();
             w42.Events = ((Gdk.EventMask)(0));
             w42.Name   = "hbox3";
             // Container child hbox3.Gtk.Box+BoxChild
             Gtk.Image w43 = new Gtk.Image();
             w43.Pixbuf          = Gdk.Pixbuf.LoadFromResource("Labor.png");
             w43.Events          = ((Gdk.EventMask)(0));
             w43.Name            = "image11";
             bindings["image11"] = w43;
             w42.Add(w43);
             Gtk.Box.BoxChild w44 = ((Gtk.Box.BoxChild)(w42[w43]));
             w44.Position = 0;
             w44.Expand   = false;
             w44.Fill     = false;
             w44.Padding  = ((uint)(30));
             // Container child hbox3.Gtk.Box+BoxChild
             Gtk.HBox w45 = new Gtk.HBox();
             w45.Events = ((Gdk.EventMask)(0));
             w45.Name   = "hbox1";
             // Container child hbox1.Gtk.Box+BoxChild
             Gtk.HButtonBox w46 = new Gtk.HButtonBox();
             w46.Spacing     = 20;
             w46.BorderWidth = ((uint)(11));
             w46.Events      = ((Gdk.EventMask)(0));
             w46.Name        = "hbuttonbox1";
             // Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
             Gtk.Button w47 = new Gtk.Button();
             w47.UseUnderline = true;
             w47.CanFocus     = true;
             w47.Events       = ((Gdk.EventMask)(0));
             w47.Name         = "writeButton";
             w47.Sensitive    = false;
             w47.HasDefault   = true;
             w47.CanDefault   = true;
             // Container child writeButton.Gtk.Container+ContainerChild
             Gtk.Alignment w48 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
             w48.Events = ((Gdk.EventMask)(0));
             w48.Name   = "GtkAlignment";
             // Container child GtkAlignment.Gtk.Container+ContainerChild
             Gtk.HBox w49 = new Gtk.HBox();
             w49.Spacing = 2;
             w49.Events  = ((Gdk.EventMask)(0));
             w49.Name    = "GtkHBox";
             // Container child GtkHBox.Gtk.Container+ContainerChild
             Gtk.Image w50 = new Gtk.Image();
             w50.Pixbuf         = Gtk.IconTheme.Default.LoadIcon("stock_creditcard", 16, 0);
             w50.Events         = ((Gdk.EventMask)(0));
             w50.Name           = "image1";
             bindings["image1"] = w50;
             w49.Add(w50);
             // Container child GtkHBox.Gtk.Container+ContainerChild
             Gtk.Label w52 = new Gtk.Label();
             w52.LabelProp        = "_Write to card";
             w52.UseUnderline     = true;
             w52.Events           = ((Gdk.EventMask)(0));
             w52.Name             = "GtkLabel";
             bindings["GtkLabel"] = w52;
             w49.Add(w52);
             bindings["GtkHBox"] = w49;
             w48.Add(w49);
             bindings["GtkAlignment"] = w48;
             w47.Add(w48);
             bindings["writeButton"] = w47;
             w46.Add(w47);
             Gtk.ButtonBox.ButtonBoxChild w56 = ((Gtk.ButtonBox.ButtonBoxChild)(w46[w47]));
             w56.Expand = false;
             w56.Fill   = false;
             bindings["hbuttonbox1"] = w46;
             w45.Add(w46);
             Gtk.Box.BoxChild w57 = ((Gtk.Box.BoxChild)(w45[w46]));
             w57.Position      = 0;
             bindings["hbox1"] = w45;
             w42.Add(w45);
             Gtk.Box.BoxChild w58 = ((Gtk.Box.BoxChild)(w42[w45]));
             w58.Position      = 1;
             bindings["hbox3"] = w42;
             w12.Add(w42);
             Gtk.Box.BoxChild w59 = ((Gtk.Box.BoxChild)(w12[w42]));
             w59.PackType      = ((Gtk.PackType)(1));
             w59.Position      = 3;
             w59.Expand        = false;
             w59.Fill          = false;
             bindings["vbox1"] = w12;
             cobj.Add(w12);
             cobj.DefaultWidth  = 516;
             cobj.DefaultHeight = 270;
             bindings["LabCardCreator.MainWindow"] = cobj;
             w13.Show();
             w16.Show();
             w19.Show();
             w21.Show();
             w23.Show();
             w25.Show();
             w27.Show();
             w29.Show();
             w32.Show();
             w34.Show();
             w36.Show();
             w31.Show();
             w15.Show();
             w40.Show();
             w43.Show();
             w50.Show();
             w52.Show();
             w49.Show();
             w48.Show();
             w47.Show();
             w46.Show();
             w45.Show();
             w42.Show();
             w12.Show();
             cobj.Show();
             cobj.DeleteEvent += ((Gtk.DeleteEventHandler)(System.Delegate.CreateDelegate(typeof(Gtk.DeleteEventHandler), cobj, "OnDeleteEvent")));
             w5.Activated     += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnQuitActivated")));
             w6.Activated     += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnAboutActivated")));
             w7.Activated     += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnConnectActivated")));
             w8.Activated     += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnDisconnectActivated")));
             w9.Activated     += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnViewHexdumpActivated")));
             w10.Activated    += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnEraseActivated")));
             w47.Clicked      += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnWriteBtnClicked")));
         }
     }
     System.Reflection.FieldInfo[] fields = obj.GetType().GetFields(((System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic) | System.Reflection.BindingFlags.Instance));
     for (int n = 0; (n < fields.Length); n = (n + 1))
     {
         System.Reflection.FieldInfo field = fields[n];
         object widget = bindings[field.Name];
         if (((widget != null) && field.FieldType.IsInstanceOfType(widget)))
         {
             field.SetValue(obj, widget);
         }
     }
 }
Ejemplo n.º 8
0
        private void BuildNotebook()
        {
            var vBox = new Gtk.VBox( false, 5 );
            var hBox = new Gtk.HPaned();
            this.nbDocPages = new Gtk.Notebook();
            this.nbDocPages.SwitchPage += (o, args) => this.OnCurrentPageChanged();

            // Text view for the document
            var swScrollText = new Gtk.ScrolledWindow();
            this.txtDocument = new Gtk.TextView { Editable = false };
            swScrollText.AddWithViewport( this.txtDocument );
            this.txtDocument.FocusOutEvent += (o, args) => this.StoreQuestionText();

            // Test treeview
            this.tvDocument = new Gtk.TreeView();
            var swScroll = new Gtk.ScrolledWindow();
            var frmTest = new Gtk.Frame( "Test" );
            ( (Gtk.Label) frmTest.LabelWidget ).Markup = "<b>Test</b>";
            frmTest.Add( swScroll );
            swScroll.AddWithViewport( this.tvDocument );

            // Frame question
            var frmQuestion = new Gtk.Frame( "Question" );
            var swScrolledQuestion = new Gtk.ScrolledWindow();
            ( (Gtk.Label) frmQuestion.LabelWidget ).Markup = "<b>Question</b>";
            this.edQuestionText = new Gtk.TextView();
            this.edQuestionText.KeyReleaseEvent += (o, args) => this.OnQuestionTextChanged();
            swScrolledQuestion.AddWithViewport( edQuestionText );
            frmQuestion.Add( swScrolledQuestion );
            vBox.PackStart( frmQuestion, false, false, 5 );

            // Frame answers
            var bttAnswers = new Gtk.HButtonBox();
            var vBoxAnswers = new Gtk.VBox( false, 5 );
            var frmAnswer = new Gtk.Frame( "Answer" );
            var hBoxAnswers = new Gtk.HBox( false, 5 );
            var hBoxCorrect = new Gtk.HBox( false, 5 );
            var swScrolledAnswers = new Gtk.ScrolledWindow();
            ( (Gtk.Label) frmAnswer.LabelWidget ).Markup = "<b>Answer</b>";
            this.tvAnswers = new Gtk.TreeView();
            swScrolledAnswers.Add( this.tvAnswers );
            this.btAddAnswer = new Gtk.Button( new Gtk.Image( this.iconAdd.ScaleSimple( 16, 16, InterpType.Bilinear ) ) );
            this.btAddAnswer.Clicked += (sender, e) => this.AddAnswer();
            this.btRemoveAnswer = new Gtk.Button( new Gtk.Image( this.iconRemove.ScaleSimple( 16, 16, InterpType.Bilinear ) ) );
            this.btRemoveAnswer.Clicked += (sender, e) => this.RemoveAnswer();
            bttAnswers.Add( this.btAddAnswer );
            bttAnswers.Add( this.btRemoveAnswer );
            bttAnswers.Layout = Gtk.ButtonBoxStyle.Center;
            bttAnswers.Spacing = 20;
            hBoxAnswers.PackStart( swScrolledAnswers, true, true, 5 );
            vBoxAnswers.PackStart( hBoxAnswers, true, true, 5 );
            this.spNumberValidAnswer = new Gtk.SpinButton( 1, 20, 1 );
            this.spNumberValidAnswer.ValueChanged += (o, args) => this.OnCorrectAnswerChanged();
            hBoxCorrect.PackStart( new Gtk.Label( "Correct answer:" ), false, false, 5 );
            hBoxCorrect.PackStart( this.spNumberValidAnswer, false, false, 5 );
            hBoxCorrect.PackEnd( bttAnswers, false, false, 5 );
            vBoxAnswers.PackStart( hBoxCorrect, false, false, 5 );
            frmAnswer.Add( vBoxAnswers );
            vBox.PackStart( frmAnswer, true, true, 5 );

            // Layout
            hBox.Pack1( frmTest, false, false );
            hBox.Pack2( vBox, false, false );
            this.nbDocPages.AppendPage( hBox, new Gtk.Label( "Edit" ) );
            this.nbDocPages.AppendPage( swScrollText, new Gtk.Label( "Document" ) );
            this.nbDocPages.Page = 0;
        }
Ejemplo n.º 9
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Mono.Addins.Gui.AddinInstallerDialog
     this.Name           = "Mono.Addins.Gui.AddinInstallerDialog";
     this.Title          = Mono.Unix.Catalog.GetString("Extension Manager");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.BorderWidth    = ((uint)(6));
     this.HasSeparator   = false;
     // Internal child Mono.Addins.Gui.AddinInstallerDialog.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name        = "dialog1_VBox";
     w1.Spacing     = 6;
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.vbox2             = new Gtk.VBox();
     this.vbox2.Name        = "vbox2";
     this.vbox2.Spacing     = 6;
     this.vbox2.BorderWidth = ((uint)(6));
     // Container child vbox2.Gtk.Box+BoxChild
     this.label1           = new Gtk.Label();
     this.label1.Name      = "label1";
     this.label1.Xalign    = 0F;
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Additional extensions are required to perform this operation.");
     this.vbox2.Add(this.label1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.label1]));
     w2.Position = 0;
     w2.Expand   = false;
     w2.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.label2           = new Gtk.Label();
     this.label2.Name      = "label2";
     this.label2.Xalign    = 0F;
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("The following extensions will be installed:");
     this.vbox2.Add(this.label2);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.label2]));
     w3.Position = 1;
     w3.Expand   = false;
     w3.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.scrolledwindow1                  = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus         = true;
     this.scrolledwindow1.Name             = "scrolledwindow1";
     this.scrolledwindow1.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow1.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow1.ShadowType       = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     Gtk.Viewport w4 = new Gtk.Viewport();
     w4.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport.Gtk.Container+ContainerChild
     this.addinList           = new Gtk.Label();
     this.addinList.Name      = "addinList";
     this.addinList.Xpad      = 6;
     this.addinList.Ypad      = 6;
     this.addinList.Xalign    = 0F;
     this.addinList.Yalign    = 0F;
     this.addinList.LabelProp = "label3";
     w4.Add(this.addinList);
     this.scrolledwindow1.Add(w4);
     this.vbox2.Add(this.scrolledwindow1);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.scrolledwindow1]));
     w7.Position = 2;
     // Container child vbox2.Gtk.Box+BoxChild
     this.progressBar      = new Gtk.ProgressBar();
     this.progressBar.Name = "progressBar";
     this.progressBar.Text = "";
     this.vbox2.Add(this.progressBar);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox2[this.progressBar]));
     w8.Position = 3;
     w8.Expand   = false;
     w8.Fill     = false;
     w1.Add(this.vbox2);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(w1[this.vbox2]));
     w9.Position = 0;
     // Internal child Mono.Addins.Gui.AddinInstallerDialog.ActionArea
     Gtk.HButtonBox w10 = this.ActionArea;
     w10.Name        = "dialog1_ActionArea";
     w10.Spacing     = 10;
     w10.BorderWidth = ((uint)(6));
     w10.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonCancel              = new Gtk.Button();
     this.buttonCancel.CanDefault   = true;
     this.buttonCancel.CanFocus     = true;
     this.buttonCancel.Name         = "buttonCancel";
     this.buttonCancel.UseStock     = true;
     this.buttonCancel.UseUnderline = true;
     this.buttonCancel.Label        = "gtk-cancel";
     this.AddActionWidget(this.buttonCancel, -6);
     Gtk.ButtonBox.ButtonBoxChild w11 = ((Gtk.ButtonBox.ButtonBoxChild)(w10[this.buttonCancel]));
     w11.Expand = false;
     w11.Fill   = false;
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonOk              = new Gtk.Button();
     this.buttonOk.CanDefault   = true;
     this.buttonOk.CanFocus     = true;
     this.buttonOk.Name         = "buttonOk";
     this.buttonOk.UseStock     = true;
     this.buttonOk.UseUnderline = true;
     this.buttonOk.Label        = "gtk-ok";
     w10.Add(this.buttonOk);
     Gtk.ButtonBox.ButtonBoxChild w12 = ((Gtk.ButtonBox.ButtonBoxChild)(w10[this.buttonOk]));
     w12.Position = 1;
     w12.Expand   = false;
     w12.Fill     = false;
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 593;
     this.DefaultHeight = 433;
     this.progressBar.Hide();
     this.Show();
     this.buttonOk.Clicked += new System.EventHandler(this.OnButtonOkClicked);
 }