/// <summary> /// /// </summary> /// <param name="db"></param> public AddPatientForm(PatientDatabase db) { this.db = db; this.SetDesktopLocation(this.db.DesktopLocation.X, this.db.DesktopLocation.Y); InitializeComponent(); }
/// <summary> /// Allows the game to perform any initialization it needs to before starting to run. /// This is where it can query for any required services and load any non-graphic /// related content. Calling base.Initialize will enumerate through any components /// and initialize them as well. /// </summary> protected override void Initialize() { User32.SetWindowPos((uint)this.Window.Handle, 1, -2000, 50, graphics.PreferredBackBufferWidth, graphics.PreferredBackBufferHeight, 0); //TODO: Add gamename and database name here. // eg.If game is Mountain, database is MountainDB. db = new PatientDatabase("Step Master", "Step MasterDB"); db.SetDesktopLocation(-800, 250); db.Show(); gui = new Setup(); gui.SetDesktopLocation(-800, 250); setupGUI = new MultiTracker.CalibrationForm(); bConfigChanged = true; bResumeFromPause = true; bSendExit = false; timeInGame = 0.0f; arrowTextures = new List<Texture2D>(); activeArrowTextures = new List<Texture2D>(); fontPosition = new Vector2(630, 700); base.Initialize(); }