public AnimationFrameArgs(ref IScreener screen) { if (screen == null) { return; } sc = screen; }
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); }
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); }
public void Dispose() { if (sc != null) { sc.cleanMemoryFootprint(); sc = null; } if (graphics != null) { graphics.Dispose(); graphics = null; } }
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; } }
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; } }
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); }
public AnimationFrameArgs(ref IScreener screen) { if (screen == null) return; sc = screen; }
public void Dispose() { if (sc != null) { sc.cleanMemoryFootprint(); sc = null; } if (graphics != null) { graphics.Dispose(); graphics = null; } }