This commit is contained in:
Frahman 2025-07-02 22:50:56 +01:00 committed by GitHub
commit 810ec1549d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -51,6 +51,8 @@ namespace CalculatorApp::ViewModel
} }
void EquationViewModel::PopulateKeyGraphFeatures(KeyGraphFeaturesInfo ^ graphEquation) void EquationViewModel::PopulateKeyGraphFeatures(KeyGraphFeaturesInfo ^ graphEquation)
{
try
{ {
if (graphEquation->AnalysisError != 0) if (graphEquation->AnalysisError != 0)
{ {
@ -95,6 +97,12 @@ namespace CalculatorApp::ViewModel
AnalysisErrorVisible = false; AnalysisErrorVisible = false;
} }
catch (Exception^ ex)
{
AnalysisErrorVisible = true;
AnalysisErrorString = "Invalid input: " + ex->Message;
}
}
void EquationViewModel::AddKeyGraphFeature(String ^ title, String ^ expression, String ^ errorString) void EquationViewModel::AddKeyGraphFeature(String ^ title, String ^ expression, String ^ errorString)
{ {