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();
 }
示例#2
0
        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();
        }
示例#3
0
        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();
        }