Example #1
0
        public OldControlPanel()
        {
            InitializeComponent();
            new ControlPanel().Show();
            this.timerView.IsPreviewMode = true;

            this.settings = TimerViewSettings.Default;
            this.commandIssuer = new TimerViewerCommandIssuer();
            this.timerForm = new PresentationTimerForm(this.commandIssuer);
            this.timerView.CommandIssuer = this.commandIssuer;
            this.timerView.DurationChanged += (_, e) =>
            {
                this.settings.Duration = e.Duration;
                this.OnSettingsChanged();
                this.commandIssuer.OnRefreshTimerDisplay();
            };

            this.Init();
            this.savedSettings = new Dictionary<string, TimerViewSettings>();
            this.LoadSavedTimers();
        }
Example #2
0
 public OldTimerView(TimerViewerCommandIssuer commandIssuer)
     : this()
 {
     this.CommandIssuer = commandIssuer;
 }
 public PresentationTimerForm(TimerViewerCommandIssuer commandIssuer)
     : this()
 {
     this.CommandIssuer = commandIssuer;
 }