Example #1
0
        void addTest(AssemblyTestConfiguration config)
        {
            var control = new AssemblyTestControl();
            var test = new AssemblyTest(config, control);

            _tests.Add(test);
            var insertPos = _testPanel.Children.Count - 1;
            _testPanel.Children.Insert(insertPos, test.Control);

            control.RemoveButton.Click += (sender, e) => removeTestUser(test);
        }
Example #2
0
        public AssemblyTest(AssemblyTestConfiguration config, UI.AssemblyTestControl control)
        {
            _config = config;
            Control = control;

            var path = _config.AssemblyPath;

            control.Title.Content = Path.GetFileName(path);

            _watcher = new FileWatcher(path);
            _watcher.Changed += refresh;
        }