Example #1
0
        public LoginWindow()
        {
            InitializeComponent();

            _context = new DormitoriesContext();

            var binding = new Binding()
            {
                Source = _context.ГруппыПользователей.Select(item => item.Group).ToList()
            };

            UserTypeBox.SetBinding(ComboBox.ItemsSourceProperty, binding);
            UserTypeBox.SelectedIndex = 0;
        }
 public DormitoriesContextProcedures(DormitoriesContext context)
 {
     _context = context;
 }