public AnalysisLaminateViewModel() { CreateCommand = new RelayCommand(Create); ImportCommand = new RelayCommand(Import); ModifyCommand = new RelayCommand(Modify); DeleteCommand = new RelayCommand(Delete); IconCreate = new IConActionViewModel { IconSource = "/Images/Icons/creat_.png", IconHoverSource = "/Images/Icons/creat.png", IconSelectSource = "/Images/Icons/creat_select.png", ActionText = "Create", IsAction = AnalysisAction.Create }; IconImport = new IConActionViewModel { IconSource = "/Images/Icons/import_.png", IconHoverSource = "/Images/Icons/import.png", IconSelectSource = "/Images/Icons/import_select.png", ActionText = "Import", IsAction = AnalysisAction.Import }; IconModify = new IConActionViewModel { IconSource = "/Images/Icons/modify_.png", IconHoverSource = "/Images/Icons/modify.png", IconSelectSource = "/Images/Icons/modify_select.png", ActionText = "Modify", IsAction = AnalysisAction.Modify }; IconDelete = new IConActionViewModel { IconSource = "/Images/Icons/delete_.png", IconHoverSource = "/Images/Icons/delete.png", IconSelectSource = "/Images/Icons/delete_select.png", ActionText = "Delete", IsAction = AnalysisAction.Delete }; }
/// <summary> /// Default Constructor /// </summary> public AnalysisMaterialViewModel() { CreateCommand = new RelayCommand(Create); ImportCommand = new RelayCommand(Import); ModifyCommand = new RelayCommand(Modify); DeleteCommand = new RelayCommand(Delete); MaterialObject = AnalysisMaterialObject.Ply; MaterialMethod = AnalysisMaterialMethod.UserDefined; IconCreate = new IConActionViewModel { IconSource = "/Images/Icons/creat_.png", IconHoverSource = "/Images/Icons/creat.png", IconSelectSource = "/Images/Icons/creat_select.png", ActionText = "Create", IsAction = AnalysisAction.Create }; IconImport = new IConActionViewModel { IconSource = "/Images/Icons/import_.png", IconHoverSource = "/Images/Icons/import.png", IconSelectSource = "/Images/Icons/import_select.png", ActionText = "Import", IsAction = AnalysisAction.Import }; IconModify = new IConActionViewModel { IconSource = "/Images/Icons/modify_.png", IconHoverSource = "/Images/Icons/modify.png", IconSelectSource = "/Images/Icons/modify_select.png", ActionText = "Modify", IsAction = AnalysisAction.Modify }; IconDelete = new IConActionViewModel { IconSource = "/Images/Icons/delete_.png", IconHoverSource = "/Images/Icons/delete.png", IconSelectSource = "/Images/Icons/delete_select.png", ActionText = "Delete", IsAction = AnalysisAction.Delete }; Items = new ObservableCollection <AnalysisMaterialItemViewModel> { new AnalysisMaterialItemViewModel { Name = "Material item 01", // Linear Elastics Elastic_Modulus_11 = new TextNumericViewModel { Label = "Elastic Modulus 11", OriginalText = "0.0", NumericText = "0.0", Unit = "[MPa]" }, Elastic_Modulus_22 = new TextNumericViewModel { Label = "Elastic Modulus 22", OriginalText = "0.0", NumericText = "0.0", Unit = "[MPa]" }, Poisson_Ration_12 = new TextNumericViewModel { Label = "Poisson Ration 12", OriginalText = "0.0", NumericText = "0.0", Unit = "[MPa]" }, Shear_Modulus_12 = new TextNumericViewModel { Label = "Shear Modulus 12", OriginalText = "0.0", NumericText = "0.0", Unit = "[MPa]" }, Thickness_tply = new TextNumericViewModel { Label = "Thickness, tply", OriginalText = "0.0", NumericText = "0.0", Unit = "[mm]" }, //Failure_Stress Tension_Stress_Limit_11 = new TextNumericViewModel { Label = "Tension Stress Limit 11", OriginalText = "0.0", NumericText = "0.0", Unit = "[MPa]" }, Tension_Stress_Limit_22 = new TextNumericViewModel { Label = "Tension Stress Limit 22", OriginalText = "0.0", NumericText = "0.0", Unit = "[MPa]" }, Compress_Stress_Limit_11 = new TextNumericViewModel { Label = "Compress Stress Limit 11", OriginalText = "0.0", NumericText = "0.0", Unit = "[MPa]" }, Compress_Stress_Limit_22 = new TextNumericViewModel { Label = "Compress Stress Limit 22", OriginalText = "0.0", NumericText = "0.0", Unit = "[MPa]" }, Shear_Stress_Limit_12 = new TextNumericViewModel { Label = "Shear Stress Limit 12", OriginalText = "0.0", NumericText = "0.0", Unit = "[MPa]" }, Tension_Stress_Limit_33 = new TextNumericViewModel { Label = "Tension Stress Limit 33", OriginalText = "0.0", NumericText = "0.0", Unit = "[MPa]" }, Compress_Stress_Limit_33 = new TextNumericViewModel { Label = "Compress Stress Limit 33", OriginalText = "0.0", NumericText = "0.0", Unit = "[MPa]" }, Interlaminate_Shear_Stress_Limit_13 = new TextNumericViewModel { Label = "Inter-laminate Shear Stress Limit 13", NumericText = "0.0", OriginalText = "0.0", Unit = "[MPa]" }, //Failure_Strain Tension_Strain_Limit_11 = new TextNumericViewModel { Label = "Tension Strain Limit 11", OriginalText = "0.0", NumericText = "0.0", Unit = "[mm/mm]" }, Tension_Strain_Limit_22 = new TextNumericViewModel { Label = "Tension Strain Limit 22", OriginalText = "0.0", NumericText = "0.0", Unit = "[mm/mm]" }, Compress_Strain_Limit_11 = new TextNumericViewModel { Label = "Compress Strain Limit 11", OriginalText = "0.0", NumericText = "0.0", Unit = "[mm/mm]" }, Compress_Strain_Limit_22 = new TextNumericViewModel { Label = "Compress Strain Limit 22", OriginalText = "0.0", NumericText = "0.0", Unit = "[mm/mm]" }, Shear_Strain_Limit_12 = new TextNumericViewModel { Label = "Shear Strain Limit 12", OriginalText = "0.0", NumericText = "0.0", Unit = "[mm/mm]" }, IsSelected = true, IsExpanded = false, IsEdited = false, }, new AnalysisMaterialItemViewModel { Name = "Material item 02", // Linear Elastics Elastic_Modulus_11 = new TextNumericViewModel { Label = "Elastic Modulus 11", OriginalText = "0.0", NumericText = "0.0", Unit = "[MPa]" }, Elastic_Modulus_22 = new TextNumericViewModel { Label = "Elastic Modulus 22", OriginalText = "0.0", NumericText = "0.0", Unit = "[MPa]" }, Poisson_Ration_12 = new TextNumericViewModel { Label = "Poisson Ration 12", OriginalText = "0.0", NumericText = "0.0", Unit = "[MPa]" }, Shear_Modulus_12 = new TextNumericViewModel { Label = "Shear Modulus 12", OriginalText = "0.0", NumericText = "0.0", Unit = "[MPa]" }, Thickness_tply = new TextNumericViewModel { Label = "Thickness, tply", OriginalText = "0.0", NumericText = "0.0", Unit = "[mm]" }, //Failure_Stress Tension_Stress_Limit_11 = new TextNumericViewModel { Label = "Tension Stress Limit 11", OriginalText = "0.0", NumericText = "0.0", Unit = "[MPa]" }, Tension_Stress_Limit_22 = new TextNumericViewModel { Label = "Tension Stress Limit 22", OriginalText = "0.0", NumericText = "0.0", Unit = "[MPa]" }, Compress_Stress_Limit_11 = new TextNumericViewModel { Label = "Compress Stress Limit 11", OriginalText = "0.0", NumericText = "0.0", Unit = "[MPa]" }, Compress_Stress_Limit_22 = new TextNumericViewModel { Label = "Compress Stress Limit 22", OriginalText = "0.0", NumericText = "0.0", Unit = "[MPa]" }, Shear_Stress_Limit_12 = new TextNumericViewModel { Label = "Shear Stress Limit 12", OriginalText = "0.0", NumericText = "0.0", Unit = "[MPa]" }, Tension_Stress_Limit_33 = new TextNumericViewModel { Label = "Tension Stress Limit 33", OriginalText = "0.0", NumericText = "0.0", Unit = "[MPa]" }, Compress_Stress_Limit_33 = new TextNumericViewModel { Label = "Compress Stress Limit 33", OriginalText = "0.0", NumericText = "0.0", Unit = "[MPa]" }, Interlaminate_Shear_Stress_Limit_13 = new TextNumericViewModel { Label = "Inter-laminate Shear Stress Limit 13", OriginalText = "0.0", NumericText = "0.0", Unit = "[MPa]" }, //Failure_Strain Tension_Strain_Limit_11 = new TextNumericViewModel { Label = "Tension Strain Limit 11", OriginalText = "0.0", NumericText = "0.0", Unit = "[mm/mm]" }, Tension_Strain_Limit_22 = new TextNumericViewModel { Label = "Tension Strain Limit 22", OriginalText = "0.0", NumericText = "0.0", Unit = "[mm/mm]" }, Compress_Strain_Limit_11 = new TextNumericViewModel { Label = "Compress Strain Limit 11", OriginalText = "0.0", NumericText = "0.0", Unit = "[mm/mm]" }, Compress_Strain_Limit_22 = new TextNumericViewModel { Label = "Compress Strain Limit 22", OriginalText = "0.0", NumericText = "0.0", Unit = "[mm/mm]" }, Shear_Strain_Limit_12 = new TextNumericViewModel { Label = "Shear Strain Limit 12", OriginalText = "0.0", NumericText = "0.0", Unit = "[mm/mm]" }, IsSelected = true, IsExpanded = false, IsEdited = false, } }; }
/// <summary> /// Default constructor /// </summary> public AnalysisListDesignModel() { Items = new List <AnalysisListItemViewModel> { new AnalysisListItemViewModel { Initials = "Plain", AnalysisName = "Plain Strength Analysis", ProfilePictureRGB = "3099c5", IconSource = "/Images/Icons/[email protected]", Category = AnalysisCategory.PlainStrengthAnalysis, LibraryItem = false, IsSelect = true }, new AnalysisListItemViewModel { Initials = "Composite", AnalysisName = "Composite Radius Analysis", ProfilePictureRGB = "fe4503", IconSource = "/Images/Icons/[email protected]", Category = AnalysisCategory.CompositeRadiusAnalysis, LibraryItem = false, IsSelect = false }, new AnalysisListItemViewModel { Initials = "Sandwich", AnalysisName = "Sandwich Panel Analysis", ProfilePictureRGB = "00d405", IconSource = "/Images/Icons/[email protected]", Category = AnalysisCategory.SandwichPanelAnalysis, LibraryItem = false, IsSelect = false }, new AnalysisListItemViewModel { Initials = "Joint", AnalysisName = "Joint Analysis", ProfilePictureRGB = "ffa800", IconSource = "/Images/Icons/[email protected]", Category = AnalysisCategory.JointAnalysis, LibraryItem = false, IsSelect = false }, }; AnalysisDatas = new List <AnalysisListCategoryViewModel> { new AnalysisListCategoryViewModel { Name = "Analysis Data", CanExpand = true, IsExpanded = true }, new AnalysisListCategoryViewModel { Name = "Plain Analysis 01", CanExpand = false, IsExpanded = false }, new AnalysisListCategoryViewModel { Name = "Plain Analysis 02", CanExpand = false, IsExpanded = false }, new AnalysisListCategoryViewModel { Name = "Plain Analysis 03", CanExpand = false, IsExpanded = false }, new AnalysisListCategoryViewModel { Name = "Analysis Execution", CanExpand = true, IsExpanded = true }, new AnalysisListCategoryViewModel { Name = "Analysis Parameter", CanExpand = false, IsExpanded = false }, new AnalysisListCategoryViewModel { Name = "Analysis Result", CanExpand = false, IsExpanded = false }, }; Create = new IConActionViewModel { IconSource = "/Images/Icons/creat_.png", IconHoverSource = "/Images/Icons/creat.png", IconSelectSource = "/Images/Icons/creat_select.png", ActionText = "Create", IsAction = AnalysisAction.Create }; Import = new IConActionViewModel { IconSource = "/Images/Icons/import_.png", IconHoverSource = "/Images/Icons/import.png", IconSelectSource = "/Images/Icons/import_select.png", ActionText = "Import", IsAction = AnalysisAction.Import }; Modify = new IConActionViewModel { IconSource = "/Images/Icons/modify_.png", IconHoverSource = "/Images/Icons/modify.png", IconSelectSource = "/Images/Icons/modify_select.png", ActionText = "Modify", IsAction = AnalysisAction.Modify }; Delete = new IConActionViewModel { IconSource = "/Images/Icons/delete_.png", IconHoverSource = "/Images/Icons/delete.png", IconSelectSource = "/Images/Icons/delete_select.png", ActionText = "Delete", IsAction = AnalysisAction.Delete }; }
/// <summary> /// Default constructor /// </summary> public AnalysisWideListDesignModel() { AnalysisDatas = new List <AnalysisListCategoryViewModel> { new AnalysisListCategoryViewModel { Name = "Plain Analysis 01", CanExpand = false, IsExpanded = false }, new AnalysisListCategoryViewModel { Name = "Plain Analysis 02", CanExpand = false, IsExpanded = false }, new AnalysisListCategoryViewModel { Name = "Plain Analysis 03", CanExpand = false, IsExpanded = false }, }; AnalysisExecutions = new List <AnalysisListCategoryViewModel> { new AnalysisListCategoryViewModel { Name = "Analysis Parameter", CanExpand = false, IsExpanded = false }, new AnalysisListCategoryViewModel { Name = "Analysis Result", CanExpand = false, IsExpanded = false }, }; Create = new IConActionViewModel { IconSource = "/Images/Icons/creat_.png", IconHoverSource = "/Images/Icons/creat.png", IconSelectSource = "/Images/Icons/creat_select.png", ActionText = "Create", IsAction = AnalysisAction.Create }; Import = new IConActionViewModel { IconSource = "/Images/Icons/import_.png", IconHoverSource = "/Images/Icons/import.png", IconSelectSource = "/Images/Icons/import_select.png", ActionText = "Import", IsAction = AnalysisAction.Import }; Modify = new IConActionViewModel { IconSource = "/Images/Icons/modify_.png", IconHoverSource = "/Images/Icons/modify.png", IconSelectSource = "/Images/Icons/modify_select.png", ActionText = "Modify", IsAction = AnalysisAction.Modify }; Delete = new IConActionViewModel { IconSource = "/Images/Icons/delete_.png", IconHoverSource = "/Images/Icons/delete.png", IconSelectSource = "/Images/Icons/delete_select.png", ActionText = "Modify", IsAction = AnalysisAction.Delete }; }
/// <summary> /// Default constructor /// </summary> public LibraryListDesignModel() { Items = new List <AnalysisListItemViewModel> { new AnalysisListItemViewModel { Initials = "Material", AnalysisName = "Material System Library", ProfilePictureRGB = "3099c5", IconSource = "/Images/Icons/[email protected]", Category = AnalysisCategory.Materials, LibraryItem = true, IsSelect = true }, new AnalysisListItemViewModel { Initials = "Laminate", AnalysisName = "Laminate System Library", ProfilePictureRGB = "fe4503", IconSource = "/Images/Icons/[email protected]", Category = AnalysisCategory.Laminate, LibraryItem = true, IsSelect = false }, new AnalysisListItemViewModel { Initials = "Fastener", AnalysisName = "Fastener System Library", ProfilePictureRGB = "00d405", IconSource = "/Images/Icons/[email protected]", Category = AnalysisCategory.Fastener, LibraryItem = true, IsSelect = false } }; Create = new IConActionViewModel { IconSource = "/Images/Icons/creat_.png", IconHoverSource = "/Images/Icons/creat.png", IconSelectSource = "/Images/Icons/creat_select.png", ActionText = "Create", IsAction = AnalysisAction.Create }; Import = new IConActionViewModel { IconSource = "/Images/Icons/import_.png", IconHoverSource = "/Images/Icons/import.png", IconSelectSource = "/Images/Icons/import_select.png", ActionText = "Import", IsAction = AnalysisAction.Import }; Modify = new IConActionViewModel { IconSource = "/Images/Icons/modify_.png", IconHoverSource = "/Images/Icons/modify.png", IconSelectSource = "/Images/Icons/modify_select.png", ActionText = "Modify", IsAction = AnalysisAction.Modify }; Delete = new IConActionViewModel { IconSource = "/Images/Icons/delete_.png", IconHoverSource = "/Images/Icons/delete.png", IconSelectSource = "/Images/Icons/delete_select.png", ActionText = "Delete", IsAction = AnalysisAction.Delete }; }