void ReleaseDesignerOutlets() { if (NoneUISwitch != null) { NoneUISwitch.Dispose(); NoneUISwitch = null; } if (AmexSwitch != null) { AmexSwitch.Dispose(); AmexSwitch = null; } if (ArrowIcon != null) { ArrowIcon.Dispose(); ArrowIcon = null; } if (AVSSwitch != null) { AVSSwitch.Dispose(); AVSSwitch = null; } if (MaestroSwitch != null) { MaestroSwitch.Dispose(); MaestroSwitch = null; } if (RiskSwitch != null) { RiskSwitch.Dispose(); RiskSwitch = null; } if (ThreeDSwitch != null) { ThreeDSwitch.Dispose(); ThreeDSwitch = null; } if (View != null) { View.Dispose(); View = null; } }
/// <summary> /// This method is required for Windows Forms designer support. /// Do not change the method contents inside the source code editor. The Forms designer might /// not be able to load this method if it was changed manually. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); this.opcjeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.backgroundWorker = new System.ComponentModel.BackgroundWorker(); this.arrowIcon1 = new TV_Calendar.ArrowIcon(); this.dayLabel = new TV_Calendar.CustomLabel(); this.thLabel = new TV_Calendar.CustomLabel(); this.numberLabel = new TV_Calendar.CustomLabel(); this.contextMenuStrip1.SuspendLayout(); this.SuspendLayout(); // // contextMenuStrip1 // this.contextMenuStrip1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(44)))), ((int)(((byte)(44))))); this.contextMenuStrip1.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.opcjeToolStripMenuItem, this.exitToolStripMenuItem}); this.contextMenuStrip1.Name = "contextMenuStrip1"; this.contextMenuStrip1.ShowImageMargin = false; this.contextMenuStrip1.ShowItemToolTips = false; this.contextMenuStrip1.Size = new System.Drawing.Size(93, 48); // // opcjeToolStripMenuItem // this.opcjeToolStripMenuItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.opcjeToolStripMenuItem.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); this.opcjeToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.opcjeToolStripMenuItem.Name = "opcjeToolStripMenuItem"; this.opcjeToolStripMenuItem.Size = new System.Drawing.Size(92, 22); this.opcjeToolStripMenuItem.Text = "Opcje"; this.opcjeToolStripMenuItem.Click += new System.EventHandler(this.optionsMenuItem); this.opcjeToolStripMenuItem.MouseEnter += new System.EventHandler(this.menuItemEnter); this.opcjeToolStripMenuItem.MouseLeave += new System.EventHandler(this.menuItemLeave); // // exitToolStripMenuItem // this.exitToolStripMenuItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.exitToolStripMenuItem.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); this.exitToolStripMenuItem.ForeColor = System.Drawing.Color.White; this.exitToolStripMenuItem.Name = "exitToolStripMenuItem"; this.exitToolStripMenuItem.Size = new System.Drawing.Size(92, 22); this.exitToolStripMenuItem.Text = "Exit"; this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitMenuItem); this.exitToolStripMenuItem.MouseEnter += new System.EventHandler(this.menuItemEnter); this.exitToolStripMenuItem.MouseLeave += new System.EventHandler(this.menuItemLeave); // // backgroundWorker // this.backgroundWorker.WorkerReportsProgress = true; this.backgroundWorker.DoWork += new System.ComponentModel.DoWorkEventHandler(this.BackgroundWorker_DoWork); this.backgroundWorker.ProgressChanged += new System.ComponentModel.ProgressChangedEventHandler(this.BackgroundWorker_Progress); this.backgroundWorker.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.BackgroundWorker_Completed); // // arrowIcon1 // this.arrowIcon1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); this.arrowIcon1.Font = new System.Drawing.Font("Arial", 39.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); this.arrowIcon1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(74)))), ((int)(((byte)(74)))), ((int)(((byte)(74))))); this.arrowIcon1.Location = new System.Drawing.Point(218, 0); this.arrowIcon1.Name = "arrowIcon1"; this.arrowIcon1.Size = new System.Drawing.Size(39, 38); this.arrowIcon1.TabIndex = 4; this.arrowIcon1.Text = this.arrowIcon1.RightArrow; this.arrowIcon1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.arrowIcon1.Click += new System.EventHandler(this.arrowClick); this.arrowIcon1.MouseEnter += new System.EventHandler(this.arrowEnter); this.arrowIcon1.MouseLeave += new System.EventHandler(this.arrowLeave); // // dayLabel // this.dayLabel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); this.dayLabel.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); this.dayLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(170))))); this.dayLabel.Location = new System.Drawing.Point(45, 19); this.dayLabel.Margin = new System.Windows.Forms.Padding(0); this.dayLabel.Name = "dayLabel"; this.dayLabel.Size = new System.Drawing.Size(163, 19); this.dayLabel.TabIndex = 3; this.dayLabel.Text = "th"; this.dayLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // thLabel // this.thLabel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); this.thLabel.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); this.thLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(170))))); this.thLabel.Location = new System.Drawing.Point(42, 0); this.thLabel.Margin = new System.Windows.Forms.Padding(0); this.thLabel.Name = "thLabel"; this.thLabel.Size = new System.Drawing.Size(166, 19); this.thLabel.TabIndex = 2; this.thLabel.Text = "th"; this.thLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // numberLabel // this.numberLabel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); this.numberLabel.Font = new System.Drawing.Font("Arial", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); this.numberLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(170))))); this.numberLabel.Location = new System.Drawing.Point(0, 0); this.numberLabel.Margin = new System.Windows.Forms.Padding(0); this.numberLabel.Name = "numberLabel"; this.numberLabel.Size = new System.Drawing.Size(53, 38); this.numberLabel.TabIndex = 0; this.numberLabel.Text = "30"; this.numberLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // MainForm // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); this.ClientSize = new System.Drawing.Size(265, 38); this.ContextMenuStrip = this.contextMenuStrip1; this.Controls.Add(this.arrowIcon1); this.Controls.Add(this.dayLabel); this.Controls.Add(this.thLabel); this.Controls.Add(this.numberLabel); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "MainForm"; this.ShowIcon = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "TV Calendar"; this.TopMost = true; this.MouseWheel += new System.Windows.Forms.MouseEventHandler(this.MainForm_MouseWheel); this.contextMenuStrip1.ResumeLayout(false); this.ResumeLayout(false); }
public void LoadContentHUD(ContentManager theContentManager) { this.LoadContent(theContentManager); GoldIcon.LoadContent(theContentManager); ArrowIcon.LoadContent(theContentManager); }
public void DrawHUD(SpriteBatch theSpriteBatch, ContentManager theContentManager) { this.Draw(theSpriteBatch, theContentManager); GoldIcon.Draw(theSpriteBatch, theContentManager); ArrowIcon.Draw(theSpriteBatch, theContentManager); }