private void ExcludeMessage(object sender, RoutedEventArgs e) { var msgVm = (sender as FrameworkElement)?.DataContext as SystemMessageViewModel; if (HiddenMessages.Any(x => x.Opcode == msgVm?.Opcode)) { return; } HiddenMessages.Add(msgVm); ShowedMessages.Remove(msgVm); }
public void AddHiddenMessage(string message) { string result = FixMessage(message); if (result != string.Empty) { if (HiddenMessages.Contains(result) == false) { HiddenMessages.Add(message); } } }
public void AddHiddenMessage(string message) { message = message.Fix(); if (message.Length == 0) { return; } if (HiddenMessages.Contains(message)) { return; } HiddenMessages.Add(message); }
public void AddHiddenMessage(string message) { HiddenMessages.Add(message); }
public void HideMessages(string message) { HiddenMessages.Add(message); _formatChangedListener.OnChange(); }