SeriesSelectorWindow.xaml 的交互逻辑
 public static Series Select(Window parent, Series without = null)
 {
     var window = new SeriesSelectorWindow { Owner = parent };
     if (without != null)
     {
         window.seriesSelectorPage.SelectorViewModel.Withouts.Add(without.Id);
     }
     if (window.ShowDialog() == true) return window.seriesSelectorPage.SelectorViewModel.Items.Selected;
     return null;
 }
示例#2
0
        public static Series Select(Window parent, Series without = null)
        {
            var window = new SeriesSelectorWindow {
                Owner = parent
            };

            if (without != null)
            {
                window.seriesSelectorPage.SelectorViewModel.Withouts.Add(without.Id);
            }
            if (window.ShowDialog() == true)
            {
                return(window.seriesSelectorPage.SelectorViewModel.Items.Selected);
            }
            return(null);
        }