private void SaveProject_OnClick(object sender, RoutedEventArgs e) { var saveFileDialog = new SaveFileDialog() { Filter = "Planning Game File (*.rplg)|*.rplg" }; if (saveFileDialog.ShowDialog() == true) { SaveProject?.Invoke(this, new FileEventArgs(saveFileDialog.FileName)); } }
private void ButtonSave_Click(object sender, RoutedEventArgs e) { SaveProject?.Invoke(sender, EventArgs.Empty); }