aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio
diff options
context:
space:
mode:
authorVictoria Plitt <Victoria.Plitt@twine-s.com>2020-03-25 14:36:26 +0200
committerVictoria Plitt <Victoria.Plitt@twine-s.com>2020-03-25 14:36:26 +0200
commit0826ff68565e476c5990945ed0cf8dacb2feee5b (patch)
tree8d66fb844cd10f432652ed3487f4671fe4f4f263 /Software/Visual_Studio/MachineStudio
parent433c56bec4f1bee37412c6a39ad70f3c83501adb (diff)
downloadTango-0826ff68565e476c5990945ed0cf8dacb2feee5b.tar.gz
Tango-0826ff68565e476c5990945ed0cf8dacb2feee5b.zip
Machine studio. Add format to dataPicker.
Related Work Items: #2662
Diffstat (limited to 'Software/Visual_Studio/MachineStudio')
-rw-r--r--Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs
index 915deb484..28d0d84db 100644
--- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs
+++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs
@@ -1,8 +1,10 @@
using MahApps.Metro.Controls;
using System;
using System.Collections.Generic;
+using System.Globalization;
using System.Linq;
using System.Text;
+using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
@@ -81,6 +83,10 @@ namespace Tango.MachineStudio.UI
this.Loaded += MainWindow_Loaded;
this.SizeChanged += MainWindow_SizeChanged;
ContentRendered += MainWindow_ContentRendered;
+
+ CultureInfo ci = CultureInfo.CreateSpecificCulture(CultureInfo.CurrentCulture.Name);
+ ci.DateTimeFormat.ShortDatePattern = "MMM dd yyyy";
+ Thread.CurrentThread.CurrentCulture = ci;
}
private void MainWindow_ContentRendered(object sender, EventArgs e)