Example #1
0
        public void LoadSelectedTemplate <Element>(LoadTemplate template, Element elem)
            where Element : DataGrid
        {
            var source = this.GetTemplate(template.Path, _logger);

            CallBackWindow.DGObserverCollection(elem, source);
        }
Example #2
0
        private void LoadTemplates <Element>(Element elem)
            where Element : ListBox
        {
            var path   = "./xmls";
            var source = Extensions.GetFiles(path);

            CallBackWindow.ListBoxOutput(elem, source);
        }
Example #3
0
        private void NewTemplate <Element, Source>(Element elem, Source source)
            where Element : DataGrid
            where Source : Template
        {
            var sources = new ObservableCollection <Template>();

            foreach (var row in elem.Items)
            {
                sources.Add((Template)row);
            }

            sources.Add(source);

            CallBackWindow.DGObserverCollection(elem, sources);
        }