示例#1
0
 /// <summary>
 /// Display the associated state diagram
 /// </summary>
 public void ViewDiagram()
 {
     StateDiagram.StateDiagramWindow window = new StateDiagram.StateDiagramWindow();
     BaseTreeView.ParentForm.MDIWindow.AddChildWindow(window);
     window.SetStateMachine(Item);
     window.Text = Item.Name + " state diagram";
 }
        /// <summary>
        /// Handles a double click event on the control
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void HandleMouseDoubleClick(object sender, MouseEventArgs e)
        {
            SelectState();

            if (Panel != null)
            {
                StateDiagram.StateDiagramWindow window = new StateDiagram.StateDiagramWindow();
                Panel.MDIWindow.AddChildWindow(window);
                window.SetStateMachine(Panel.StateMachineVariable, State.StateMachine);
                window.Text = State.StateMachine.Name + " state diagram";
            }
        }
        /// <summary>
        /// Handles a double click event on the control
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void HandleMouseDoubleClick(object sender, MouseEventArgs e)
        {
            SelectState();

            if (Panel != null)
            {
                StateDiagram.StateDiagramWindow window = new StateDiagram.StateDiagramWindow();
                Panel.MDIWindow.AddChildWindow(window);
                window.SetStateMachine(Panel.StateMachineVariable, State.StateMachine);
                window.Text = State.StateMachine.Name + " state diagram";
            }
        }