private void btnDevParalle_Click(object sender, RoutedEventArgs e) { MainWindow mwd = new MainWindow(); mwd.isSerialMode = false; MatrixPage matrixPg = new MatrixPage(); matrixPg.prepareForParalConnect(); this.Close(); matrixPg.ShowDialog(); }
private void Enter_click(object sender, RoutedEventArgs e) { MainWindow mwd = new MainWindow(); if (radioI.IsChecked.HasValue && radioI.IsChecked.Value)//serail { mwd.isSerialMode = true; this.Close(); mwd.ShowDialog(); } else { mwd.isSerialMode = false; MatrixPage matrixPg = new MatrixPage(); matrixPg.prepareForParalConnect(); this.Close(); matrixPg.ShowDialog(); } }