示例#1
0
文件: MainWindow.cs 项目: mru00/vocab
        void OnOpenLesson(object o, System.EventArgs args)
        {
            var args2  = (OpenLessonEventArgs)args;
            var lesson = args2.Node;
            var view   = new LessonView(lesson);

            view.ShowAll();
            view.closeEvent += OnCloseLesson;
            ShowAll();

            placeholderwidget1.Current = view;
            StatusBarText = "In Lesson '" + lesson.Description + "'";
            WindowTitle   = lesson.Description;
        }
示例#2
0
文件: MainWindow.cs 项目: mru00/vocab
        void OnOpenLesson(object o, System.EventArgs args)
        {
            var args2 = (OpenLessonEventArgs)args;
            var lesson = args2.Node;
            var view = new LessonView (lesson);
            view.ShowAll ();
            view.closeEvent += OnCloseLesson;
            ShowAll ();

            placeholderwidget1.Current = view;
            StatusBarText = "In Lesson '" + lesson.Description + "'";
            WindowTitle = lesson.Description;
        }