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