private void OnSelectPath(object sender, RoutedEventArgs e) { if (DataContext is LauncherViewModel parentViewModel) { var viewModel = parentViewModel.SelectedClassicUOViewModel; viewModel.ClientExePath = PathPickerHelper.SelectPath(viewModel.ClientExePath, "*.exe|*.exe"); } }
private void OnSelectCrossPath(object sender, RoutedEventArgs e) { launcherViewModel.SelectedProfile.LauncherOptions.Cross.ClientExePath = PathPickerHelper.SelectPath(launcherViewModel.SelectedProfile.LauncherOptions.Orion.ClientExePath, "CrossUO|crossuo.exe|*.exe|*.exe"); }
private void OnSelectClassicPath(object sender, RoutedEventArgs e) { launcherViewModel.SelectedProfile.LauncherOptions.Official.ClientExePath = PathPickerHelper.SelectPath(launcherViewModel.SelectedProfile.LauncherOptions.Official.ClientExePath, "*.exe|*.exe"); }
private void OnSelectOrionPath(object sender, RoutedEventArgs e) { launcherViewModel.SelectedProfile.LauncherOptions.Orion.ClientExePath = PathPickerHelper.SelectPath(launcherViewModel.SelectedProfile.LauncherOptions.Orion.ClientExePath, "Orion|OrionUO.exe|*.exe|*.exe"); }