private void btnStartApp_Click(object sender, EventArgs e) { try { TestLib.Logfile = "c:\\testlog.log"; TestLib.StartProgram(txtAppName.Text); } catch (Exception ex) { MessageBox.Show(ex.Message.ToString()); } }
public void StartProgram(string strAppname) { try { TestLib.LogFile = "c:\\testlog.log"; TestLib.StartProgram(txtAppname.Text); } catch (Exception ex) { MessageBox.Show(ex.Message.ToString()); } }