WithMode() private method

private WithMode ( ViewMode mode ) : void
mode ViewMode
return void
 public static string StartSelectFanartByImdbId(Window parent, string index, params RemoteId[] ids)
 {
     var client = JryVideoCore.Current.GetTheTVDBClient();
     if (client == null)
     {
         parent.ShowJryVideoMessage("error", "TheTVDB init failed, try again.");
         return null;
     }
     var dlg = new WebImageSelectorWindow() { Owner = parent };
     dlg.WithMode(ViewMode.Mode2);
     dlg.ViewModel.BeginLoadFanartByImdbId(client, index, ids);
     return dlg.ShowDialog() == true ? dlg.ViewModel.SelectedUrl : null;
 }
        public static string StartSelectFanartByImdbId(Window parent, string index, params RemoteId[] ids)
        {
            var client = JryVideoCore.Current.GetTheTVDBClient();

            if (client == null)
            {
                parent.ShowJryVideoMessage("error", "TheTVDB init failed, try again.");
                return(null);
            }
            var dlg = new WebImageSelectorWindow()
            {
                Owner = parent
            };

            dlg.WithMode(ViewMode.Mode2);
            dlg.ViewModel.BeginLoadFanartByImdbId(client, index, ids);
            return(dlg.ShowDialog() == true ? dlg.ViewModel.SelectedUrl : null);
        }