Added new convenience factory methods, FromStream and FromAssembly.
svn path=/trunk/gtk-sharp/; revision=16809
This commit is contained in:
parent
28a41ea3c7
commit
5482d6b526
2 changed files with 22 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2003-07-28 Duncan Mak <duncan@ximian.com>
|
||||
|
||||
* glade/XML.custom: Added new convenience factory methods,
|
||||
FromStream and FromAssembly.
|
||||
|
||||
2003-07-27 Duncan Mak <duncan@ximian.com>
|
||||
|
||||
* art/Makefile.in:
|
||||
|
|
|
@ -288,4 +288,20 @@
|
|||
{
|
||||
BindFields (null, type);
|
||||
}
|
||||
|
||||
|
||||
public static Glade.XML FromStream (System.IO.Stream stream, string root, string domain)
|
||||
{
|
||||
return new Glade.XML (stream, root, domain);
|
||||
}
|
||||
|
||||
public static Glade.XML FromAssembly (
|
||||
System.Reflection.Assembly assembly, string resource_name, string root, string domain)
|
||||
{
|
||||
return new Glade.XML (assembly, resource_name, root, domain);
|
||||
}
|
||||
|
||||
public static Glade.XML FromAssembly (string resource_name, string root, string domain)
|
||||
{
|
||||
return new Glade.XML (
|
||||
System.Reflection.Assembly.GetCallingAssembly (), resource_name, root, domain);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue