void LoadMap(object arg) { if (!_openDialog.OpenMapDialog()) { return; } IsVisible = Visibility.Hidden; if (_map.LoadMap(_openDialog.FileName)) { UpdateData(); } }