コード例 #1
0
 public MiscellaneousPage()
 {
     this.InitializeComponent();
     typeController            = new TypeBS();
     lsType                    = typeController.getTypes();
     cbTypes.ItemsSource       = lsType;
     cbTypes.DisplayMemberPath = "TypeName";
 }
コード例 #2
0
        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);
        }