--- branches/mono/EmuXPortal/Form1.Designer.cs 2022/04/22 21:28:02 611 +++ branches/mono/EmuXPortal/Form1.Designer.cs 2022/04/22 21:30:03 612 @@ -41,7 +41,10 @@ namespace EmuXPortal { this.platform_flow.Size = new System.Drawing.Size (191, 160); this.platform_flow.TabIndex = 0; this.platform_flow.Visible = false; - this.platform_flow.VisibleChanged += new System.EventHandler (this.platform_flow_VisibleChanged); // + this.platform_flow.VisibleChanged += new System.EventHandler (this.platform_flow_VisibleChanged); + this.platform_flow.controlsRendered += ControlsRendered; + this.platform_flow.switchControls += SwitchControls; + // // rom_flow // this.rom_flow.AutoSize = false; @@ -51,14 +54,31 @@ namespace EmuXPortal { this.rom_flow.Size = new System.Drawing.Size (191, 160); this.rom_flow.TabIndex = 1; this.rom_flow.Visible = false; - this.rom_flow.VisibleChanged += new System.EventHandler (this.rom_flow_VisibleChanged); + this.rom_flow.VisibleChanged += new System.EventHandler (this.rom_flow_VisibleChanged); + this.rom_flow.controlsRendered += ControlsRendered; + this.rom_flow.switchControls += SwitchControls; + this.rom_flow.RomLaunched += Rom_Flow_RomLaunched; + // + // cache_worker // - // Form1 + this.cache_worker = new System.ComponentModel.BackgroundWorker (); + this.cache_worker.DoWork += Cache_Worker_DoWork; + this.cache_worker.RunWorkerCompleted += Cache_Worker_RunWorkerCompleted; + // + // config_worker // - //this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - //this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - //this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.config_worker = new System.ComponentModel.BackgroundWorker (); + this.config_worker.DoWork += Config_Worker_DoWork; + this.config_worker.RunWorkerCompleted += Config_Worker_RunWorkerCompleted; + // + // splash + // + this.splash = new Splash (); + // + // Form1 + // this.BackColor = System.Drawing.Color.Black; + this.ForeColor = System.Drawing.Color.LimeGreen; this.ClientSize = new System.Drawing.Size (421, 193); this.Controls.Add (this.rom_flow); this.Controls.Add (this.platform_flow); @@ -71,7 +91,15 @@ namespace EmuXPortal { this.FormClosing += new System.Windows.Forms.FormClosingEventHandler (this.Form1_FormClosing); this.FormClosed += new System.Windows.Forms.FormClosedEventHandler (this.Form1_FormClosed); this.Load += new System.EventHandler (this.Form1_Load); - this.Shown += new System.EventHandler (this.Form1_Shown); + + this.platform_flow.Font = this.Font; + this.rom_flow.Font = this.Font; + this.platform_flow.Parent = this; + this.rom_flow.Parent = this; + this.platform_flow.BackColor = this.BackColor; + this.platform_flow.ForeColor = this.ForeColor; + this.rom_flow.BackColor = this.BackColor; + this.rom_flow.ForeColor = this.ForeColor; this.ResumeLayout (false); } @@ -80,8 +108,10 @@ namespace EmuXPortal { //private PlatformContainer platform_flow; private GameGridContainer rom_flow; - private PlatformGridContrainer platform_flow; + private System.ComponentModel.BackgroundWorker cache_worker; + private System.ComponentModel.BackgroundWorker config_worker; + private Splash splash; } } |