private void PatchButton_Click(object sender, EventArgs e) { Process pps = HostFileManager.Patch(); pps.BeginOutputReadLine(); pps.BeginErrorReadLine(); pps.OutputDataReceived += (object send, DataReceivedEventArgs ee) => status.AppendText(ee.Data + Environment.NewLine); pps.ErrorDataReceived += (object send, DataReceivedEventArgs ee) => status.AppendText(ee.Data + Environment.NewLine); pps.WaitForExit(); }
private void PatchButton_Click(object sender, EventArgs e) { HostFileManager.Patch(); }