/// <summary> /// コンストラクタ /// </summary> public App() { // ViewModelとViewを関係づける Views = new ViewManager(); Views.Add(typeof(ViewModels.MainViewModel), typeof(Views.MainWindow)); Views.Add(typeof(ViewModels.SubViewModel), typeof(Views.SubWindow)); Views.Add(typeof(ViewModels.PreviewViewModel), typeof(Views.PreviewWindow)); }
protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); var mainPane = Content.Load <StackPane>("layout/stp_home"); viewManager.Add(new DemoView(mainPane)); }
/// <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() { #if DEBUG this.Window.Title = "Flux (Debug Mode) - v" + Version; this.IsMouseVisible = false; #else this.Window.Title = "Flux - v" + Version; #endif base.Initialize(); HUD.HUDObjects.Add(new CursorComponent(this)); HUD.HUDObjects.Add(new FPSComponent(this)); HUD.HUDObjects.Add(new CursorLocationComponent(this)); Components.Add(HUD); HUD.Initialize(); var button = new Button(this) { Bounds = new Rectangle(HUD.Width - 80, HUD.Height - 35, 40, 20) }; ViewManager.Add(button); }
protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); var homePane = Content.Load <StackPane>("layout/panes/homepane"); viewManager.Add(new SessionView(homePane)); base.LoadContent(); }
protected override void LoadContent() { MainMenuView menuView = new MainMenuView(this); spriteBatch = new SpriteBatch(GraphicsDevice); viewManager.Add(menuView); // This ensures a change in the window mode which // therefore (hopefully) guaranties the proper // alignment of the main container in Windowed mode. ApplyWindowMode(WindowMode.Windowed); ApplyWindowMode(WindowMode.Fullscreen); ApplyWindowMode(Settings.WindowMode); }
private void InitializeViewManager() { //throw new NotImplementedException(); viewManager = new ViewManager(this); viewManager.Add(choroplethMap, splitContainer2.Panel1); viewManager.Add(component, splitContainer2.Panel2); viewManager.Add(this.tableLensA.tablelens, this.BarGraphContainer.Panel1); viewManager.Add(this.tableLensB.tablelens, this.BarGraphContainer.Panel2); viewManager.Add(this.parallelCoordinatesPlot, this.FilterContainer.Panel2); viewManager.InvalidateAll(); }