コード例 #1
0
        /// <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);
        }
 /// <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;
 }