public WindowExpert() { InitializeComponent(); string id = "DoktorKinsky"; iMutex = new Mutex(); iTests = Test.CreateTests(id); iSupplies = Supply.CreateSupplies(id); iNodes = new List <INode>(); listBoxTests.ItemsSource = iTests; listBoxTests.SelectionChanged += new SelectionChangedEventHandler(listBoxTestsSelectionChanged); buttonReset.IsEnabled = false; buttonRun.IsEnabled = false; buttonReset.Click += new RoutedEventHandler(buttonResetClick); buttonRun.Click += new RoutedEventHandler(buttonRunClick); foreach (ISupply supply in iSupplies) { supply.Open(); supply.Subscribe(this); } }
public DoktorTest(string[] aArgs) { iMutex = new Mutex(); iHelper = new Helper(aArgs); iOptionShow = new OptionParser.OptionBool("-s", "--show", "Show tests"); OptionParser options = iHelper.OptionParser; options.Usage = "usage: DoktorTest [options] [test]\n"; options.AddOption(iOptionShow); string id = "DoktorTest"; iTests = Test.CreateTests(id); iSupplies = Supply.CreateSupplies(id); }