private void Ok_Click(object sender, EventArgs e) { try { OutPut.Text = ""; RepositoryHistory.AddMostRecentRepository(From.Text); RepositoryHistory.AddMostRecentRepository(To.Text); CloneDto dto = new CloneDto(From.Text, To.Text); GitCommands.Clone commit = new GitCommands.Clone(dto); commit.Execute(); OutPut.Text = "Command executed \n" + dto.Result; } catch { } }
public Clone(CloneDto dto) { this.Dto = dto; }