optimize<FolderDialog>: simplify FolderDialog interface

This commit is contained in:
leo 2020-11-23 14:02:13 +08:00
parent 5a9c4c32b0
commit 9d9e741aa5
6 changed files with 16 additions and 43 deletions

View file

@ -45,8 +45,9 @@ namespace SourceGit.UI {
/// <param name="sender"></param>
/// <param name="e"></param>
private void SelectParentFolder(object sender, RoutedEventArgs e) {
var dialog = new FolderDailog("Select folder to store repository", null);
dialog.Open(path => txtParentFolder.Text = path);
FolderDailog.Open("Select folder to store repository", path => {
txtParentFolder.Text = path;
});
}
/// <summary>