public static void RunCatalogWindow() { var globalData = CourseTreeData.Load(currentDirectory); var model = new Tuto.TreeEditor.PublishViewModel(globalData); var wnd = new Tuto.TreeEditor.PublishPanel(); wnd.DataContext = model; wnd.Closed += wnd_Closed; Application.MainWindow.Hide(); wnd.Show(); }
public static void RunCatalogWindow() { var videos = publishingModel.NonDistributedVideos.Concat(publishingModel.Videos).ToList(); var globalData = new CourseTreeData { Structure = publishingModel.CourseStructure, Videos = videos }; var model = new Tuto.TreeEditor.PublishViewModel(globalData); var wnd = new Tuto.TreeEditor.PublishPanel(); wnd.DataContext = model; wnd.Closed += wnd_Closed; Application.MainWindow.Hide(); wnd.Show(); }