예제 #1
0
        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();
        }
예제 #2
0
 private void PatchButton_Click(object sender, EventArgs e)
 {
     HostFileManager.Patch();
 }