diff --git a/SharpCalculator.Avalonia/App.axaml b/SharpCalculator.Avalonia/App.axaml
index 69b003e..4d08634 100644
--- a/SharpCalculator.Avalonia/App.axaml
+++ b/SharpCalculator.Avalonia/App.axaml
@@ -3,6 +3,32 @@
x:Class="SharpCalculator.Avalonia.App"
RequestedThemeVariant="Dark">
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SharpCalculator.Avalonia/MainWindow.axaml b/SharpCalculator.Avalonia/MainWindow.axaml
index 6e6ba49..b36632f 100644
--- a/SharpCalculator.Avalonia/MainWindow.axaml
+++ b/SharpCalculator.Avalonia/MainWindow.axaml
@@ -1,579 +1,151 @@
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ x:Class="SharpCalculator.Avalonia.MainWindow"
+ Title="SharpCalculator"
+ FontFamily="Consolas" FontSize="24"
+ Width="600" Height="750"
+ MinWidth="600" MinHeight="750">
-
+
* * * * * * *
* * * * * * * * * *
-
+ Text=""/>
-
+
-
-
-
+
+
+
+
+
-
+
-
+
-
+
-
+
-
-
-
+
+
+
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
\ No newline at end of file
diff --git a/SharpCalculator.Avalonia/MainWindow.axaml.cs b/SharpCalculator.Avalonia/MainWindow.axaml.cs
index ae3bf7f..f0d1dc9 100644
--- a/SharpCalculator.Avalonia/MainWindow.axaml.cs
+++ b/SharpCalculator.Avalonia/MainWindow.axaml.cs
@@ -11,8 +11,8 @@ using System.Collections.Generic;
using System.Globalization;
using Avalonia.Controls;
using Avalonia.Interactivity;
-using FusionCalculator;
using Avalonia.Media;
+using FusionCalculator;
namespace SharpCalculator.Avalonia;
@@ -20,7 +20,6 @@ namespace SharpCalculator.Avalonia;
public partial class MainWindow : Window
{
private static readonly Random Random = new Random(); // Random object for rand() function in calculator
- private readonly double _randomNumber = Random.NextDouble(); // Random variable is between 0 to 1
private readonly List _history = new List(); // History list to append expressions
public MainWindow()
@@ -67,7 +66,7 @@ public partial class MainWindow : Window
{
case "rand": // rand function add random variable from 0 to 1 into Input
Input.Text = "";
- Input.Text += _randomNumber.ToString(CultureInfo.InvariantCulture);
+ Input.Text += _random.NextDouble().ToString(CultureInfo.InvariantCulture);
break;
case "π": // Pi function add pi value into Input
Input.Text = "";