mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 14:13:30 -07:00
Use properties to set visual states rather than strings
This commit is contained in:
parent
98b5c1e8d5
commit
c6a603c7d1
1 changed files with 3 additions and 4 deletions
|
@ -152,19 +152,18 @@ void UnitConverter::OnOfflineNetworkAccess()
|
|||
|
||||
void UnitConverter::SetNormalCurrencyStatus()
|
||||
{
|
||||
VisualStateManager::GoToState(this, L"NormalCurrencyStatus", false);
|
||||
CurrencySecondaryStatus->Text = L"";
|
||||
VisualStateManager::GoToState(this, NormalCurrencyStatus->Name, false);
|
||||
}
|
||||
|
||||
void UnitConverter::SetChargesMayApplyStatus()
|
||||
{
|
||||
VisualStateManager::GoToState(this, L"ChargesMayApplyCurrencyStatus", false);
|
||||
VisualStateManager::GoToState(this, ChargesMayApplyCurrencyStatus->Name, false);
|
||||
CurrencySecondaryStatus->Text = m_chargesMayApplyText;
|
||||
}
|
||||
|
||||
void UnitConverter::SetFailedToRefreshStatus()
|
||||
{
|
||||
VisualStateManager::GoToState(this, L"FailedCurrencyStatus", false);
|
||||
VisualStateManager::GoToState(this, FailedCurrencyStatus->Name, false);
|
||||
CurrencySecondaryStatus->Text = m_failedToRefreshText;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue