예제 #1
0
 public void SetDeletionMgElem(ActionMgElemHandler handler)
 {
     if (deletionMgElem == null)
     {
         deletionMgElem = handler;
     }
 }
예제 #2
0
 public void SetAdditionMgElem(ActionMgElemHandler handler)
 {
     if (additionMgElem == null)
     {
         additionMgElem = handler;
     }
 }
예제 #3
0
        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);
        }