public MiscellaneousPage() { this.InitializeComponent(); typeController = new TypeBS(); lsType = typeController.getTypes(); cbTypes.ItemsSource = lsType; cbTypes.DisplayMemberPath = "TypeName"; }
public TitlePage() { this.InitializeComponent(); TitleControler = new TitleBS(); TypeController = new TypeBS(); //lstTitle = new ObservableCollection<customTitle>(TitleControler.getTitles().Where(n => n.Deleted == false).ToList()); lsType = TypeController.getTypes(); Type.ItemsSource = lsType; lvTitle.ItemsSource = TitleControler.getTitles().Where(n => n.Deleted == false).ToList();//lstTitle; SetStatusTextBox(false); }