private void StateStatus() { if (Status.Current() == 1) { _speak?.Sentence(Resources.ClearThroat + Resources.Network + Resources.Enabled); } else { _speak?.Sentence(Resources.ClearThroat + Resources.Network + Resources.Disabled); } }
private void SayStartWithWindowsSetting() { if (Settings.StartWithWindows) { _speak?.Sentence(Resources.ClearThroat + Resources.StartWithWindows); } else { _speak?.Sentence(Resources.ClearThroat + Resources.NotStartWithWindows); } }
internal static void Show(string text, Speak speak) { speak?.Sentence(Resources.ClearThroat + _caption); MessageBox.Show(text, _caption, MessageBoxButtons.OK, MessageBoxIcon.Information); }
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); }