Exemple #1
0
 public void SetPaused(bool v)
 {
     ChatWindows.ToList().ForEach(w =>
     {
         if (w.VM != null)
         {
             w.VM.Paused = v;
         }
     });
 }
Exemple #2
0
 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;
         }
     });
 }
Exemple #3
0
 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;
         }
     });
 }