private void SaveGuy(Guy guy) { var saveDialog = new SaveFileDialog { FileName = guy.Name, DefaultExt = DefaultExt, Filter = Filter }; if (saveDialog.ShowDialog() != true) { return; } _guyManager.WriteGuy(guy, saveDialog.FileName); }
private void WriteJoe_Click(object sender, RoutedEventArgs e) { guyManager.WriteGuy(guyManager.Joe); }