public TabControl(MainUI parent, TestApp testApp) { InitializeComponent(); this.parent = parent; this.testApp = testApp; if (testApp is ZTree) { inited = true; ztreeCtrl = new ZtreeControl((ZTree)testApp); ztreeControls.Children.Add(ztreeCtrl); btnDelResults.IsEnabled = true; btnGetResults.IsEnabled = true; } }
public TabControl(MainUI parent, TestApp testApp) { InitializeComponent(); this.parent = parent; this.testApp = testApp; if (testApp is ZTree) { inited = true; ztreeCtrl = new ZtreeControl((ZTree) testApp); ztreeControls.Children.Add(ztreeCtrl); btnDelResults.IsEnabled = true; btnGetResults.IsEnabled = true; } }