Exemplo n.º 1
0
 internal TaskbarGui(int week = 1)
 {
     _speak             = new Speak();
     _contextMenu       = new WeekNumberContextMenu(ref _speak);
     _notifyIcon        = GetNotifyIcon(_contextMenu.ContextMenu);
     _notifyIcon.Click += NotifyIcon_Click;
     UpdateIcon(week, ref _notifyIcon);
     SayWeek();
 }
Exemplo n.º 2
0
 internal static void Show(string text, Exception ex = null, Speak speak = null)
 {
     speak?.Sentence(Resources.ClearThroat + text);
     MessageBox.Show(ex is null ? text : $"{text}\r\n{ex}", _caption,
                     MessageBoxButtons.OK, ex is null ? MessageBoxIcon.Information : MessageBoxIcon.Error);
 }
Exemplo n.º 3
0
 internal static void Show(string text, Speak speak)
 {
     speak?.Sentence(Resources.ClearThroat + _caption);
     MessageBox.Show(text, _caption,
                     MessageBoxButtons.OK, MessageBoxIcon.Information);
 }
 internal WeekNumberContextMenu(ref Speak speak)
 {
     _speak = speak;
     CreateContextMenu();
 }