Ejemplo n.º 1
0
 private void InitializeCommand()
 {
     HighSchoolCommand     = new HighSchoolCommand(this);
     FacultyCommand        = new FacultyCommand(this);
     ChairCommand          = new ChairCommand(this);
     SpecialtyCommand      = new SpecialtyCommand(this);
     SpecializationCommand = new SpecializationCommand(this);
     EmployeeCommand       = new EmployeeCommand(this);
 }
Ejemplo n.º 2
0
        protected override void OnViewLoaded(object view)
        {
            if (!context.Database.Exists())
            {
                IWindowManager            manager            = new WindowManager();
                DBInitializationViewModel dbInitializingView = new DBInitializationViewModel(context);
                manager.ShowDialog(dbInitializingView, null, null);
            }

            CreateButton          = CreateButton.Initialize();
            barrackCommand        = new BarrackCommand(CreateButton);
            teamCommand           = new TeamCommand(CreateButton);
            specializationCommand = new SpecializationCommand(CreateButton);
            rankCommand           = new RankCommand(CreateButton);
            permissionCommand     = new PermissionCommand(CreateButton);
            missionCommand        = new MissionCommand(CreateButton);
            equipmentCommand      = new EquipmentCommand(CreateButton);
            employeeCommand       = new EmployeeCommand(CreateButton);
            LoadBarrackPage();
        }