public static SelectResult <JryVideoInfo> Select(Window parent, SeriesViewModel source, JryVideoInfo without = null, string defaultId = null) { var dialog = new VideoSelectorWindow() { Owner = parent }; if (without != null) { dialog.SelectVideoControl.ViewModel.Withouts.Add(without.Id); } dialog.SelectVideoControl.Initialize(source, defaultId); return(dialog.ShowDialog() == true ? SelectResult <JryVideoInfo> .Selected(dialog.SelectVideoControl.ViewModel.Items.Selected?.Source) : SelectResult <JryVideoInfo> .NonAccept); }