public IndividualPage() { this.InitializeComponent(); TitleControler = new TitleBS(); DiskControler = new DiskBS(); lsDisk = new ObservableCollection <customDisk>(DiskControler.getDisks()); lvDisk.ItemsSource = lsDisk; cbTitle.ItemsSource = TitleControler.getTitlesMain(); cbTitle.DisplayMemberPath = "Name"; SetStatusTextBox(false); }
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); }