示例#1
0
        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);
        }
示例#2
0
        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;
        }
示例#3
0
        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;
        }