Пример #1
0
 public AnimationFrameArgs(ref IScreener screen)
 {
     if (screen == null)
     {
         return;
     }
     sc = screen;
 }
Пример #2
0
 public Projector(IScreener screen,IAnimation animation)
 {
     // Check if we don't have null value.
     if (screen == null || animation == null) return;
     _screen = screen;
     _animation = animation;
     _screen.setPadding(_animation.getPadding(_screen.getHostSize()));
      _wait = new ManualResetEvent(false);
 }
Пример #3
0
 public Projector(IScreener screen, IAnimation animation)
 {
     // Check if we don't have null value.
     if (screen == null || animation == null)
     {
         return;
     }
     _screen    = screen;
     _animation = animation;
     _screen.setPadding(_animation.getPadding(_screen.getHostSize()));
     _wait = new ManualResetEvent(false);
 }
Пример #4
0
 public void Dispose()
 {
     if (sc != null)
     {
         sc.cleanMemoryFootprint();
         sc = null;
     }
     if (graphics != null)
     {
         graphics.Dispose();
         graphics = null;
     }
 }
Пример #5
0
 public void CleanMemoryFootprints()
 {
     if (_screen != null)
     {
         _screen.cleanMemoryFootprint();
         _screen = null;
     }
     if (_animation != null)
     {
         _animation.cleanMemoryFootprint();
         _animation = null;
     }
     if (_wait != null)
     {
         _wait = null;
     }
     if (e != null)
     {
         e.Dispose();
         e = null;
     }
 }
Пример #6
0
 public void CleanMemoryFootprints()
 {
     if (_screen != null)
     {
         _screen.cleanMemoryFootprint();
         _screen = null;
     }
        if (_animation != null)
        {
        _animation.cleanMemoryFootprint();
        _animation = null;
        }
        if (_wait != null)
        {
        _wait  = null;
        }
        if (e != null)
        {
        e.Dispose();
        e = null;
        }
 }
Пример #7
0
 private bool ManageColumns(IScreener screener, string columns, string columnToAdd, string columnToRemove, out List <string> columnsTodisplay, string columnToken)
 {
     columnsTodisplay = new List <string>();
     if (!string.IsNullOrEmpty(columnToAdd) && !ColumnConstants.Columns.ContainsKey(columnToAdd))
     {
         return(false);
     }
     if (!string.IsNullOrEmpty(columnToRemove) && !ColumnConstants.Columns.ContainsKey(columnToRemove))
     {
         return(false);
     }
     if (string.IsNullOrEmpty(columns) && string.IsNullOrEmpty(columnToken))
     {
         columnsTodisplay = screener.Columns;
     }
     else
     {
         if (!string.IsNullOrEmpty(columns))
         {
             var currentColumns = columns.Split(',').ToList();
             if (currentColumns.Any(x => !ColumnConstants.Columns.ContainsKey(x)))
             {
                 return(false);
             }
             columnsTodisplay.AddRange(currentColumns);
         }
     }
     if (!string.IsNullOrEmpty(columnToAdd) && !columnsTodisplay.Contains(columnToAdd))
     {
         columnsTodisplay.Add(columnToAdd);
     }
     if (!string.IsNullOrEmpty(columnToRemove) && columnsTodisplay.Contains(columnToRemove))
     {
         columnsTodisplay.Remove(columnToRemove);
     }
     return(true);
 }
Пример #8
0
 public AnimationFrameArgs(ref IScreener screen)
 {
     if (screen == null) return;
     sc = screen;
 }
Пример #9
0
 public void Dispose()
 {
     if (sc != null)
     {
         sc.cleanMemoryFootprint();
         sc = null;
     }
     if (graphics != null)
     {
         graphics.Dispose();
         graphics = null;
     }
 }