/// <summary> /// Display the associated state diagram /// </summary> public void ViewDiagram() { StateDiagramWindow window = new StateDiagramWindow(); GuiUtils.MdiWindow.AddChildWindow(window); window.StatePanel.SetStateMachine(Item.StateMachine); window.Text = Item.Name + @" " + Resources.StateTreeNode_ViewDiagram_state_diagram; }
/// <summary> /// Executes the action requested by this tool strip button /// </summary> protected override void OnClick(EventArgs e) { StateDiagramWindow window = new StateDiagramWindow(); GuiUtils.MdiWindow.AddChildWindow(window); window.StatePanel.SetStateMachine(Variable); window.Text = Variable.Name + @" " + Resources.ToolStripShowStateMachine_OnClick_state_diagram; base.OnClick(e); }