Exemplo n.º 1
0
 public BindingContext(string source) : this()
 {
     LoadContext(
         new FileInfo(
             LuadicrousApplication
             .GetApplicationDirectoryRelativeTo(source)
             )
         );
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 public BindingContext(string source, string key, dynamic model) : this()
 {
     LoadContext(
         new FileInfo(
             LuadicrousApplication
             .GetApplicationDirectoryRelativeTo(source)
             ),
         key,
         model
         );
 }