private void NotifyIcon_MouseClick(object sender, System.Windows.Forms.MouseEventArgs e) { if ((e.Button == System.Windows.Forms.MouseButtons.Right) && (n.Visibility != Visibility.Visible)) { n.Left = SystemParameters.PrimaryScreenWidth; n.Visibility = Visibility.Visible; n.Activate(); n.Aud.Content = AC.Text; n.Serv.Content = serverText.Text; SettingsServer s = (SettingsServer)stgServer; if (s.notify.IsChecked.Value) { n.notif.Content = "Откл. уведомления"; } else { n.notif.Content = "Вкл. уведомления"; } n.Resources["SBrush"] = new SolidColorBrush(((SolidColorBrush)serverInd.Fill).Color); n.Activate(); } }
private void SettingsServer_TSM_Click(object sender, EventArgs e) { SettingsServer?.Invoke(); }