From 2a0704fc4f966b137b47b501ecea84ce69a2d2e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD=20=D0=98=D0=B2=D0=B0=D1=88=D0=BA?= =?UTF-8?q?=D0=B8=D0=BD?= Date: Tue, 29 Oct 2024 14:44:55 +0500 Subject: [PATCH] Function tree in process --- .../Windows/MainGraph/FormulaViewModel.cs | 1 + .../Windows/MainGraph/GraphView.xaml | 8 +- .../Windows/MainGraph/GraphView.xaml.cs | 5 ++ .../Windows/MainGraph/GraphViewModel.cs | 56 +++++-------- StructureHelper/Windows/TreeGraph/Database.cs | 52 +++++++++++++ .../Windows/TreeGraph/TreeGraphView.xaml | 25 ++++-- .../Windows/TreeGraph/TreeGraphViewModel.cs | 26 ++++--- .../TreeGraph/TreeViewItemViewModel.cs | 78 +++++++++++++++++++ .../Models/Functions/FormulaFunction.cs | 2 +- .../Models/Functions/TableFunction.cs | 11 +-- 10 files changed, 200 insertions(+), 64 deletions(-) create mode 100644 StructureHelper/Windows/TreeGraph/Database.cs create mode 100644 StructureHelper/Windows/TreeGraph/TreeViewItemViewModel.cs diff --git a/StructureHelper/Windows/MainGraph/FormulaViewModel.cs b/StructureHelper/Windows/MainGraph/FormulaViewModel.cs index b2a3e64..a511732 100644 --- a/StructureHelper/Windows/MainGraph/FormulaViewModel.cs +++ b/StructureHelper/Windows/MainGraph/FormulaViewModel.cs @@ -82,6 +82,7 @@ namespace StructureHelper.Windows.MainGraph public FormulaViewModel(FormulaFunction formulaFunction) { Function = formulaFunction; + Formula = formulaFunction.Formula; Name = Function.Name; Description = Function.Description; } diff --git a/StructureHelper/Windows/MainGraph/GraphView.xaml b/StructureHelper/Windows/MainGraph/GraphView.xaml index cfb841b..1806f76 100644 --- a/StructureHelper/Windows/MainGraph/GraphView.xaml +++ b/StructureHelper/Windows/MainGraph/GraphView.xaml @@ -1,4 +1,5 @@