Ejemplo n.º 1
0
        void SceneExecCancel()
        {
            if (SceneAddMode)
            {
                SceneObjectButtonsVisibility = Visibility.Collapsed;
                SceneObjectPanelVisibility   = Visibility.Collapsed;
                SceneListCurtainVisibility   = Visibility.Collapsed;
                SceneListVisibility          = Visibility.Visible;
            }

            if (SceneEditMode)
            {
                _dataService.GetScene(SelectedScene.Id, (scene, error) =>
                {
                    if (error != null)
                    {
                        return;
                    }                                      // Report error here
                    CurrentScene = scene;
                });
                SceneObjectButtonsVisibility = Visibility.Collapsed;
                SceneListCurtainVisibility   = Visibility.Collapsed;
                SceneObjectCurtainVisibility = Visibility.Visible;
            }

            SceneAddMode  = false;
            SceneEditMode = false;
            SceneAddCmd.RaiseCanExecuteChanged();
            SceneEditCmd.RaiseCanExecuteChanged();
            SceneRemoveCmd.RaiseCanExecuteChanged();

            MessengerInstance.Send("", AppContext.UnBlockUIMsg);
        }
Ejemplo n.º 2
0
        void SceneExecEdit()
        {
            SceneEditMode = true;

            SceneAddCmd.RaiseCanExecuteChanged();
            SceneRemoveCmd.RaiseCanExecuteChanged();

            SceneObjectPanelVisibility   = Visibility.Visible;
            SceneObjectButtonsVisibility = Visibility.Visible;
            SceneObjectCurtainVisibility = Visibility.Collapsed;

            SceneListCurtainVisibility = Visibility.Visible;
            MessengerInstance.Send("", AppContext.BlockUIMsg);
        }