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); } }
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); } }