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