public static void SelectProject(WebBrowser browser)
        {
            DirectoryInfo di = new DirectoryInfo(CommonDirectories.ConfigDirectories.GetDocumentsFolder());

            UXFramework.UXTable table = LibraryConverter.ListConverter.MakeUXProjectFiles(di);
            foreach (UXFramework.UXRow row in table.Children)
            {
                row.SetUpdate(x =>
                {
                    UXFramework.UXRow r = x as UXFramework.UXRow;
                    Project p           = r.Get("project").Value as Library.Project;
                    LibraryConverter.ListConverter.MakeUXhierarchyProject(p, p.Hierarchy);
                });
            }
            UXFramework.UXWindow win = UXFramework.Creation.CreateWindow(null, 1320, 700, table);
            win.Add(() =>
            {
                return(new Dictionary <string, dynamic>()
                {
                    { "BackColor", "Blue" },
                    { "ForeColor", "White" }
                });
            });

            win.Navigate(browser);
        }
        public void OpenProject()
        {
            UXFramework.UXTree          tree = CreateTreeView(0, currentProject, currentNode);
            UXFramework.UXBox           box  = UXFramework.Creation.CreateBox(null, 1120, 0);
            Marshalling.MarshallingHash hash = Marshalling.MarshallingHash.CreateMarshalling("left", () =>
            {
                return(new Dictionary <string, dynamic>()
                {
                    { "Width", 220 },
                    { "Constraint-Width", "FIXED" },
                });
            });
            UXFramework.UXCell c1 = UXFramework.Creation.CreateCell(hash, tree);
            hash = Marshalling.MarshallingHash.CreateMarshalling("right", () =>
            {
                return(new Dictionary <string, dynamic>()
                {
                    { "Width", 1100 },
                    { "Constraint-Width", "FIXED" },
                });
            });
            UXFramework.UXCell c2 = UXFramework.Creation.CreateCell(hash, box);

            hash = Marshalling.MarshallingHash.CreateMarshalling("row", () =>
            {
                return(new Dictionary <string, dynamic>()
                {
                    { "Disposition", "LEFT_TOP" },
                    { "align", "left" },
                    { "valign", "top" }
                });
            });
            UXFramework.UXRow   row   = UXFramework.Creation.CreateRow(2, hash, c1, c2);
            UXFramework.UXTable table = UXFramework.Creation.CreateTable("boxes", 2, 1, null, row);

            UXFramework.UXWindow win = UXFramework.UXWindow.CreateUXWindow("openProject", () =>
            {
                return(new Dictionary <string, dynamic>()
                {
                    { "Width", 1320 },
                    { "Height", 700 },
                    { "Constraint-Width", "FIXED" },
                    { "Constraint-Height", "FIXED" },
                    { "BackColor", "Blue" },
                    { "ForeColor", "White" },
                    { "children",
                      UXFramework.ChildCollection.CreateChildCollection("children", () => {
                            List <UXFramework.IUXObject> children = new List <UXFramework.IUXObject>();
                            children.Add(table);
                            return children;
                        }) }
                });
            });

            win.Navigate(this.web);
        }