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;
        }
Esempio n. 2
0
    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;
    }