Correct spelling mistakes

This commit is contained in:
Edward Betts 2019-03-06 20:31:22 +00:00 committed by Howard Wolosky
parent 07ff1c372f
commit 0197fa41da
7 changed files with 10 additions and 10 deletions

View File

@ -87,7 +87,7 @@ The ViewModel layer is contained in the [CalcViewModel][CalcViewModel folder] pr
data for the UI to bind against and act as the intermediary separating pure business logic from UI components that data for the UI to bind against and act as the intermediary separating pure business logic from UI components that
should not care about the model's implementation. Just as the View layer consists of a hierarchy of XAML files, the should not care about the model's implementation. Just as the View layer consists of a hierarchy of XAML files, the
ViewModel consists of a hierarchy of ViewModel files. The relationship between XAML and ViewModel files is often 1:1. ViewModel consists of a hierarchy of ViewModel files. The relationship between XAML and ViewModel files is often 1:1.
Here are the noteable ViewModel files to start exploring with: Here are the notable ViewModel files to start exploring with:
* [ApplicationViewModel.h][ApplicationViewModel.h]: The ViewModel for [MainPage.xaml][MainPage.xaml]. This ViewModel * [ApplicationViewModel.h][ApplicationViewModel.h]: The ViewModel for [MainPage.xaml][MainPage.xaml]. This ViewModel
is the root of the other mode-specific ViewModels. The application changes between modes by updating the `Mode` property is the root of the other mode-specific ViewModels. The application changes between modes by updating the `Mode` property
@ -199,4 +199,4 @@ The RatPack (short for Rational Pack) is the core of the Calculator model and co
[CalcManager folder]: ../src/CalcManager [CalcManager folder]: ../src/CalcManager
[CalculatorManager.h]: ../src/CalcManager/CalculatorManager.h [CalculatorManager.h]: ../src/CalcManager/CalculatorManager.h
[CalcEngine.h]: ../src/CalcManager/Header Files/CalcEngine.h [CalcEngine.h]: ../src/CalcManager/Header Files/CalcEngine.h
[ratpak.h]: ../src/CalcManager/Ratpack/ratpak.h [ratpak.h]: ../src/CalcManager/Ratpack/ratpak.h

View File

@ -903,7 +903,7 @@ shared_ptr<IConverterDataLoader> UnitConverter::GetDataLoaderForCategory(const C
} }
/// <summary> /// <summary>
/// Sets the intial values for m_fromType and m_toType. /// Sets the initial values for m_fromType and m_toType.
/// This is an internal helper method as opposed to SetCurrentUnits /// This is an internal helper method as opposed to SetCurrentUnits
/// which is for external use by clients. /// which is for external use by clients.
/// If we fail to set units, we will fallback to the EMPTY_UNIT. /// If we fail to set units, we will fallback to the EMPTY_UNIT.

View File

@ -441,8 +441,8 @@ void KeyboardShortcutManager::OnVirtualKeyControlInverseChordPropertyChanged(
} }
} }
// In the three event handlers bellow we will not mark the event as handled // In the three event handlers below we will not mark the event as handled
// because this is a sumplemental operation and we don't want to interfere with // because this is a supplemental operation and we don't want to interfere with
// the normal keyboard handling. // the normal keyboard handling.
void KeyboardShortcutManager::OnCharacterReceivedHandler(CoreWindow^ sender, CharacterReceivedEventArgs^ args) void KeyboardShortcutManager::OnCharacterReceivedHandler(CoreWindow^ sender, CharacterReceivedEventArgs^ args)
{ {

View File

@ -398,7 +398,7 @@ namespace Utils
static void On##name##PropertyChangedImpl(Windows::UI::Xaml::DependencyObject^ sender, Windows::UI::Xaml::DependencyPropertyChangedEventArgs^ args) {\ static void On##name##PropertyChangedImpl(Windows::UI::Xaml::DependencyObject^ sender, Windows::UI::Xaml::DependencyPropertyChangedEventArgs^ args) {\
On##name##PropertyChanged(sender, safe_cast<type>(args->OldValue), safe_cast<type>(args->NewValue)); } public: On##name##PropertyChanged(sender, safe_cast<type>(args->OldValue), safe_cast<type>(args->NewValue)); } public:
// This goes into the cpp to initalize the static variable // This goes into the cpp to initialize the static variable
#define DEPENDENCY_PROPERTY_INITIALIZATION(owner, name)\ #define DEPENDENCY_PROPERTY_INITIALIZATION(owner, name)\
Windows::UI::Xaml::DependencyProperty^ owner::s_##name##Property =\ Windows::UI::Xaml::DependencyProperty^ owner::s_##name##Property =\
owner::Initialize##name##Property(); owner::Initialize##name##Property();

View File

@ -103,13 +103,13 @@ void SupplementaryResults::OnConverterPropertyChanged(Object^ /*sender*/, Proper
void SupplementaryResults::OnWindowSizeChanged(Platform::Object^ sender, Windows::UI::Core::WindowSizeChangedEventArgs^ e) void SupplementaryResults::OnWindowSizeChanged(Platform::Object^ sender, Windows::UI::Core::WindowSizeChangedEventArgs^ e)
{ {
// to reload supplementary results everytime the window is resized // to reload supplementary results every time the window is resized
RefreshData(); RefreshData();
} }
void SupplementaryResults::OnSupplementaryValuesLayoutUpdated(Platform::Object^ sender, Platform::Object^ e) void SupplementaryResults::OnSupplementaryValuesLayoutUpdated(Platform::Object^ sender, Platform::Object^ e)
{ {
// This means we overflowed and are cutting off, or in a very rare case we fit exactly. Unforunately // This means we overflowed and are cutting off, or in a very rare case we fit exactly. Unfortunately
// the fitting exactly case will still have an item removed, as there is no other way for us to // the fitting exactly case will still have an item removed, as there is no other way for us to
// detect that we need to trim. // detect that we need to trim.
Grid^ parentGrid = dynamic_cast<Grid^>(VisualTreeHelper::GetParent(this)); Grid^ parentGrid = dynamic_cast<Grid^>(VisualTreeHelper::GetParent(this));

View File

@ -101,7 +101,7 @@ namespace CalculatorUnitTests
} }
} }
// Perform calculations on diferent calculator modes and verify that they work independently // Perform calculations on different calculator modes and verify that they work independently
TEST_METHOD(MultipleModesCalculationTest) TEST_METHOD(MultipleModesCalculationTest)
{ {
std::vector<StandardCalculatorViewModel^> viewModels(3); std::vector<StandardCalculatorViewModel^> viewModels(3);

View File

@ -509,7 +509,7 @@ namespace CalculatorUnitTests
} }
// Switch Calculator Mode and verify if mode switch is happening as expected. // Switch Calculator Mode and verify if mode switch is happening as expected.
// Test precendence to check if mode switch is happening // Test precedence to check if mode switch is happening
// Standard mode 1+2*3 = 9; Scientific mode 1+2*3 = 7 // Standard mode 1+2*3 = 9; Scientific mode 1+2*3 = 7
// Intermediate value is also different. after 1 + 2 * , standard shows 3, scientific shows 2 // Intermediate value is also different. after 1 + 2 * , standard shows 3, scientific shows 2
TEST_METHOD(ButtonPressedCalculatorModeSwitch) TEST_METHOD(ButtonPressedCalculatorModeSwitch)