public MarkManyController(int offset, int whichIndex, IReadOnlySnesRom data, IMarkManyView view) { Data = data; MarkManyView = view; MarkManyView.Controller = this; DataRange = new CorrectingRange(Data.GetRomSize()); DataRange.StartIndex = offset; DataRange.RangeCount = Math.Min( DesiredStartingCount, DataRange.MaxCount - DataRange.StartIndex ); MarkManyView.Column = whichIndex; }
public MarkManyController(int offset, MarkCommand.MarkManyProperty initialProperty, TDataSource data, IMarkManyView <TDataSource> view) { Data = data; MarkManyView = view; MarkManyView.Controller = this; DataRange = new CorrectingRange(Data.GetRomSize()); DataRange.StartIndex = offset; DataRange.RangeCount = Math.Min( DesiredStartingCount, DataRange.MaxCount - DataRange.StartIndex ); MarkManyView.Property = initialProperty; }