Class ApplicationHandler
Last update: 16.07.2025Namespace: VM.Operations.Post.Models
Assembly: VM.Operations.Post.dll
public class ApplicationHandler : IOperationsApplicationHandler, IOperationsBase
Inheritance
Implements
IOperationsApplicationHandler, IOperationsBase
Constructors
ApplicationHandler()
Initializes a new instance of the ApplicationHandler class.
public ApplicationHandler()
Methods
AddDocument(IList<string>)
Import the result
public void AddDocument(IList<string> filepath)
Parameters
The list of the path of result to open
AddPlotView()
Add a plot view
public IOperationsLine2DViewModelBase AddPlotView()
Returns
IOperationsLine2DViewModelBase
The instance of plot view
DurabilityAnalysis(IDurabilityAnalysisParameter)
public bool DurabilityAnalysis(IDurabilityAnalysisParameter parameter)
Parameters
parameter IDurabilityAnalysisParameter
Returns
ExportImage(IChartViewModel, string, ImageFormat, double?, double?)
Export the image
public void ExportImage(IChartViewModel lineViewModel, string filepath, ImageFormat format, double? width = null, double? height = null)
Parameters
lineViewModel IChartViewModel
The target plot view
filepath string
The path of the file with curve data.
format ImageFormat
Provides values for ImageFormat with Png, Jpeg, Bmp.
width double?
Gets or sets the size of width to export image
height double?
Gets or sets the size of height to export image
ExportImage(IChartViewModel, string, ExportType, double?, double?)
Export the image
[Obsolete]
public void ExportImage(IChartViewModel lineViewModel, string filepath, ExportType exportType, double? width = null, double? height = null)
Parameters
lineViewModel IChartViewModel
The target plot view
filepath string
The path of the file with curve data.
exportType ExportType
width double?
Gets or sets the size of width to export image
height double?
Gets or sets the size of height to export image
GetActiveAnimationView()
Get active animation view
public IOperationsAnimationViewModel GetActiveAnimationView()
Returns
GetActivePlotView()
Get active plot view
public IOperationsLine2DViewModelBase GetActivePlotView()
Returns
IOperationsLine2DViewModelBase
The instance of active plot view
GetDocument(string)
Get the instance of target document by the path of result
public IResultDocumentViewModel GetDocument(string filepath)
Parameters
filepath string
The path of the result to access
Returns
IResultDocumentViewModel
The instance of target document
ImportNumeric(IChartViewModel, string, List<INumericParameter>)
Import a numeric data.
public void ImportNumeric(IChartViewModel lineViewModel, string filepath, List<INumericParameter> targets)
Parameters
lineViewModel IChartViewModel
The target plot view of the curve to import a numeric data
filepath string
The path of the file with curve data
targets List<INumericParameter>
Characteristics to import a numeric data
ImportPythonScripts(string)
Import the python script
public void ImportPythonScripts(string filepath)
Parameters
filepath string
The path of the file with python operation script
LoadingAnimation()
public void LoadingAnimation()
RemoveDocument(string)
Remove a document.
public void RemoveDocument(string filepath)
Parameters
filepath string
The path of the result to remove
RemoveView(string)
Remove a view
public void RemoveView(string viewName)
Parameters
viewName string
The name of the view to remove