/// <summary> /// Prompts the user to choose from a list of versions the allocation for that version. /// </summary> /// <param name="versions">The list of version ids from which to choose.</param> /// <returns>The <seealso cref="AddTrafficSplitResult"/> if the user accepted the changes, null otherwise.</returns> public static AddTrafficSplitResult PromptUser(IEnumerable <string> versions) { var dialog = new AddTrafficSplitWindow(versions); dialog.ShowModal(); return(dialog.ViewModel.Result); }
public AddTrafficSplitViewModel(AddTrafficSplitWindow owner, IEnumerable <string> versions) { _owner = owner; Versions = versions; SelectedVersion = Versions.FirstOrDefault(); AddSplitCommand = new ProtectedCommand(OnAddSplitCommand); }
public AddTrafficSplitViewModel(AddTrafficSplitWindow owner, IEnumerable<string> versions) { _owner = owner; Versions = versions; SelectedVersion = Versions.FirstOrDefault(); AddSplitCommand = new ProtectedCommand(OnAddSplitCommand); }
/// <summary> /// Prompts the user to choose from a list of versions the allocation for that version. /// </summary> /// <param name="versions">The list of version ids from which to choose.</param> /// <returns>The <seealso cref="AddTrafficSplitResult"/> if the user accepted the changes, null otherwise.</returns> public static AddTrafficSplitResult PromptUser(IEnumerable<string> versions) { var dialog = new AddTrafficSplitWindow(versions); dialog.ShowModal(); return dialog.ViewModel.Result; }