public ViewGui() : base("") { string fullName = "MainView.gui.glade"; Assembly a = Assembly.GetAssembly(this.GetType()); Console.WriteLine(a.CodeBase); if (!System.IO.File.Exists(a.CodeBase + "/" + fullName)) { fullName = "gui.glade"; } glade = new XML(Assembly.GetCallingAssembly(), fullName, "ViewGui", null); glade.Autoconnect(this); Window win = (Window)glade ["ViewGui"]; win.Maximize(); //Initialisation du menu principal MainUIManager uim = new MainUIManager(this); vboxMain.PackStart(uim.MenuBar, false, false, 0); ((Gtk.Box.BoxChild)(vboxMain[uim.MenuBar])).Position = 0; //Pagecontrol des vues notebookViews = new Notebook(); hpanedMain.Pack2(notebookViews, true, false); notebookViews.Show(); //notebookViews.RemovePage(0); }
public ViewGui() : base("") { string fullName = "MainView.gui.glade"; Assembly a = Assembly.GetAssembly(this.GetType()); Console.WriteLine(a.CodeBase); if (!System.IO.File.Exists(a.CodeBase + "/" + fullName)) fullName = "gui.glade"; glade = new XML (Assembly.GetCallingAssembly (), fullName, "ViewGui", null); glade.Autoconnect (this); Window win = (Window) glade ["ViewGui"]; win.Maximize(); //Initialisation du menu principal MainUIManager uim = new MainUIManager (this); vboxMain.PackStart (uim.MenuBar, false, false, 0); ((Gtk.Box.BoxChild)(vboxMain[uim.MenuBar])).Position = 0; //Pagecontrol des vues notebookViews = new Notebook (); hpanedMain.Pack2 (notebookViews, true, false); notebookViews.Show (); //notebookViews.RemovePage(0); }