public void SetFillingGrid(FillingGridHandler handler) { if (fillingGrid == null) { fillingGrid = handler; } }
public LevelContentViewModel() { dialogManager = new DialogManager(); controlCreator = new ControlCreator(); additionMgElem = null; deletionMgElem = null; cleansingMgElems = null; fillingGrid = null; grid = null; mgElemsStack = null; imagesSelect = new List <MgElemControl>(); AddMgElem = new Command(OnAddMgElemExecute); RemoveMgElem = new Command(OnRemoveMgElemExecute); FillAllVoids = new Command(OnFillAllVoidsExecute); ClearField = new Command(OnClearFieldExecute); BindStackPanel = new Command <StackPanel>(OnBindStackPanelExecute); BindGrid = new Command <Grid>(OnBindGridExecute); }