Delete my temporary comments and code

Remove tests that didn't make sense

Remove comment and eng test method

remove temp comment

remove wParam comment

remove using system statement
This commit is contained in:
Austin Putland 2022-08-01 14:45:57 -06:00
commit 690b3001fb
2 changed files with 8 additions and 8 deletions

View file

@ -389,7 +389,7 @@ void CCalcEngine::ProcessCommandWorker(OpCode wParam)
} }
/* Now branch off to do other commands and functions. */ /* Now branch off to do other commands and functions. */
switch (wParam) //wParam switch (wParam)
{ {
case IDC_CLEAR: /* Total clear. */ case IDC_CLEAR: /* Total clear. */
{ {

View file

@ -17,15 +17,15 @@ namespace CalculatorApp
[Windows.Foundation.Metadata.WebHostHidden] [Windows.Foundation.Metadata.WebHostHidden]
public sealed partial class CalculatorScientificAngleButtons public sealed partial class CalculatorScientificAngleButtons
{ {
public CalculatorScientificAngleButtons() //constructor for the class public CalculatorScientificAngleButtons()
{ {
m_isErrorVisualState = false; m_isErrorVisualState = false;
InitializeComponent(); //initializes UI components? InitializeComponent();
} }
public StandardCalculatorViewModel Model => (StandardCalculatorViewModel)this.DataContext; //Model is an expression-bodied read-only property of StandardCalculatorViewModel type public StandardCalculatorViewModel Model => (StandardCalculatorViewModel)this.DataContext;
public System.Windows.Input.ICommand ButtonPressed //ButtonPressed is the bind source for button command? ICommand is an interface public System.Windows.Input.ICommand ButtonPressed
{ {
get get
{ {
@ -66,7 +66,7 @@ namespace CalculatorApp
if (buttonId == "0") if (buttonId == "0")
{ {
Model.SwitchAngleType(NumbersAndOperatorsEnum.Radians); //Model gets a viewmodel object and SwitchAngleType is a method for that object? Model.SwitchAngleType(NumbersAndOperatorsEnum.Radians);
RadianButton.Visibility = Visibility.Visible; RadianButton.Visibility = Visibility.Visible;
RadianButton.Focus(FocusState.Programmatic); RadianButton.Focus(FocusState.Programmatic);
} }
@ -84,7 +84,7 @@ namespace CalculatorApp
} }
} }
public System.Windows.Input.ICommand NotationPressed //ButtonPressed is the bind source for button command? ICommand is an interface public System.Windows.Input.ICommand NotationPressed
{ {
get get
{ {
@ -117,7 +117,7 @@ namespace CalculatorApp
} }
else if (buttonId == "1") else if (buttonId == "1")
{ {
Model.EngButton(); //update this to some new method Model.EngButton();
EngButton.Visibility = Visibility.Visible; EngButton.Visibility = Visibility.Visible;
EngButton.Focus(FocusState.Programmatic); EngButton.Focus(FocusState.Programmatic);
} }