diff --git a/PacticeSolution/ClockGadget/App.xaml b/PacticeSolution/ClockGadget/App.xaml
new file mode 100644
index 0000000..e629ddc
--- /dev/null
+++ b/PacticeSolution/ClockGadget/App.xaml
@@ -0,0 +1,9 @@
+
+
+
+
+
diff --git a/PacticeSolution/ClockGadget/App.xaml.cs b/PacticeSolution/ClockGadget/App.xaml.cs
new file mode 100644
index 0000000..7f5b103
--- /dev/null
+++ b/PacticeSolution/ClockGadget/App.xaml.cs
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.Configuration;
+using System.Data;
+using System.Linq;
+using System.Threading.Tasks;
+using System.Windows;
+
+namespace ClockGadget
+{
+ ///
+ /// Interaction logic for App.xaml
+ ///
+ public partial class App : Application
+ {
+ }
+}
diff --git a/PacticeSolution/ClockGadget/AssemblyInfo.cs b/PacticeSolution/ClockGadget/AssemblyInfo.cs
new file mode 100644
index 0000000..8b5504e
--- /dev/null
+++ b/PacticeSolution/ClockGadget/AssemblyInfo.cs
@@ -0,0 +1,10 @@
+using System.Windows;
+
+[assembly: ThemeInfo(
+ ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
+ //(used if a resource is not found in the page,
+ // or application resource dictionaries)
+ ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
+ //(used if a resource is not found in the page,
+ // app, or any theme specific resource dictionaries)
+)]
diff --git a/PacticeSolution/ClockGadget/ClockGadget.csproj b/PacticeSolution/ClockGadget/ClockGadget.csproj
new file mode 100644
index 0000000..4106cb0
--- /dev/null
+++ b/PacticeSolution/ClockGadget/ClockGadget.csproj
@@ -0,0 +1,10 @@
+
+
+
+ WinExe
+ net6.0-windows
+ enable
+ true
+
+
+
diff --git a/PacticeSolution/ClockGadget/MainWindow.xaml b/PacticeSolution/ClockGadget/MainWindow.xaml
new file mode 100644
index 0000000..e52b989
--- /dev/null
+++ b/PacticeSolution/ClockGadget/MainWindow.xaml
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/PacticeSolution/ClockGadget/MainWindow.xaml.cs b/PacticeSolution/ClockGadget/MainWindow.xaml.cs
new file mode 100644
index 0000000..bce1788
--- /dev/null
+++ b/PacticeSolution/ClockGadget/MainWindow.xaml.cs
@@ -0,0 +1,63 @@
+using System;
+using System.Collections.Generic;
+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;
+using System.Windows.Threading;
+
+namespace ClockGadget
+{
+ ///
+ /// Interaction logic for MainWindow.xaml
+ ///
+ public partial class MainWindow : Window
+ {
+ private DispatcherTimer _timer;
+
+ public MainWindow()
+ {
+ InitializeComponent();
+ }
+
+ private void SetDateTime()
+ {
+ tbDate.Text = DateTime.Now.ToString("yyyy-MM-dd");
+ tbTime.Text = DateTime.Now.ToString("tt hh:mm:ss");
+ }
+
+ private void btnClose_Click(object sender, RoutedEventArgs e)
+ {
+ this.Close();
+ }
+
+ private void Window_Loaded(object sender, RoutedEventArgs e)
+ {
+ SetDateTime();
+
+ _timer = new DispatcherTimer();
+ _timer.Interval = TimeSpan.FromSeconds(1);
+ _timer.Tick += On_timer_Tick;
+ _timer.Start();
+ }
+
+ private void On_timer_Tick(object? sender, EventArgs e)
+ {
+ SetDateTime();
+ }
+
+ private void Ellipse_MouseDown(object sender, MouseButtonEventArgs e)
+ {
+ this.DragMove();
+
+ }
+ }
+}
diff --git a/PacticeSolution/PacticeSolution.sln b/PacticeSolution/PacticeSolution.sln
index c55e02a..7ce5fea 100644
--- a/PacticeSolution/PacticeSolution.sln
+++ b/PacticeSolution/PacticeSolution.sln
@@ -5,6 +5,8 @@ VisualStudioVersion = 17.5.33530.505
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PacticeSolution", "PacticeSolution\PacticeSolution.csproj", "{6AE700B8-28D0-4D9F-978B-91AFB1033125}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClockGadget", "ClockGadget\ClockGadget.csproj", "{AED102C2-9E4B-4DE6-A843-616856F687DB}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -15,6 +17,10 @@ Global
{6AE700B8-28D0-4D9F-978B-91AFB1033125}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6AE700B8-28D0-4D9F-978B-91AFB1033125}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6AE700B8-28D0-4D9F-978B-91AFB1033125}.Release|Any CPU.Build.0 = Release|Any CPU
+ {AED102C2-9E4B-4DE6-A843-616856F687DB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {AED102C2-9E4B-4DE6-A843-616856F687DB}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {AED102C2-9E4B-4DE6-A843-616856F687DB}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {AED102C2-9E4B-4DE6-A843-616856F687DB}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE