public void DisplayHandler(object sender, EventArgs args) { GraphView.GraphView view = new GraphView.GraphView(); MainWindow.AddChildWindow(view); view.Functions.Add(Item); view.Refresh(); }
public void DisplayHandler(object sender, EventArgs args) { DataDictionary.Functions.Function function = Item.Value as DataDictionary.Functions.Function; if (function != null) { GraphView.GraphView view = new GraphView.GraphView(); MainWindow.AddChildWindow(view); view.Functions.Add(function); view.Refresh(); } }
/// <summary> /// Displays the variable value /// </summary> /// <param name="sender"></param> /// <param name="args"></param> public void DisplayHandler(object sender, EventArgs args) { Function function = Item.Value as Function; if (function != null) { GraphView.GraphView view = new GraphView.GraphView(); GuiUtils.MdiWindow.AddChildWindow(view); view.Functions.Add(function); view.Refresh(); } else { StructureEditor.Window window = new StructureEditor.Window(); window.SetVariable(Item); if (GuiUtils.MdiWindow.DataDictionaryWindow != null) { GuiUtils.MdiWindow.AddChildWindow(window); window.Show(GuiUtils.MdiWindow.DataDictionaryWindow.Pane, DockAlignment.Right, 0.20); } } }