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); }
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(); }