public ComponentsTabs(Logic.GomEPS eps, Logic.IsisTRXVU trx) { InitializeComponent(); TRXTab tRXTab = new TRXTab(trx); trxpanel.Children.Add(tRXTab); tRXTab.Visibility = Visibility.Visible; EPSTab ePXTab = new EPSTab(eps); epspanel.Children.Add(ePXTab); ePXTab.Visibility = Visibility.Visible; }
private void Button_Click(object sender, RoutedEventArgs e) { Logic.GomEPS eps = new Logic.GomEPS(); Logic.IsisTRXVU trx = new Logic.IsisTRXVU(); trxInit(trx); Logic.FRAMLogic fram = new Logic.FRAMLogic(); try { AsyncService service = new AsyncService(); AsyncService.eps = eps; AsyncService.trx = trx; AsyncService.fram = fram; Thread newThread = new Thread(AsyncService.Run); newThread.Start(); } catch (Exception ex) { Console.WriteLine(ex.Message); } MainWindow.ChangePanel(new ComponentsTabs(eps, trx)); // number of trxes.. defaults.. }