private void processStart(FormStatus form) { restart = false; AddOutput(ProcessString + " " + ProcessArguments); Plink = GitCommands.GitCommands.Plink(); gitCommand = new GitCommands.GitCommands(); gitCommand.CollectOutput = false; Process = gitCommand.CmdStartProcess(ProcessString, ProcessArguments); gitCommand.Exited += new EventHandler(gitCommand_Exited); gitCommand.DataReceived += new DataReceivedEventHandler(gitCommand_DataReceived); }
private void Start() { restart = false; Output.Text = ""; AddOutput(ProcessString + " " + ProcessArguments); Plink = GitCommands.GitCommands.Plink(); ProgressBar.Visible = true; outputString = new StringBuilder(); gitCommand = new GitCommands.GitCommands(); gitCommand.CollectOutput = false; Process = gitCommand.CmdStartProcess(ProcessString, ProcessArguments); gitCommand.Exited += new EventHandler(gitCommand_Exited); gitCommand.DataReceived += new DataReceivedEventHandler(gitCommand_DataReceived); Ok.Enabled = false; }
private void FormProcess_Load(object sender, EventArgs e) { AddOutput(ProcessString + " " + ProcessArguments); ProgressBar.Visible = true; gitCommand = new GitCommands.GitCommands(); gitCommand.CollectOutput = false; gitCommand.CmdStartProcess(ProcessString, ProcessArguments); gitCommand.Exited += new EventHandler(gitCommand_Exited); gitCommand.DataReceived += new DataReceivedEventHandler(gitCommand_DataReceived); Ok.Enabled = false; }