private void BChangePath_Click(object sender, EventArgs e) { if (FBDPath.ShowDialog() == DialogResult.OK) { SelectedPath = FBDPath.SelectedPath; LBPath.Text = SelectedPath; } }
private void btnChoose_Click(object sender, EventArgs e) { try { if (FBDPath.ShowDialog() != DialogResult.OK) return; tbChosenPath.Text = $"Chosen Path: {FBDPath.SelectedPath}"; tbRepoID.Text = FBDPath.SelectedPath.Substring(FBDPath.SelectedPath.LastIndexOf('\\') + 1); } catch (Exception ex) { MessageBox.Show(ex.Message, ex.GetType().FullName, MessageBoxButtons.OK, MessageBoxIcon.Error); } }