Material diagram Window was changed
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using StructureHelperCommon.Infrastructures.Enums;
|
||||
using StructureHelperCommon.Services.ColorServices;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Media;
|
||||
|
||||
namespace StructureHelperCommon.Infrastructures.Settings
|
||||
{
|
||||
public class CalcTermEntity
|
||||
{
|
||||
public CalcTerms CalcTerm { get; set; }
|
||||
public Color Color { get; set; }
|
||||
public string? Name { get; set; }
|
||||
public string ShortName { get; set; }
|
||||
public CalcTermEntity()
|
||||
{
|
||||
Color = ColorProcessor.GetRandomColor();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Media;
|
||||
|
||||
namespace StructureHelperCommon.Infrastructures.Settings
|
||||
{
|
||||
public class CalcTermList
|
||||
{
|
||||
public List<CalcTermEntity> CalcTerms { get; private set; }
|
||||
public CalcTermList()
|
||||
{
|
||||
CalcTerms = new List<CalcTermEntity>()
|
||||
{
|
||||
new CalcTermEntity()
|
||||
{CalcTerm = Enums.CalcTerms.ShortTerm,
|
||||
Name = "Short term",
|
||||
ShortName = "Short term",
|
||||
Color = (Color)ColorConverter.ConvertFromString("Red")},
|
||||
new CalcTermEntity()
|
||||
{CalcTerm = Enums.CalcTerms.LongTerm,
|
||||
Name = "Long term",
|
||||
ShortName = "Long term",
|
||||
Color = (Color)ColorConverter.ConvertFromString("Green")}
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using StructureHelperCommon.Infrastructures.Enums;
|
||||
using StructureHelperCommon.Services.ColorServices;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Media;
|
||||
|
||||
namespace StructureHelperCommon.Infrastructures.Settings
|
||||
{
|
||||
public class LimitStateEntity
|
||||
{
|
||||
public LimitStates LimitState { get; set; }
|
||||
public Color Color { get; set; }
|
||||
public string? Name { get; set; }
|
||||
public string ShortName { get; set; }
|
||||
public LimitStateEntity()
|
||||
{
|
||||
Color = ColorProcessor.GetRandomColor();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Media;
|
||||
|
||||
namespace StructureHelperCommon.Infrastructures.Settings
|
||||
{
|
||||
public class LimitStatesList
|
||||
{
|
||||
public List<LimitStateEntity> LimitStates { get; private set; }
|
||||
public LimitStatesList()
|
||||
{
|
||||
LimitStates = new List<LimitStateEntity>()
|
||||
{
|
||||
new LimitStateEntity()
|
||||
{LimitState = Enums.LimitStates.ULS,
|
||||
Name = "Ultimate limit state",
|
||||
ShortName = "ULS",
|
||||
Color = (Color)ColorConverter.ConvertFromString("Red")},
|
||||
new LimitStateEntity()
|
||||
{LimitState = Enums.LimitStates.SLS,
|
||||
Name = "Serviceability limit state",
|
||||
ShortName = "SLS",
|
||||
Color = (Color)ColorConverter.ConvertFromString("Green")}
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7,5 +7,7 @@ namespace StructureHelperCommon.Infrastructures.Settings
|
||||
{
|
||||
public static CodeTypes CodeType => CodeTypes.SP63_13330_2018;
|
||||
public static CrossSectionAxisNames CrossSectionAxisNames => new CrossSectionAxisNames();
|
||||
public static LimitStatesList LimitStatesList => new LimitStatesList();
|
||||
public static CalcTermList CalcTermList => new CalcTermList();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user