Пример #1
0
 private void OnSelectPath(object sender, RoutedEventArgs e)
 {
     if (DataContext is LauncherViewModel parentViewModel)
     {
         var viewModel = parentViewModel.SelectedClassicUOViewModel;
         viewModel.ClientExePath = PathPickerHelper.SelectPath(viewModel.ClientExePath, "*.exe|*.exe");
     }
 }
Пример #2
0
 private void OnSelectCrossPath(object sender, RoutedEventArgs e)
 {
     launcherViewModel.SelectedProfile.LauncherOptions.Cross.ClientExePath
         = PathPickerHelper.SelectPath(launcherViewModel.SelectedProfile.LauncherOptions.Orion.ClientExePath, "CrossUO|crossuo.exe|*.exe|*.exe");
 }
Пример #3
0
 private void OnSelectClassicPath(object sender, RoutedEventArgs e)
 {
     launcherViewModel.SelectedProfile.LauncherOptions.Official.ClientExePath
         = PathPickerHelper.SelectPath(launcherViewModel.SelectedProfile.LauncherOptions.Official.ClientExePath, "*.exe|*.exe");
 }
Пример #4
0
 private void OnSelectOrionPath(object sender, RoutedEventArgs e)
 {
     launcherViewModel.SelectedProfile.LauncherOptions.Orion.ClientExePath
         = PathPickerHelper.SelectPath(launcherViewModel.SelectedProfile.LauncherOptions.Orion.ClientExePath, "Orion|OrionUO.exe|*.exe|*.exe");
 }