From 9b7875d904456c34c3698d7fc569078f99ed5187 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Sun, 19 Apr 2020 23:12:56 +0300 Subject: Scripting refactoring. --- .../Tango.Scripting.Test/MainWindow.xaml.cs | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Software/Visual_Studio/Scripting/Tango.Scripting.Test/MainWindow.xaml.cs (limited to 'Software/Visual_Studio/Scripting/Tango.Scripting.Test/MainWindow.xaml.cs') 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 +{ + /// + /// Interaction logic for MainWindow.xaml + /// + public partial class MainWindow : Window + { + public MainWindow() + { + ScriptEditor.AssemblyCacheProgress += ScriptEditor_AssemblyCacheProgress; + ScriptEditor.LoadCachedAssemblies(new List() + { + 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 e) + { + Debug.WriteLine(e.Progress.ToString()); + } + } +} -- cgit v1.3.1