public void SetPaused(bool v) { ChatWindows.ToList().ForEach(w => { if (w.VM != null) { w.VM.Paused = v; } }); }
public void SetPaused(bool v, ChatMessage dc) { ChatWindows.ToList().ForEach(w => { if (w.VM?.CurrentTab?.Messages == null) { return; } if (w.VM.CurrentTab.Messages.Contains(dc)) { w.VM.Paused = v; } }); }
internal void SetPaused(bool v, ChatMessage dc) { ChatWindows.ToList().ForEach(w => { if (w.VM == null) { return; } if (w.VM.CurrentTab == null) { return; } if (w.VM.CurrentTab.Messages == null) { return; //whatever } if (w.VM.CurrentTab.Messages.Contains(dc)) { w.VM.Paused = v; } }); }