Example #1
0
 public override void RegisterManagers()
 {
     base.RegisterManagers();
     this.Managers.AddManager(new WaveEngine.Bullet.BulletPhysicManager3D());
     Managers.FindManager <RenderManager>().FindRenderFeature <MeshRenderFeature>().RegisterMeshProcessor(new MyInstancingMeshProcessor());
     //var r = Managers.FindManager<RenderManager>();
     //var feature = r.FindRenderFeature<MeshRenderFeature>();
     //var ir = new MyInstancingMeshProcessor();
     //feature.RegisterMeshProcessor(ir);
 }
Example #2
0
 public void LogInExecute()
 {
     if (Username == "WPFadmin" && Password == "WPFadmin")
     {
         AdminView admin = new AdminView();
         admin.ShowDialog();
     }
     else if (employees.FindEmployee(Username, Password) != null)
     {
         Employee = employees.FindEmployee(Username, Password);
         EmployeeView employeeView = new EmployeeView(Employee);
         employeeView.ShowDialog();
     }
     else
     {
         Manager = managers.FindManager(Username, Password);
         ManagerView managerView = new ManagerView(Manager);
         managerView.ShowDialog();
     }
 }