diff --git a/StructureHelper/Infrastructure/Enums/CalculatorTypes.cs b/StructureHelper/Infrastructure/Enums/CalculatorTypes.cs
index 8383ce8..fd4e157 100644
--- a/StructureHelper/Infrastructure/Enums/CalculatorTypes.cs
+++ b/StructureHelper/Infrastructure/Enums/CalculatorTypes.cs
@@ -10,6 +10,7 @@ namespace StructureHelper.Infrastructure.Enums
{
ForceCalculator,
LimitCurveCalculator,
+ CrackCalculator,
FireCalculator
}
}
diff --git a/StructureHelper/Infrastructure/UI/Resources/ButtonStyles.xaml b/StructureHelper/Infrastructure/UI/Resources/ButtonStyles.xaml
index 82cf364..c1fe35d 100644
--- a/StructureHelper/Infrastructure/UI/Resources/ButtonStyles.xaml
+++ b/StructureHelper/Infrastructure/UI/Resources/ButtonStyles.xaml
@@ -1,8 +1,8 @@
-
+
+
@@ -81,12 +94,87 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/StructureHelper/Windows/CalculationWindows/CalculatorsViews/ForceCalculatorViews/ForceResultLogic/ShowCrackWidthLogic.cs b/StructureHelper/Windows/CalculationWindows/CalculatorsViews/ForceCalculatorViews/ForceResultLogic/ShowCrackWidthLogic.cs
index 4410f59..0a69aed 100644
--- a/StructureHelper/Windows/CalculationWindows/CalculatorsViews/ForceCalculatorViews/ForceResultLogic/ShowCrackWidthLogic.cs
+++ b/StructureHelper/Windows/CalculationWindows/CalculatorsViews/ForceCalculatorViews/ForceResultLogic/ShowCrackWidthLogic.cs
@@ -21,9 +21,9 @@ namespace StructureHelper.Windows.CalculationWindows.CalculatorsViews.ForceCalcu
{
var inputData = new CrackWidthCalculatorInputData()
{
- LimitState = LimitState,
- CalcTerm = CalcTerm,
- ForceTuple = ForceTuple,
+ //LimitState = LimitState,
+ //CalcTerm = CalcTerm,
+ LongTermTuple = ForceTuple,
NdmPrimitives = ndmPrimitives
};
var calculator = new CrackWidthCalculator() { InputData = inputData };
diff --git a/StructureHelper/Windows/CalculationWindows/CalculatorsViews/ForceCalculatorViews/ForceResultLogic/ValuePointDiagramLogic.cs b/StructureHelper/Windows/CalculationWindows/CalculatorsViews/ForceCalculatorViews/ForceResultLogic/ValuePointDiagramLogic.cs
index 9cdc5da..950c5b5 100644
--- a/StructureHelper/Windows/CalculationWindows/CalculatorsViews/ForceCalculatorViews/ForceResultLogic/ValuePointDiagramLogic.cs
+++ b/StructureHelper/Windows/CalculationWindows/CalculatorsViews/ForceCalculatorViews/ForceResultLogic/ValuePointDiagramLogic.cs
@@ -142,7 +142,7 @@ namespace StructureHelper.Windows.CalculationWindows.CalculatorsViews.ForceCalcu
var material = valuePoint.ndmPrimitive.HeadMaterial.GetLoaderMaterial(limitState, calcTerm);
var userPrestrain = valuePoint.ndmPrimitive.UsersPrestrain;
var autoPrestrain = valuePoint.ndmPrimitive.AutoPrestrain;
- var ndm = new RebarNdm()
+ var ndm = new Ndm()
{
Area = valuePoint.areaPoint.Area,
CenterX = valuePoint.areaPoint.Point.X,
diff --git a/StructureHelper/Windows/CalculationWindows/CalculatorsViews/ForceCalculatorViews/ForcesResultsView.xaml b/StructureHelper/Windows/CalculationWindows/CalculatorsViews/ForceCalculatorViews/ForcesResultsView.xaml
index 4b48b33..fc70c15 100644
--- a/StructureHelper/Windows/CalculationWindows/CalculatorsViews/ForceCalculatorViews/ForcesResultsView.xaml
+++ b/StructureHelper/Windows/CalculationWindows/CalculatorsViews/ForceCalculatorViews/ForcesResultsView.xaml
@@ -65,7 +65,6 @@
-
diff --git a/StructureHelper/Windows/CalculationWindows/CalculatorsViews/ForceCalculatorViews/ForcesResultsViewModel.cs b/StructureHelper/Windows/CalculationWindows/CalculatorsViews/ForceCalculatorViews/ForcesResultsViewModel.cs
index 18e9aeb..1264d96 100644
--- a/StructureHelper/Windows/CalculationWindows/CalculatorsViews/ForceCalculatorViews/ForcesResultsViewModel.cs
+++ b/StructureHelper/Windows/CalculationWindows/CalculatorsViews/ForceCalculatorViews/ForcesResultsViewModel.cs
@@ -43,7 +43,7 @@ namespace StructureHelper.Windows.CalculationWindows.CalculatorsViews.ForceCalcu
private ShowProgressLogic showProgressLogic;
private InteractionDiagramLogic interactionDiagramLogic;
private static readonly ShowCrackResultLogic showCrackResultLogic = new();
- private static readonly ShowCrackWidthLogic showCrackWidthLogic = new();
+ //private static readonly ShowCrackWidthLogic showCrackWidthLogic = new();
private IForcesResults forcesResults;
private IEnumerable ndmPrimitives;
private IEnumerable selectedNdmPrimitives;
@@ -225,22 +225,22 @@ namespace StructureHelper.Windows.CalculationWindows.CalculatorsViews.ForceCalcu
showCrackResultLogic.Show(SelectedResult.DesignForceTuple.Clone() as IDesignForceTuple);
}
- public ICommand ShowCrackWidthResultCommand
- {
- get => showCrackWidthResult ??= new RelayCommand(o =>
- {
- SafetyProcessor.RunSafeProcess(ShowCrackWidthResult);
- }, o => SelectedResult != null && SelectedResult.IsValid);
- }
+ //public ICommand ShowCrackWidthResultCommand
+ //{
+ // get => showCrackWidthResult ??= new RelayCommand(o =>
+ // {
+ // SafetyProcessor.RunSafeProcess(ShowCrackWidthResult);
+ // }, o => SelectedResult != null && SelectedResult.IsValid);
+ //}
- private void ShowCrackWidthResult()
- {
- showCrackWidthLogic.LimitState = SelectedResult.DesignForceTuple.LimitState;
- showCrackWidthLogic.CalcTerm = SelectedResult.DesignForceTuple.CalcTerm;
- showCrackWidthLogic.ForceTuple = SelectedResult.DesignForceTuple.ForceTuple;
- showCrackWidthLogic.ndmPrimitives = ndmPrimitives.ToList();
- showCrackWidthLogic.Show();
- }
+ //private void ShowCrackWidthResult()
+ //{
+ // showCrackWidthLogic.LimitState = SelectedResult.DesignForceTuple.LimitState;
+ // showCrackWidthLogic.CalcTerm = SelectedResult.DesignForceTuple.CalcTerm;
+ // showCrackWidthLogic.ForceTuple = SelectedResult.DesignForceTuple.ForceTuple;
+ // showCrackWidthLogic.ndmPrimitives = ndmPrimitives.ToList();
+ // showCrackWidthLogic.Show();
+ //}
public ICommand InterpolateCommand
{
get
diff --git a/StructureHelper/Windows/MainWindow/CrossSectionView.xaml b/StructureHelper/Windows/MainWindow/CrossSectionView.xaml
index f68f712..4d78355 100644
--- a/StructureHelper/Windows/MainWindow/CrossSectionView.xaml
+++ b/StructureHelper/Windows/MainWindow/CrossSectionView.xaml
@@ -79,7 +79,9 @@
@@ -194,11 +196,20 @@
-