예제 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="NuGenTaskListUI"/> class.
        /// </summary>
        public NuGenTaskListUI()
        {
            this.InitializeComponent();

            INuGenTimer timer = new NuGenTimer();

            timer.Interval = 500;

            NuGenDEHService service = new NuGenDEHService(timer);

            service.AddClient(_TaskEditBox);
            service.AddClient(_TaskTreeView);
        }
예제 #2
0
        public BreakTimerForm()
        {
            this.BackColor = SystemColors.Window;
            this.Font      = new Font("Verdana", 24, FontStyle.Bold);

            INuGenTimer timer = new NuGenTimer();

            timer.Interval = 1000;

            _countDownBlock = new NuGenCountDownBlock(
                new NuGenCountDownSpan(Math.Max(1, Math.Min(99, Settings.Default.Interval)), 0)
                , timer
                );

            _countDownBlock.Tick += _countDownBlock_Tick;
        }