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); }
protected BaseView(string resourceName, string _WidgetName, string nameSpace) : this(_WidgetName) { string fullName = nameSpace + '.' + resourceName; Assembly a = Assembly.GetCallingAssembly(); if (!System.IO.File.Exists(a.CodeBase + "/" + fullName)) { fullName = resourceName; } _Glade = new XML(Assembly.GetCallingAssembly(), resourceName, _WidgetName, null); Init(); }
protected GladeWidgetExtract(string resource_name, string dialog_name) : this(dialog_name) { // we must do it from *here* otherwise, we get this assembly, not the caller glade = new XML(Assembly.GetCallingAssembly(), resource_name, dialog_name, null); Init(); }