mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-21 22:03:11 -07:00
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:
parent
79cfa59cda
commit
690b3001fb
2 changed files with 8 additions and 8 deletions
|
@ -389,7 +389,7 @@ void CCalcEngine::ProcessCommandWorker(OpCode wParam)
|
|||
}
|
||||
|
||||
/* Now branch off to do other commands and functions. */
|
||||
switch (wParam) //wParam
|
||||
switch (wParam)
|
||||
{
|
||||
case IDC_CLEAR: /* Total clear. */
|
||||
{
|
||||
|
|
|
@ -17,15 +17,15 @@ namespace CalculatorApp
|
|||
[Windows.Foundation.Metadata.WebHostHidden]
|
||||
public sealed partial class CalculatorScientificAngleButtons
|
||||
{
|
||||
public CalculatorScientificAngleButtons() //constructor for the class
|
||||
public CalculatorScientificAngleButtons()
|
||||
{
|
||||
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
|
||||
{
|
||||
|
@ -66,7 +66,7 @@ namespace CalculatorApp
|
|||
|
||||
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.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
|
||||
{
|
||||
|
@ -117,7 +117,7 @@ namespace CalculatorApp
|
|||
}
|
||||
else if (buttonId == "1")
|
||||
{
|
||||
Model.EngButton(); //update this to some new method
|
||||
Model.EngButton();
|
||||
EngButton.Visibility = Visibility.Visible;
|
||||
EngButton.Focus(FocusState.Programmatic);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue