Ejemplo n.º 1
0
        public CreatorUIControl(string path, List <Question> questions)
        {
            InitializeComponent();
            controller = new CreatorController(this, path, questions);

            controller.Init();

            UIWindowTitle.SetSubtitle(path);
        }
Ejemplo n.º 2
0
        public CreatorUIControl()
        {
            InitializeComponent();
            controller = new CreatorController(this);

            controller.Init();

            UIWindowTitle.SetSubtitle("New ");
        }
Ejemplo n.º 3
0
 public void ShowFileIsDirty(string path)
 {
     if (path == null)
     {
         UIWindowTitle.SetSubtitle("New*");
     }
     else
     {
         UIWindowTitle.SetSubtitle(path + "*");
     }
 }
Ejemplo n.º 4
0
        public ExerciseUIControl(string path, Exercise exercise)
        {
            InitializeComponent();
            controller = new ExerciseController(exercise, this);
            controller.Initialize();

            durationSeconds = 0;

            timer          = new DispatcherTimer();
            timer.Interval = new TimeSpan(0, 0, 1);
            timer.Tick    += ExerciseDuration_Tick;

            timer.Start();

            UIWindowTitle.SetSubtitle(path);
        }
Ejemplo n.º 5
0
 public void ShowFileSavedSuccesfully(string path)
 {
     UIWindowTitle.SetSubtitle(path + " ");
     UIStatusBar.ShowText("File saved succesfully", UIStatusBar.LONG_MESSAGE);
 }