private void btnOpenFile_Click(object sender, RoutedEventArgs e) { txbLog.Clear(); gp = new GenProcess(AppendLog); txbSourcePci.Text = PciHelper.GetPci(gp.Filenames[0]); }
private void btnRun_Click(object sender, RoutedEventArgs e) { if (IsCanWork) { txbLog.Clear(); int sourcePci = Convert.ToInt32(txbSourcePci.Text); int newpci = Convert.ToInt32(txbNewPci.Text); pci = new PciHelper(sourcePci, newpci); gp.pcihelper = pci; Thread th = new Thread(gp.Run) { IsBackground = true }; th.Start(); } }