Exemple #1
0
 public WindowEmployeeCreate(Game_CenterEntities context1)
 {
     InitializeComponent();
     context = context1;
     cmbPositions.ItemsSource = context.Position.ToList();
     cmbGender.ItemsSource    = context.Gender.ToList();
 }
Exemple #2
0
 public UserControlCreateEmployee()
 {
     InitializeComponent();
     context = new Game_CenterEntities();
     cmbPositions.ItemsSource = context.Position.ToList();
     cmbGender.ItemsSource    = context.Gender.ToList();
 }
 public UserControlGameProperties()
 {
     InitializeComponent();
     context                 = new Game_CenterEntities();
     DGGenre.ItemsSource     = context.Genre.ToList();
     DGPlatform.ItemsSource  = context.Platform.ToList();
     DGPublisher.ItemsSource = context.Publisher.ToList();
 }
Exemple #4
0
 public UserControlGameCreate(Game_CenterEntities context)
 {
     InitializeComponent();
     _context = context;
     cmbAgeLimit.ItemsSource      = _context.AgeLimit.ToList();
     cmbGameGenre.ItemsSource     = _context.Genre.ToList();
     cmbGamePlatform.ItemsSource  = _context.Platform.ToList();
     cmbGamePublisher.ItemsSource = _context.Publisher.ToList();
 }
        public WindowGameEdit(Game_CenterEntities context, GameInfo newGame)
        {
            InitializeComponent();
            this.context     = context;
            this.DataContext = newGame;

            cmbAgeLimit.ItemsSource      = context.AgeLimit.ToList();
            cmbGameGenre.ItemsSource     = context.Genre.ToList();
            cmbGamePlatform.ItemsSource  = context.Platform.ToList();
            cmbGamePublisher.ItemsSource = context.Publisher.ToList();

            if (newGame != null)
            {
                txtNewGame.Text = newGame.Games.Name;
            }
        }
        public PageAdmin()
        {
            InitializeComponent();
            context = new Game_CenterEntities();
            var menuTables = new List <SubItem>();

            menuTables.Add(new SubItem("Товар на складе", new UserControlDashboard()));
            menuTables.Add(new SubItem("+ добавить товар", new UserControlGameCreate(context)));
            menuTables.Add(new SubItem("Дополнительно", new UserControlGameProperties()));
            var item0        = new ItemMenu("Товары", menuTables, PackIconKind.Table);
            var menuEmployee = new List <SubItem>();

            menuEmployee.Add(new SubItem("Список сотрудников", new UserControlEmployee()));
            menuEmployee.Add(new SubItem(" + добавить сотрудника", new UserControlCreateEmployee()));
            var item1      = new ItemMenu("Сотрудники", menuEmployee, PackIconKind.CustomerService);
            var menuOtchot = new List <SubItem>();

            menuOtchot.Add(new SubItem("Отчет по продажам за месяц", new UserControlOtchot()));
            var item2 = new ItemMenu("Отчеты", menuOtchot, PackIconKind.FileDocument);

            Menu.Children.Add(new UserControlMenuItem(item0, this));
            Menu.Children.Add(new UserControlMenuItem(item1, this));
            Menu.Children.Add(new UserControlMenuItem(item2, this));
        }
 public WindowPlatform()
 {
     InitializeComponent();
     context = new Game_CenterEntities();
 }
 //Timer timer;
 public PageAufth()
 {
     InitializeComponent();
     context = new Game_CenterEntities();
 }
 public UserControlEmployee()
 {
     InitializeComponent();
     context = new Game_CenterEntities();
     DataGridEmployee.ItemsSource = context.EmployeeInfo.ToList();
 }
 public WindowPublisher()
 {
     InitializeComponent();
     context = new Game_CenterEntities();
 }
 public WindowGenre(DataGrid DG, Genre genre)
 {
     InitializeComponent();
     context        = new Game_CenterEntities();
     DG.ItemsSource = context.Genre.ToList();
 }