public void LoadSelectedTemplate <Element>(LoadTemplate template, Element elem) where Element : DataGrid { var source = this.GetTemplate(template.Path, _logger); CallBackWindow.DGObserverCollection(elem, source); }
private void LoadTemplates <Element>(Element elem) where Element : ListBox { var path = "./xmls"; var source = Extensions.GetFiles(path); CallBackWindow.ListBoxOutput(elem, source); }
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); }