public CellEventInfo(SudokuGridPosition ChangePosition, CellEventType ChangeType, params int[] ChangedValues)
        {
            GridPosition = ChangePosition;
            EventType = ChangeType;
            Values = new EventValues(ChangedValues);

            Column = ChangePosition.Column;
            Row = ChangePosition.Row;
        }
        public CellEventInfo(SudokuGridPosition ChangePosition, CellEventType ChangeType, params int[] ChangedValues)
        {
            GridPosition = ChangePosition;
            EventType    = ChangeType;
            Values       = new EventValues(ChangedValues);

            Column = ChangePosition.Column;
            Row    = ChangePosition.Row;
        }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the CellEventArgs class with 
 /// the specified Cell source, column index, row index and event type
 /// </summary>
 /// <param name="source">The Cell that Raised the event</param>
 /// <param name="column">The Column index of the Cell</param>
 /// <param name="row">The Row index of the Cell</param>
 /// <param name="eventType">The type of event</param>
 /// <param name="oldValue">The old value of the property</param>
 public CellEventArgs(Cell source, int column, int row, CellEventType eventType, object oldValue)
     : base(source, column, row)
 {
     this.eventType = eventType;
     this.oldValue = oldValue;
 }
示例#4
0
 /// <summary>
 /// Initializes a new instance of the CellEventArgs class with 
 /// the specified Cell source and event type
 /// </summary>
 /// <param name="source">The Cell that Raised the event</param>
 /// <param name="eventType">The type of event</param>
 /// <param name="oldValue">The old value of the property</param>
 public CellEventArgs(Cell source, CellEventType eventType, object oldValue)
     : this(source, -1, -1, eventType, oldValue)
 {
 }
示例#5
0
 /// <summary>
 /// Initializes a new instance of the CellEventArgs class with
 /// the specified Cell source, column index, row index and event type
 /// </summary>
 /// <param name="source">The Cell that Raised the event</param>
 /// <param name="column">The Column index of the Cell</param>
 /// <param name="row">The Row index of the Cell</param>
 /// <param name="eventType">The type of event</param>
 /// <param name="oldValue">The old value of the property</param>
 public CellEventArgs(Cell source, int column, int row, CellEventType eventType, object oldValue) : base(source, column, row)
 {
     this.eventType = eventType;
     this.oldValue  = oldValue;
 }
示例#6
0
 /// <summary>
 /// Initializes a new instance of the CellEventArgs class with
 /// the specified Cell source and event type
 /// </summary>
 /// <param name="source">The Cell that Raised the event</param>
 /// <param name="eventType">The type of event</param>
 /// <param name="oldValue">The old value of the property</param>
 public CellEventArgs(Cell source, CellEventType eventType, object oldValue) : this(source, -1, -1, eventType, oldValue)
 {
 }