/source2/VSIP/Cosmos.VS.Windows.Test/MainWindow.xaml.cs

https://bitbucket.org/mvptracker/cosmos · C# · 29 lines · 24 code · 3 blank · 2 comment · 0 complexity · 422f1a8ab150cd13edee9f77245c33e2 MD5 · raw file

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Windows;
  6. using System.Windows.Controls;
  7. using System.Windows.Data;
  8. using System.Windows.Documents;
  9. using System.Windows.Input;
  10. using System.Windows.Media;
  11. using System.Windows.Media.Imaging;
  12. using System.Windows.Navigation;
  13. using System.Windows.Shapes;
  14. using System.ComponentModel;
  15. namespace Cosmos.VS.Windows.Test {
  16. public partial class MainWindow : Window {
  17. public MainWindow() {
  18. InitializeComponent();
  19. string xPath = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, @"..\..");
  20. // Uncomment code in AssemblyUC.xml.cs to genearate a new bin test file in method DoUpdate.
  21. // Make sure to comment back out before running this, else there will be conflicts
  22. byte[] xData = System.IO.File.ReadAllBytes(System.IO.Path.Combine(xPath, "SourceTest.bin"));
  23. ucAssembly.Update(null, xData);
  24. }
  25. }
  26. }