Ejemplo n.º 1
0
        private void ReadNewGuy_OnClick(object sender, RoutedEventArgs e)
        {
            var guyFile = string.IsNullOrEmpty(_guyManager.GuyFile) ? "" : _guyManager.GuyFile;

            var openDialog = new OpenFileDialog
            {
                FileName   = Path.GetFileName(guyFile),
                DefaultExt = DefaultExt,
                Filter     = Filter
            };

            if (openDialog.ShowDialog() != true)
            {
                return;
            }
            _guyManager.ReadGuy(openDialog.FileName);
        }
Ejemplo n.º 2
0
 private void ReadNewGuy_Click(object sender, RoutedEventArgs e)
 {
     guyManager.ReadGuy();
 }