From 690b3001fba233cbd21bc62b1015078b05034b63 Mon Sep 17 00:00:00 2001 From: Austin Putland Date: Mon, 1 Aug 2022 14:45:57 -0600 Subject: [PATCH] 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 --- src/CalcManager/CEngine/scicomm.cpp | 2 +- .../Views/CalculatorScientificAngleButtons.xaml.cs | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/CalcManager/CEngine/scicomm.cpp b/src/CalcManager/CEngine/scicomm.cpp index 46bec0a1..45124aa2 100644 --- a/src/CalcManager/CEngine/scicomm.cpp +++ b/src/CalcManager/CEngine/scicomm.cpp @@ -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. */ { diff --git a/src/Calculator/Views/CalculatorScientificAngleButtons.xaml.cs b/src/Calculator/Views/CalculatorScientificAngleButtons.xaml.cs index cc0a8c0e..2ea4b4c6 100644 --- a/src/Calculator/Views/CalculatorScientificAngleButtons.xaml.cs +++ b/src/Calculator/Views/CalculatorScientificAngleButtons.xaml.cs @@ -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); }