public DrawCell_FillRectIfSelected(ISelectionInfo sel, Color clr) { _clr = clr; _sel = sel; sel.SelectionChanged += (object sender, SelectionChangedEventArgs e) => { changed(this, null); // TODO we wouldn't necessary have to pass null here? more specific info. }; }
public virtual void Choose <T>(ISelectionInfo <T> selectionInfo) { if (selectionInfo.IsAutomatic) { return; } foreach (var choice in ChoicesToMake) { selectionInfo.Add((T)choice); } }
public IEnumerable <ActionInfo> CreateAction(ISource source, ISelectionInfo <ITarget> targets, GameState gameState) { return(targets.ConfirmedSelection.Select(target => GetActionInfo(source, target, gameState))); }