aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-02-19 19:09:12 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-02-19 19:09:12 +0200
commit160ec4042539e69a7494bcde5c893c6dffcbf1b6 (patch)
treecce685e0b88ef922d5adec5af39e4bfb59e158fb /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml.cs
parent240fc978fb3327ff7e5bc0c7a06e1b8cc8de4aca (diff)
downloadTango-160ec4042539e69a7494bcde5c893c6dffcbf1b6.tar.gz
Tango-160ec4042539e69a7494bcde5c893c6dffcbf1b6.zip
Working on developer module..
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml.cs')
-rw-r--r--Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml.cs44
1 files changed, 44 insertions, 0 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml.cs
new file mode 100644
index 000000000..ab181e8dc
--- /dev/null
+++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml.cs
@@ -0,0 +1,44 @@
+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 Tango.SharedUI;
+
+namespace Tango.MachineStudio.Developer.Views
+{
+ /// <summary>
+ /// Interaction logic for DeveloperView.xaml
+ /// </summary>
+ public partial class MainView : UserControl, IMainView
+ {
+ private bool _loaded;
+ public static MainView Instance { get; set; }
+
+ public MainView()
+ {
+ InitializeComponent();
+ Instance = this;
+
+ Loaded += (x, y) =>
+ {
+ if (!_loaded)
+ {
+ _loaded = true;
+ ViewAttached?.Invoke(this, this);
+ }
+ };
+ }
+
+ public event EventHandler<IView> ViewAttached;
+ }
+}