Interaction logic for MainWindow.xaml
Inheritance: System.Windows.Window
Ejemplo n.º 1
0
        public AssemblyTester(MainWindow window)
        {
            _window = window;
            _testPanel = _window.Tests;

            var config = Configuration.load();

            if (config.WindowRect_ != null)
            {
                var wr = config.WindowRect_;
                _window.Left = wr.Left;
                _window.Top = wr.Top;
                _window.Width = wr.Width;
                _window.Height = wr.Height;
                _window.WindowStartupLocation = WindowStartupLocation.Manual;
            }

            var newControl = new AssemblyTestNewControl();
            newControl.AddTestButton.Click += (s, e) => addTestUser();
            _testPanel.Children.Add(newControl);

            foreach (var c in config.AssemblyTests)
            {
                addTest(c);
            }
        }
Ejemplo n.º 2
0
        public AssemblyTester(MainWindow window)
        {
            _window = window;
            _testPanel = _window.Tests;

            var config = Configuration.load();

            var newControl = new AssemblyTestNewControl();
            newControl.AddTestButton.Click += (s, e) => addTestUser();
            _testPanel.Children.Add(newControl);

            foreach (var c in config.AssemblyTests)
            {
                addTest(c);
            }
        }
Ejemplo n.º 3
0
        public static void Main(string[] arguments)
        {
            var app = new App();

            var resource = Resources.Simple_Styles_Default;
            using (var stringReader = new StringReader(resource))
            using (var reader = XmlReader.Create(stringReader))
            {
                app.Resources = (ResourceDictionary)XamlReader.Load(reader);
            }

            var window = new UI.MainWindow();
            using (new AssemblyTester(window))
            {
                app.Run(window);
            }
        }
Ejemplo n.º 4
0
        public static void Main(string[] arguments)
        {
            var app = new App();

            var resource = Resources.Simple_Styles_Default;

            using (var stringReader = new StringReader(resource))
                using (var reader = XmlReader.Create(stringReader))
                {
                    app.Resources = (ResourceDictionary)XamlReader.Load(reader);
                }

            var window = new UI.MainWindow();

            using (new AssemblyTester(window))
            {
                app.Run(window);
            }
        }