コード例 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Output.Text = "";

            AddFilesDto dto = new AddFilesDto(Filter.Text);
            GitCommands.AddFiles cmd = new GitCommands.AddFiles(dto);
            cmd.Execute();

            Output.Text = "Command executed \n" + dto.Result;
        }
コード例 #2
0
ファイル: Commit.cs プロジェクト: OldPaladin/gitextensions
        private void Stage_Click(object sender, EventArgs e)
        {
            string result = "";
            foreach (DataGridViewRow row in Untracked.SelectedRows)
            {
                if (row.DataBoundItem is GitItemStatus)
                {
                    GitItemStatus item = (GitItemStatus)row.DataBoundItem;

                    AddFilesDto dto = new AddFilesDto(item.Name);
                    AddFiles addFiles = new AddFiles(dto);
                    addFiles.Execute();

                    result += dto.Result + "\n";

                }
            }

            if (result.Length > 0)
                OutPut.Text = result;

            Initialize();
        }