Icons for calculators were changed
This commit is contained in:
@@ -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 };
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -65,7 +65,6 @@
|
||||
<Button Margin="3" Content="Set Prestrain" ToolTip="Set strains as auto prestrain" Command="{Binding SetPrestrainCommand}"/>
|
||||
<Button Margin="3" Content="Anchorage" ToolTip="Set strains as auto prestrain" Command="{Binding ShowAnchorageCommand}"/>
|
||||
<Button Margin="3" Content="Geometry" ToolTip="Show Geometry Properties" Command="{Binding ShowGeometryResultCommand}"/>
|
||||
<Button Margin="3" Content="Acrc" ToolTip="Show crack width" Command="{Binding ShowCrackWidthResultCommand}"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</DockPanel>
|
||||
|
||||
@@ -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<INdmPrimitive> ndmPrimitives;
|
||||
private IEnumerable<INdmPrimitive> 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
|
||||
|
||||
Reference in New Issue
Block a user