aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Scripting/Tango.Scripting.Test/MainWindow.xaml.cs
diff options
context:
space:
mode:
authorAvi Levkovich <avi@twine-s.com>2020-04-21 14:21:19 +0300
committerAvi Levkovich <avi@twine-s.com>2020-04-21 14:21:19 +0300
commitcd728bf3a7d1db76747cb18bcfe396c83d690e86 (patch)
tree99347262eef3f175a7ff1441b6c5a031be74d26f /Software/Visual_Studio/Scripting/Tango.Scripting.Test/MainWindow.xaml.cs
parent7fe23e68512e2462de107e76ae3a92ddd381ac77 (diff)
parent97a784b6ce43960bdb92465b08f26d3562a4f202 (diff)
downloadTango-cd728bf3a7d1db76747cb18bcfe396c83d690e86.tar.gz
Tango-cd728bf3a7d1db76747cb18bcfe396c83d690e86.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/Scripting/Tango.Scripting.Test/MainWindow.xaml.cs')
-rw-r--r--Software/Visual_Studio/Scripting/Tango.Scripting.Test/MainWindow.xaml.cs46
1 files changed, 46 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Scripting/Tango.Scripting.Test/MainWindow.xaml.cs b/Software/Visual_Studio/Scripting/Tango.Scripting.Test/MainWindow.xaml.cs
new file mode 100644
index 000000000..07958493d
--- /dev/null
+++ b/Software/Visual_Studio/Scripting/Tango.Scripting.Test/MainWindow.xaml.cs
@@ -0,0 +1,46 @@
+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.Forms;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using Tango.Scripting.Editors;
+
+namespace Tango.Scripting.Test
+{
+ /// <summary>
+ /// Interaction logic for MainWindow.xaml
+ /// </summary>
+ public partial class MainWindow : Window
+ {
+ public MainWindow()
+ {
+ ScriptEditor.AssemblyCacheProgress += ScriptEditor_AssemblyCacheProgress;
+ ScriptEditor.LoadCachedAssemblies(new List<System.Reflection.Assembly>()
+ {
+ typeof(String).Assembly,
+ typeof(Enumerable).Assembly,
+ typeof(Form).Assembly,
+ typeof(System.Drawing.Point).Assembly
+ });
+
+ InitializeComponent();
+ DataContext = new MainWindowVM();
+ }
+
+ private void ScriptEditor_AssemblyCacheProgress(object sender, Tango.Core.TangoProgressChangedEventArgs<int> e)
+ {
+ Debug.WriteLine(e.Progress.ToString());
+ }
+ }
+}