Example #1
0
        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);
        }
Example #2
0
 private void WriteJoe_Click(object sender, RoutedEventArgs e)
 {
     guyManager.WriteGuy(guyManager.Joe);
 }