Esempio n. 1
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(EncounterReportForm));

            this.Browser               = new WebBrowser();
            this.Toolbar               = new ToolStrip();
            this.ReportBtn             = new ToolStripDropDownButton();
            this.ReportTime            = new ToolStripMenuItem();
            this.ReportDamageEnemies   = new ToolStripMenuItem();
            this.ReportDamageAllies    = new ToolStripMenuItem();
            this.ReportMovement        = new ToolStripMenuItem();
            this.BreakdownBtn          = new ToolStripDropDownButton();
            this.BreakdownIndividually = new ToolStripMenuItem();
            this.BreakdownByController = new ToolStripMenuItem();
            this.BreakdownByFaction    = new ToolStripMenuItem();
            this.toolStripSeparator1   = new ToolStripSeparator();
            this.PlayerViewBtn         = new ToolStripButton();
            this.ExportBtn             = new ToolStripButton();
            this.Splitter              = new SplitContainer();
            this.Graph = new DemographicsPanel();
            this.toolStripSeparator2 = new ToolStripSeparator();
            this.MVPLbl = new ToolStripLabel();
            this.Toolbar.SuspendLayout();
            this.Splitter.Panel1.SuspendLayout();
            this.Splitter.Panel2.SuspendLayout();
            this.Splitter.SuspendLayout();
            base.SuspendLayout();
            this.Browser.Dock = DockStyle.Fill;
            this.Browser.IsWebBrowserContextMenuEnabled = false;
            this.Browser.Location = new Point(0, 0);
            this.Browser.Name     = "Browser";
            this.Browser.ScriptErrorsSuppressed = true;
            this.Browser.Size     = new System.Drawing.Size(404, 266);
            this.Browser.TabIndex = 2;
            this.Browser.WebBrowserShortcutsEnabled = false;
            ToolStripItemCollection items = this.Toolbar.Items;

            ToolStripItem[] reportBtn = new ToolStripItem[] { this.ReportBtn, this.BreakdownBtn, this.toolStripSeparator1, this.PlayerViewBtn, this.ExportBtn, this.toolStripSeparator2, this.MVPLbl };
            items.AddRange(reportBtn);
            this.Toolbar.Location       = new Point(0, 0);
            this.Toolbar.Name           = "Toolbar";
            this.Toolbar.Size           = new System.Drawing.Size(811, 25);
            this.Toolbar.TabIndex       = 3;
            this.Toolbar.Text           = "toolStrip1";
            this.ReportBtn.DisplayStyle = ToolStripItemDisplayStyle.Text;
            ToolStripItemCollection dropDownItems = this.ReportBtn.DropDownItems;

            ToolStripItem[] reportTime = new ToolStripItem[] { this.ReportTime, this.ReportDamageEnemies, this.ReportDamageAllies, this.ReportMovement };
            dropDownItems.AddRange(reportTime);
            this.ReportBtn.Image = (Image)componentResourceManager.GetObject("ReportBtn.Image");
            this.ReportBtn.ImageTransparentColor = Color.Magenta;
            this.ReportBtn.Name             = "ReportBtn";
            this.ReportBtn.Size             = new System.Drawing.Size(84, 22);
            this.ReportBtn.Text             = "Report Type";
            this.ReportTime.Name            = "ReportTime";
            this.ReportTime.Size            = new System.Drawing.Size(218, 22);
            this.ReportTime.Text            = "Time Taken";
            this.ReportTime.Click          += new EventHandler(this.ReportTime_Click);
            this.ReportDamageEnemies.Name   = "ReportDamageEnemies";
            this.ReportDamageEnemies.Size   = new System.Drawing.Size(218, 22);
            this.ReportDamageEnemies.Text   = "Damage Done (to enemies)";
            this.ReportDamageEnemies.Click += new EventHandler(this.ReportDamageEnemies_Click);
            this.ReportDamageAllies.Name    = "ReportDamageAllies";
            this.ReportDamageAllies.Size    = new System.Drawing.Size(218, 22);
            this.ReportDamageAllies.Text    = "Damage Done (to allies)";
            this.ReportDamageAllies.Click  += new EventHandler(this.ReportDamageAllies_Click);
            this.ReportMovement.Name        = "ReportMovement";
            this.ReportMovement.Size        = new System.Drawing.Size(218, 22);
            this.ReportMovement.Text        = "Movement";
            this.ReportMovement.Click      += new EventHandler(this.ReportMovement_Click);
            this.BreakdownBtn.DisplayStyle  = ToolStripItemDisplayStyle.Text;
            ToolStripItemCollection toolStripItemCollections = this.BreakdownBtn.DropDownItems;

            ToolStripItem[] breakdownIndividually = new ToolStripItem[] { this.BreakdownIndividually, this.BreakdownByController, this.BreakdownByFaction };
            toolStripItemCollections.AddRange(breakdownIndividually);
            this.BreakdownBtn.Image = (Image)componentResourceManager.GetObject("BreakdownBtn.Image");
            this.BreakdownBtn.ImageTransparentColor = Color.Magenta;
            this.BreakdownBtn.Name                   = "BreakdownBtn";
            this.BreakdownBtn.Size                   = new System.Drawing.Size(70, 22);
            this.BreakdownBtn.Text                   = "Grouping";
            this.BreakdownIndividually.Name          = "BreakdownIndividually";
            this.BreakdownIndividually.Size          = new System.Drawing.Size(183, 22);
            this.BreakdownIndividually.Text          = "Individually (default)";
            this.BreakdownIndividually.Click        += new EventHandler(this.BreakdownIndividually_Click);
            this.BreakdownByController.Name          = "BreakdownByController";
            this.BreakdownByController.Size          = new System.Drawing.Size(183, 22);
            this.BreakdownByController.Text          = "By Controller";
            this.BreakdownByController.Click        += new EventHandler(this.BreakdownByController_Click);
            this.BreakdownByFaction.Name             = "BreakdownByFaction";
            this.BreakdownByFaction.Size             = new System.Drawing.Size(183, 22);
            this.BreakdownByFaction.Text             = "By Faction";
            this.BreakdownByFaction.Click           += new EventHandler(this.BreakdownByFaction_Click);
            this.toolStripSeparator1.Name            = "toolStripSeparator1";
            this.toolStripSeparator1.Size            = new System.Drawing.Size(6, 25);
            this.PlayerViewBtn.DisplayStyle          = ToolStripItemDisplayStyle.Text;
            this.PlayerViewBtn.Image                 = (Image)componentResourceManager.GetObject("PlayerViewBtn.Image");
            this.PlayerViewBtn.ImageTransparentColor = Color.Magenta;
            this.PlayerViewBtn.Name                  = "PlayerViewBtn";
            this.PlayerViewBtn.Size                  = new System.Drawing.Size(114, 22);
            this.PlayerViewBtn.Text                  = "Send to Player View";
            this.PlayerViewBtn.Click                += new EventHandler(this.PlayerViewBtn_Click);
            this.ExportBtn.DisplayStyle              = ToolStripItemDisplayStyle.Text;
            this.ExportBtn.Image = (Image)componentResourceManager.GetObject("ExportBtn.Image");
            this.ExportBtn.ImageTransparentColor = Color.Magenta;
            this.ExportBtn.Name    = "ExportBtn";
            this.ExportBtn.Size    = new System.Drawing.Size(44, 22);
            this.ExportBtn.Text    = "Export";
            this.ExportBtn.Click  += new EventHandler(this.ExportBtn_Click);
            this.Splitter.Dock     = DockStyle.Fill;
            this.Splitter.Location = new Point(0, 25);
            this.Splitter.Name     = "Splitter";
            this.Splitter.Panel1.Controls.Add(this.Browser);
            this.Splitter.Panel2.Controls.Add(this.Graph);
            this.Splitter.Size             = new System.Drawing.Size(811, 266);
            this.Splitter.SplitterDistance = 404;
            this.Splitter.TabIndex         = 4;
            this.Graph.Dock               = DockStyle.Fill;
            this.Graph.Library            = null;
            this.Graph.Location           = new Point(0, 0);
            this.Graph.Mode               = DemographicsMode.Level;
            this.Graph.Name               = "Graph";
            this.Graph.Size               = new System.Drawing.Size(403, 266);
            this.Graph.Source             = DemographicsSource.Creatures;
            this.Graph.TabIndex           = 0;
            this.toolStripSeparator2.Name = "toolStripSeparator2";
            this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25);
            this.MVPLbl.Name              = "MVPLbl";
            this.MVPLbl.Size              = new System.Drawing.Size(39, 22);
            this.MVPLbl.Text              = "[mvp]";
            base.AutoScaleDimensions      = new SizeF(6f, 13f);
            base.AutoScaleMode            = System.Windows.Forms.AutoScaleMode.Font;
            base.ClientSize               = new System.Drawing.Size(811, 291);
            base.Controls.Add(this.Splitter);
            base.Controls.Add(this.Toolbar);
            base.MaximizeBox   = false;
            base.MinimizeBox   = false;
            base.Name          = "EncounterReportForm";
            base.ShowIcon      = false;
            base.ShowInTaskbar = false;
            base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
            base.StartPosition = FormStartPosition.CenterParent;
            this.Text          = "Encounter Report";
            this.Toolbar.ResumeLayout(false);
            this.Toolbar.PerformLayout();
            this.Splitter.Panel1.ResumeLayout(false);
            this.Splitter.Panel2.ResumeLayout(false);
            this.Splitter.ResumeLayout(false);
            base.ResumeLayout(false);
            base.PerformLayout();
        }
