private void AddClick(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(Directory.Text) || string.IsNullOrEmpty(LocalPath.Text))
{
MessageBox.Show("A remote path and local path are required");
return;
}
Cursor.Current = Cursors.WaitCursor;
var addSubmoduleCmd = GitCommands.GitCommands.AddSubmoduleCmd(Directory.Text, LocalPath.Text, Branch.Text);
new FormProcess(addSubmoduleCmd).ShowDialog();
Close();
Cursor.Current = Cursors.Default;
}