public BindingContext(string source) : this() { LoadContext( new FileInfo( LuadicrousApplication .GetApplicationDirectoryRelativeTo(source) ) ); }
public static Control LoadFromSource(string source, string key, dynamic model) { XmlDocument document = new XmlDocument(); document.Load(LuadicrousApplication.GetApplicationDirectoryRelativeTo(source)); var controlNode = document.DocumentElement; Control root = (Control)Control.Parse(controlNode, key, model).Element; root.AddChild(XmlSerializer.Serialize(controlNode.FirstChild, root)); return(root); }
public BindingContext(string source, string key, dynamic model) : this() { LoadContext( new FileInfo( LuadicrousApplication .GetApplicationDirectoryRelativeTo(source) ), key, model ); }