Skip to content
This repository has been archived by the owner on May 28, 2021. It is now read-only.

Commit

Permalink
v8.3.1
Browse files Browse the repository at this point in the history
- Code cleanUp
  • Loading branch information
U-C-S committed Sep 6, 2020
1 parent 9336ad0 commit 04a0b20
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 17 deletions.
Binary file renamed v8.3.exe → Basic Calculator.exe
Binary file not shown.
6 changes: 6 additions & 0 deletions Basic Calculator.exe.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup>
</configuration>
19 changes: 4 additions & 15 deletions Basic Calculator/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Basic_Calculator
{
Expand All @@ -33,8 +23,7 @@ public partial class MainWindow : Window
private void Btn_num(object sender, RoutedEventArgs e)
{
Button btn = (Button)sender;
string btnVal = btn.Content.ToString();
NumberFunc(btnVal);
NumberFunc(btn.Content.ToString());
}
private void Btn_dot(object sender, RoutedEventArgs e) => DotCheck();
private void Operator(object sender, RoutedEventArgs e)
Expand Down Expand Up @@ -70,7 +59,7 @@ private void Btn_equal(object sender, RoutedEventArgs e)


//UI Event Functions--------
private void NumberFunc (string i)
private void NumberFunc(string i)
{
if (boxResult.Text.Length == 1 && boxResult.Text.IndexOf("0") == 0)
{
Expand Down Expand Up @@ -165,7 +154,7 @@ private void ClearEverything()
//For Keyboard Functionality-----
private void Keyboard_press(object sender, KeyEventArgs e)
{
switch(e.Key)
switch (e.Key)
{
case Key.NumPad1:
case Key.D1:
Expand Down Expand Up @@ -210,6 +199,6 @@ private void Keyboard_press(object sender, KeyEventArgs e)

}
}

}
}
4 changes: 2 additions & 2 deletions Basic Calculator/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("8.3.0.0")]
[assembly: AssemblyFileVersion("8.3.0.0")]
[assembly: AssemblyVersion("8.3.1.0")]
[assembly: AssemblyFileVersion("8.3.1.0")]
[assembly: NeutralResourcesLanguage("en-US")]

0 comments on commit 04a0b20

Please sign in to comment.