mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-20 21:33:10 -07:00
Merge 277097d9f6
into 0e6d669352
This commit is contained in:
commit
810ec1549d
1 changed files with 48 additions and 40 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue