Exemplo n.º 1
0
        private void MenuItem_EditScene(object sender, RoutedEventArgs e)
        {
            // update the EditWorkflowManager here
            Object o = m_WorkflowListview.SelectedItem;

            if (o != null)
            {
                if (o is WorkingStep)
                {
                    WorkingStep step  = (WorkingStep)o;
                    Scene.Scene scene = new Scene.Scene();
                    if (m_ComboboxAdaptivityLevel.SelectedValue != null)
                    {
                        scene = step.getAdaptiveScene((int)m_ComboboxAdaptivityLevel.SelectedValue).Scene;
                        foreach (SceneItem itemIter in scene.Items)
                        {
                            itemIter.Touchy = true;
                        }
                    }
                    SceneManager.Instance.CurrentScene = scene;
                    SceneEditorDialog dlg = new SceneEditorDialog(scene);
                    dlg.Show();
                }
            }
        }
Exemplo n.º 2
0
        private void MenuItem_EditErrorScene(object sender, RoutedEventArgs e)
        {
            Object o = m_FailStatesListView.SelectedItem;

            if (o != null)
            {
                if (o is WorkflowFailState)
                {
                    WorkflowFailState fState = (WorkflowFailState)o;
                    Scene.Scene       scene  = fState.Scene;
                    foreach (SceneItem itemIter in scene.Items)
                    {
                        itemIter.Touchy = true;
                    }

                    SceneManager.Instance.CurrentScene = scene;
                    SceneEditorDialog dlg = new SceneEditorDialog(scene);
                    dlg.Show();
                }
            }
        }