diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2020-04-21 16:04:12 +0300 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2020-04-21 16:04:12 +0300 |
| commit | 78430d37ac1dd07d5b5d731698da6761884d4cd5 (patch) | |
| tree | ac46b2870e21e3ddbc7a7d0732340a93e4e774e2 /Software/Visual_Studio/Scripting/Tango.Scripting.Test/MainWindow.xaml.cs | |
| parent | bd2e83f3d46414d756f59c2f70cc561718a3022e (diff) | |
| parent | 97a784b6ce43960bdb92465b08f26d3562a4f202 (diff) | |
| download | Tango-78430d37ac1dd07d5b5d731698da6761884d4cd5.tar.gz Tango-78430d37ac1dd07d5b5d731698da6761884d4cd5.zip | |
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_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.cs | 46 |
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()); + } + } +} |
