Exemplo n.º 1
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();
 }
Exemplo n.º 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();
        }
Exemplo n.º 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();
        }