private void ProjectEditButton_Click(object sender, RoutedEventArgs e) { string title = (string)((Button)sender).Tag; foreach (var proj in Projects) { if (proj.Title == title) { EditProjectWindow win = new EditProjectWindow(proj, () => { UpdateProjectsList(); // Save(); }); win.Show(); } } }
private void PathTextBox_MouseDoubleClick(object sender, MouseButtonEventArgs e) { EditProjectWindow.OpenFolderDialog((TextBox)sender); }