Esempio n. 2
0
        private void InitializeComponent()
        {
            ComponentResourceManager resources = new ComponentResourceManager(typeof(DemographicsForm));

            this.Toolbar        = new ToolStrip();
            this.LevelBtn       = new ToolStripButton();
            this.RoleBtn        = new ToolStripButton();
            this.BreakdownPanel = new DemographicsPanel();
            this.StatusBtn      = new ToolStripButton();
            this.Toolbar.SuspendLayout();
            base.SuspendLayout();
            ToolStripItem[] levelBtn = new ToolStripItem[] { this.LevelBtn, this.RoleBtn, this.StatusBtn };
            this.Toolbar.Items.AddRange(levelBtn);
            this.Toolbar.Location                = new Point(0, 0);
            this.Toolbar.Name                    = "Toolbar";
            this.Toolbar.Size                    = new System.Drawing.Size(752, 25);
            this.Toolbar.TabIndex                = 1;
            this.Toolbar.Text                    = "toolStrip1";
            this.LevelBtn.DisplayStyle           = ToolStripItemDisplayStyle.Text;
            this.LevelBtn.Image                  = (Image)resources.GetObject("LevelBtn.Image");
            this.LevelBtn.ImageTransparentColor  = Color.Magenta;
            this.LevelBtn.Name                   = "LevelBtn";
            this.LevelBtn.Size                   = new System.Drawing.Size(54, 22);
            this.LevelBtn.Text                   = "By Level";
            this.LevelBtn.Click                 += new EventHandler(this.LevelBtn_Click);
            this.RoleBtn.DisplayStyle            = ToolStripItemDisplayStyle.Text;
            this.RoleBtn.Image                   = (Image)resources.GetObject("RoleBtn.Image");
            this.RoleBtn.ImageTransparentColor   = Color.Magenta;
            this.RoleBtn.Name                    = "RoleBtn";
            this.RoleBtn.Size                    = new System.Drawing.Size(50, 22);
            this.RoleBtn.Text                    = "By Role";
            this.RoleBtn.Click                  += new EventHandler(this.RoleBtn_Click);
            this.BreakdownPanel.Dock             = DockStyle.Fill;
            this.BreakdownPanel.Library          = null;
            this.BreakdownPanel.Location         = new Point(0, 25);
            this.BreakdownPanel.Mode             = DemographicsMode.Level;
            this.BreakdownPanel.Name             = "BreakdownPanel";
            this.BreakdownPanel.Size             = new System.Drawing.Size(752, 265);
            this.BreakdownPanel.TabIndex         = 0;
            this.StatusBtn.DisplayStyle          = ToolStripItemDisplayStyle.Text;
            this.StatusBtn.Image                 = (Image)resources.GetObject("StatusBtn.Image");
            this.StatusBtn.ImageTransparentColor = Color.Magenta;
            this.StatusBtn.Name                  = "StatusBtn";
            this.StatusBtn.Size                  = new System.Drawing.Size(59, 22);
            this.StatusBtn.Text                  = "By Status";
            this.StatusBtn.Click                += new EventHandler(this.StatusBtn_Click);
            base.AutoScaleDimensions             = new SizeF(6f, 13f);
            base.AutoScaleMode                   = System.Windows.Forms.AutoScaleMode.Font;
            base.ClientSize = new System.Drawing.Size(752, 290);
            base.Controls.Add(this.BreakdownPanel);
            base.Controls.Add(this.Toolbar);
            base.MaximizeBox   = false;
            base.MinimizeBox   = false;
            base.Name          = "LibraryBreakdownForm";
            base.ShowIcon      = false;
            base.ShowInTaskbar = false;
            base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
            base.StartPosition = FormStartPosition.CenterParent;
            this.Text          = "Library Breakdown";
            this.Toolbar.ResumeLayout(false);
            this.Toolbar.PerformLayout();
            base.ResumeLayout(false);
            base.PerformLayout();
        }