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; }
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); }