public void ColumnHeaderCollection_AddRange_NullValueInValues_ThrowsArgumentNullException()
        {
            var listView   = new ListView();
            var collection = new ListView.ColumnHeaderCollection(listView);

            Assert.Throws <ArgumentNullException>("values", () => collection.AddRange(new ColumnHeader[] { null }));
        }
Пример #2
0
 private void InitializeComponent()
 {
     this.CloseBtn      = new Button();
     this.InfoLbl       = new Label();
     this.CombatantList = new ListView();
     this.CombatantHdr  = new ColumnHeader();
     this.InitHdr       = new ColumnHeader();
     base.SuspendLayout();
     this.CloseBtn.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
     this.CloseBtn.DialogResult            = System.Windows.Forms.DialogResult.OK;
     this.CloseBtn.Location                = new Point(292, 301);
     this.CloseBtn.Name                    = "CloseBtn";
     this.CloseBtn.Size                    = new System.Drawing.Size(75, 23);
     this.CloseBtn.TabIndex                = 2;
     this.CloseBtn.Text                    = "OK";
     this.CloseBtn.UseVisualStyleBackColor = true;
     this.InfoLbl.Anchor                   = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
     this.InfoLbl.Location                 = new Point(12, 9);
     this.InfoLbl.Name         = "InfoLbl";
     this.InfoLbl.Size         = new System.Drawing.Size(355, 22);
     this.InfoLbl.TabIndex     = 0;
     this.InfoLbl.Text         = "Double-click on a combatant in the list to set its initiative score.";
     this.CombatantList.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     ListView.ColumnHeaderCollection columns = this.CombatantList.Columns;
     ColumnHeader[] combatantHdr             = new ColumnHeader[] { this.CombatantHdr, this.InitHdr };
     columns.AddRange(combatantHdr);
     this.CombatantList.FullRowSelect = true;
     this.CombatantList.HideSelection = false;
     this.CombatantList.Location      = new Point(12, 34);
     this.CombatantList.MultiSelect   = false;
     this.CombatantList.Name          = "CombatantList";
     this.CombatantList.Size          = new System.Drawing.Size(355, 261);
     this.CombatantList.TabIndex      = 1;
     this.CombatantList.UseCompatibleStateImageBehavior = false;
     this.CombatantList.View         = View.Details;
     this.CombatantList.DoubleClick += new EventHandler(this.CombatantList_DoubleClick);
     this.CombatantHdr.Text          = "Combatant";
     this.CombatantHdr.Width         = 234;
     this.InitHdr.Text        = "Initiative";
     this.InitHdr.TextAlign   = HorizontalAlignment.Right;
     this.InitHdr.Width       = 68;
     base.AcceptButton        = this.CloseBtn;
     base.AutoScaleDimensions = new SizeF(6f, 13f);
     base.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     base.ClientSize          = new System.Drawing.Size(379, 336);
     base.Controls.Add(this.CombatantList);
     base.Controls.Add(this.InfoLbl);
     base.Controls.Add(this.CloseBtn);
     base.MaximizeBox   = false;
     base.MinimizeBox   = false;
     base.Name          = "GroupInitiativeForm";
     base.ShowIcon      = false;
     base.ShowInTaskbar = false;
     base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
     base.StartPosition = FormStartPosition.CenterParent;
     this.Text          = "Set Initiative Scores";
     base.ResumeLayout(false);
 }
 protected override object SetItems(object editValue, object[] value)
 {
     if (editValue != null)
     {
         ListView.ColumnHeaderCollection headers = editValue as ListView.ColumnHeaderCollection;
         if (editValue != null)
         {
             headers.Clear();
             ColumnHeader[] destinationArray = new ColumnHeader[value.Length];
             Array.Copy(value, 0, destinationArray, 0, value.Length);
             headers.AddRange(destinationArray);
         }
     }
     return(editValue);
 }
        public void ColumnHeaderCollection_AddRange_ColumnHeaderArray_Success()
        {
            var listView   = new ListView();
            var collection = new ListView.ColumnHeaderCollection(listView);
            var header1    = new ColumnHeader("text1");
            var header2    = new ColumnHeader("text2");
            var items      = new ColumnHeader[] { header1, header2 };

            collection.AddRange(items);

            Assert.Equal(2, collection.Count);
            Assert.Same(header1, collection[0]);
            Assert.Same(header2, collection[1]);

            Assert.Equal(0, header1.DisplayIndex);
            Assert.Equal(1, header2.DisplayIndex);
        }
        public void ColumnHeaderCollection_AddRange_ColumnHeaderArrayWithDisplayIndex_Success()
        {
            using var listView = new ListView();
            var collection = new ListView.ColumnHeaderCollection(listView);

            using var header1 = new ColumnHeader("text1")
                  {
                      DisplayIndex = 1
                  };
            using var header2 = new ColumnHeader("text2")
                  {
                      DisplayIndex = 0
                  };
            using var header3 = new ColumnHeader("text3")
                  {
                      DisplayIndex = 2
                  };
            using var header4 = new ColumnHeader("text4")
                  {
                      DisplayIndex = 2
                  };
            using var header5 = new ColumnHeader("text5")
                  {
                      DisplayIndex = 10
                  };
            var items = new ColumnHeader[] { header1, header2, header3, header4, header5 };

            collection.AddRange(items);

            Assert.Equal(5, collection.Count);
            Assert.Same(header1, collection[0]);
            Assert.Same(header2, collection[1]);
            Assert.Same(header3, collection[2]);
            Assert.Same(header4, collection[3]);
            Assert.Same(header5, collection[4]);

            Assert.Equal(0, header1.DisplayIndex);
            Assert.Equal(1, header2.DisplayIndex);
            Assert.Equal(2, header3.DisplayIndex);
            Assert.Equal(3, header4.DisplayIndex);
            Assert.Equal(4, header5.DisplayIndex);
        }
Пример #6
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.TemplateList = new ListView();
     this.NameHdr      = new ColumnHeader();
     this.TypeHdr      = new ColumnHeader();
     this.InfoLbl      = new Label();
     base.SuspendLayout();
     this.TemplateList.Anchor     = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.TemplateList.CheckBoxes = true;
     ListView.ColumnHeaderCollection columns = this.TemplateList.Columns;
     ColumnHeader[] nameHdr = new ColumnHeader[] { this.NameHdr, this.TypeHdr };
     columns.AddRange(nameHdr);
     this.TemplateList.FullRowSelect = true;
     this.TemplateList.HeaderStyle   = ColumnHeaderStyle.Nonclickable;
     this.TemplateList.HideSelection = false;
     this.TemplateList.Location      = new Point(3, 43);
     this.TemplateList.MultiSelect   = false;
     this.TemplateList.Name          = "TemplateList";
     this.TemplateList.Size          = new System.Drawing.Size(287, 188);
     this.TemplateList.TabIndex      = 5;
     this.TemplateList.UseCompatibleStateImageBehavior = false;
     this.TemplateList.View         = View.Details;
     this.TemplateList.DoubleClick += new EventHandler(this.TemplateList_DoubleClick);
     this.NameHdr.Text              = "Template";
     this.NameHdr.Width             = 150;
     this.TypeHdr.Text              = "Role";
     this.TypeHdr.Width             = 100;
     this.InfoLbl.Dock              = DockStyle.Top;
     this.InfoLbl.Location          = new Point(0, 0);
     this.InfoLbl.Name              = "InfoLbl";
     this.InfoLbl.Size              = new System.Drawing.Size(293, 40);
     this.InfoLbl.TabIndex          = 3;
     this.InfoLbl.Text              = "Select any templates you would like to apply to the new creature.";
     base.AutoScaleDimensions       = new SizeF(6f, 13f);
     base.AutoScaleMode             = System.Windows.Forms.AutoScaleMode.Font;
     base.Controls.Add(this.TemplateList);
     base.Controls.Add(this.InfoLbl);
     base.Name = "VariantTemplatesPage";
     base.Size = new System.Drawing.Size(293, 234);
     base.ResumeLayout(false);
 }
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(HelpTaskNovelInfo));

            this.listView_0     = new ListView();
            this.columnHeader_0 = new ColumnHeader();
            this.columnHeader_1 = new ColumnHeader();
            this.columnHeader_2 = new ColumnHeader();
            this.timer_0        = new Timer(this.components);
            base.SuspendLayout();
            ListView.ColumnHeaderCollection columns = this.listView_0.Columns;
            ColumnHeader[] columnHeader0            = new ColumnHeader[] { this.columnHeader_0, this.columnHeader_1, this.columnHeader_2 };
            columns.AddRange(columnHeader0);
            this.listView_0.Dock          = DockStyle.Fill;
            this.listView_0.FullRowSelect = true;
            this.listView_0.Location      = new Point(0, 0);
            this.listView_0.Name          = "listView_0";
            this.listView_0.Size          = new System.Drawing.Size(452, 169);
            this.listView_0.TabIndex      = 0;
            this.listView_0.UseCompatibleStateImageBehavior = false;
            this.listView_0.View      = View.Details;
            this.columnHeader_0.Text  = Localization.Get("子窗口ID");
            this.columnHeader_0.Width = 200;
            this.columnHeader_1.Text  = Localization.Get("小说编号");
            this.columnHeader_2.Text  = Localization.Get("小说名称");
            this.columnHeader_2.Width = 150;
            this.timer_0.Interval     = 1000;
            this.timer_0.Tick        += new EventHandler(this.timer_0_Tick);
            base.ClientSize           = new System.Drawing.Size(452, 169);
            base.Controls.Add(this.listView_0);
            this.Font          = new System.Drawing.Font(Localization.Font, 9f, FontStyle.Regular, GraphicsUnit.Point, 134);
            base.Icon          = (System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
            base.Name          = "HelpTaskNovelInfo";
            base.ShowInTaskbar = false;
            this.Text          = Localization.Get("子窗口冲突监控");
            base.Load         += new EventHandler(this.HelpTaskNovelInfo_Load);
            base.FormClosing  += new FormClosingEventHandler(this.HelpTaskNovelInfo_FormClosing);
            base.ResumeLayout(false);
        }
Пример #8
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.InfoLbl  = new Label();
     this.SlotList = new ListView();
     this.SlotHdr  = new ColumnHeader();
     this.CardHdr  = new ColumnHeader();
     base.SuspendLayout();
     this.InfoLbl.Dock     = DockStyle.Top;
     this.InfoLbl.Location = new Point(0, 0);
     this.InfoLbl.Name     = "InfoLbl";
     this.InfoLbl.Size     = new System.Drawing.Size(372, 40);
     this.InfoLbl.TabIndex = 1;
     this.InfoLbl.Text     = "Double-click on each of the empty slots in the list below to select creatures to fill them.";
     ListView.ColumnHeaderCollection columns = this.SlotList.Columns;
     ColumnHeader[] slotHdr = new ColumnHeader[] { this.SlotHdr, this.CardHdr };
     columns.AddRange(slotHdr);
     this.SlotList.Dock          = DockStyle.Fill;
     this.SlotList.FullRowSelect = true;
     this.SlotList.HeaderStyle   = ColumnHeaderStyle.Nonclickable;
     this.SlotList.HideSelection = false;
     this.SlotList.Location      = new Point(0, 40);
     this.SlotList.Name          = "SlotList";
     this.SlotList.Size          = new System.Drawing.Size(372, 206);
     this.SlotList.TabIndex      = 2;
     this.SlotList.UseCompatibleStateImageBehavior = false;
     this.SlotList.View         = View.Details;
     this.SlotList.DoubleClick += new EventHandler(this.SlotList_DoubleClick);
     this.SlotHdr.Text          = "Slot";
     this.SlotHdr.Width         = 160;
     this.CardHdr.Text          = "Selected Creature";
     this.CardHdr.Width         = 160;
     base.AutoScaleDimensions   = new SizeF(6f, 13f);
     base.AutoScaleMode         = System.Windows.Forms.AutoScaleMode.Font;
     base.Controls.Add(this.SlotList);
     base.Controls.Add(this.InfoLbl);
     base.Name = "EncounterSelectionPage";
     base.Size = new System.Drawing.Size(372, 246);
     base.ResumeLayout(false);
 }
 private void InitializeComponent()
 {
     this.OKBtn         = new Button();
     this.ChallengeList = new ListView();
     this.NameHdr       = new ColumnHeader();
     this.InfoHdr       = new ColumnHeader();
     this.CancelBtn     = new Button();
     this.Splitter      = new SplitContainer();
     this.BrowserPanel  = new Panel();
     this.Browser       = new WebBrowser();
     this.Splitter.Panel1.SuspendLayout();
     this.Splitter.Panel2.SuspendLayout();
     this.Splitter.SuspendLayout();
     this.BrowserPanel.SuspendLayout();
     base.SuspendLayout();
     this.OKBtn.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
     this.OKBtn.DialogResult            = System.Windows.Forms.DialogResult.OK;
     this.OKBtn.Location                = new Point(549, 354);
     this.OKBtn.Name                    = "OKBtn";
     this.OKBtn.Size                    = new System.Drawing.Size(75, 23);
     this.OKBtn.TabIndex                = 1;
     this.OKBtn.Text                    = "OK";
     this.OKBtn.UseVisualStyleBackColor = true;
     ListView.ColumnHeaderCollection columns = this.ChallengeList.Columns;
     ColumnHeader[] nameHdr = new ColumnHeader[] { this.NameHdr, this.InfoHdr };
     columns.AddRange(nameHdr);
     this.ChallengeList.Dock          = DockStyle.Fill;
     this.ChallengeList.FullRowSelect = true;
     this.ChallengeList.HideSelection = false;
     this.ChallengeList.Location      = new Point(0, 0);
     this.ChallengeList.MultiSelect   = false;
     this.ChallengeList.Name          = "ChallengeList";
     this.ChallengeList.Size          = new System.Drawing.Size(330, 336);
     this.ChallengeList.Sorting       = SortOrder.Ascending;
     this.ChallengeList.TabIndex      = 0;
     this.ChallengeList.UseCompatibleStateImageBehavior = false;
     this.ChallengeList.View = View.Details;
     this.ChallengeList.SelectedIndexChanged += new EventHandler(this.ChallengeList_SelectedIndexChanged);
     this.ChallengeList.DoubleClick          += new EventHandler(this.TileList_DoubleClick);
     this.NameHdr.Text                      = "Skill Challenge";
     this.NameHdr.Width                     = 150;
     this.InfoHdr.Text                      = "Info";
     this.InfoHdr.Width                     = 150;
     this.CancelBtn.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
     this.CancelBtn.DialogResult            = System.Windows.Forms.DialogResult.Cancel;
     this.CancelBtn.Location                = new Point(630, 354);
     this.CancelBtn.Name                    = "CancelBtn";
     this.CancelBtn.Size                    = new System.Drawing.Size(75, 23);
     this.CancelBtn.TabIndex                = 2;
     this.CancelBtn.Text                    = "Cancel";
     this.CancelBtn.UseVisualStyleBackColor = true;
     this.Splitter.Anchor                   = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.Splitter.Location                 = new Point(12, 12);
     this.Splitter.Name                     = "Splitter";
     this.Splitter.Panel1.Controls.Add(this.ChallengeList);
     this.Splitter.Panel2.Controls.Add(this.BrowserPanel);
     this.Splitter.Size             = new System.Drawing.Size(693, 336);
     this.Splitter.SplitterDistance = 330;
     this.Splitter.TabIndex         = 3;
     this.BrowserPanel.BorderStyle  = BorderStyle.FixedSingle;
     this.BrowserPanel.Controls.Add(this.Browser);
     this.BrowserPanel.Dock           = DockStyle.Fill;
     this.BrowserPanel.Location       = new Point(0, 0);
     this.BrowserPanel.Name           = "BrowserPanel";
     this.BrowserPanel.Size           = new System.Drawing.Size(359, 336);
     this.BrowserPanel.TabIndex       = 0;
     this.Browser.AllowWebBrowserDrop = false;
     this.Browser.Dock = DockStyle.Fill;
     this.Browser.IsWebBrowserContextMenuEnabled = false;
     this.Browser.Location                   = new Point(0, 0);
     this.Browser.MinimumSize                = new System.Drawing.Size(20, 20);
     this.Browser.Name                       = "Browser";
     this.Browser.ScriptErrorsSuppressed     = true;
     this.Browser.Size                       = new System.Drawing.Size(357, 334);
     this.Browser.TabIndex                   = 0;
     this.Browser.WebBrowserShortcutsEnabled = false;
     base.AcceptButton                       = this.OKBtn;
     base.AutoScaleDimensions                = new SizeF(6f, 13f);
     base.AutoScaleMode                      = System.Windows.Forms.AutoScaleMode.Font;
     base.CancelButton                       = this.CancelBtn;
     base.ClientSize = new System.Drawing.Size(717, 389);
     base.Controls.Add(this.Splitter);
     base.Controls.Add(this.CancelBtn);
     base.Controls.Add(this.OKBtn);
     base.MaximizeBox   = false;
     base.MinimizeBox   = false;
     base.Name          = "SkillChallengeSelectForm";
     base.ShowIcon      = false;
     base.ShowInTaskbar = false;
     base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
     base.StartPosition = FormStartPosition.CenterParent;
     this.Text          = "Select a Skill Challenge";
     this.Splitter.Panel1.ResumeLayout(false);
     this.Splitter.Panel2.ResumeLayout(false);
     this.Splitter.ResumeLayout(false);
     this.BrowserPanel.ResumeLayout(false);
     base.ResumeLayout(false);
 }
Пример #10
0
 private void InitializeComponent()
 {
     this.OKBtn         = new Button();
     this.TileList      = new ListView();
     this.columnHeader1 = new ColumnHeader();
     this.columnHeader2 = new ColumnHeader();
     this.columnHeader3 = new ColumnHeader();
     this.Splitter      = new SplitContainer();
     this.PlotTree      = new TreeView();
     this.Splitter.Panel1.SuspendLayout();
     this.Splitter.Panel2.SuspendLayout();
     this.Splitter.SuspendLayout();
     base.SuspendLayout();
     this.OKBtn.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
     this.OKBtn.DialogResult            = System.Windows.Forms.DialogResult.OK;
     this.OKBtn.Location                = new Point(454, 324);
     this.OKBtn.Name                    = "OKBtn";
     this.OKBtn.Size                    = new System.Drawing.Size(75, 23);
     this.OKBtn.TabIndex                = 0;
     this.OKBtn.Text                    = "OK";
     this.OKBtn.UseVisualStyleBackColor = true;
     ListView.ColumnHeaderCollection columns = this.TileList.Columns;
     ColumnHeader[] columnHeaderArray        = new ColumnHeader[] { this.columnHeader1, this.columnHeader2, this.columnHeader3 };
     columns.AddRange(columnHeaderArray);
     this.TileList.Dock          = DockStyle.Fill;
     this.TileList.FullRowSelect = true;
     this.TileList.HeaderStyle   = ColumnHeaderStyle.Nonclickable;
     this.TileList.HideSelection = false;
     this.TileList.Location      = new Point(0, 0);
     this.TileList.MultiSelect   = false;
     this.TileList.Name          = "TileList";
     this.TileList.Size          = new System.Drawing.Size(517, 213);
     this.TileList.TabIndex      = 1;
     this.TileList.UseCompatibleStateImageBehavior = false;
     this.TileList.View           = View.Details;
     this.columnHeader1.Text      = "Creature";
     this.columnHeader1.Width     = 148;
     this.columnHeader2.Text      = "Info";
     this.columnHeader2.Width     = 280;
     this.columnHeader3.Text      = "Count";
     this.columnHeader3.TextAlign = HorizontalAlignment.Right;
     this.Splitter.Anchor         = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.Splitter.Location       = new Point(12, 12);
     this.Splitter.Name           = "Splitter";
     this.Splitter.Orientation    = Orientation.Horizontal;
     this.Splitter.Panel1.Controls.Add(this.PlotTree);
     this.Splitter.Panel2.Controls.Add(this.TileList);
     this.Splitter.Size             = new System.Drawing.Size(517, 306);
     this.Splitter.SplitterDistance = 89;
     this.Splitter.TabIndex         = 2;
     this.PlotTree.Dock             = DockStyle.Fill;
     this.PlotTree.Location         = new Point(0, 0);
     this.PlotTree.Name             = "PlotTree";
     this.PlotTree.Size             = new System.Drawing.Size(517, 89);
     this.PlotTree.TabIndex         = 0;
     this.PlotTree.AfterSelect     += new TreeViewEventHandler(this.PlotTree_AfterSelect);
     base.AcceptButton        = this.OKBtn;
     base.AutoScaleDimensions = new SizeF(6f, 13f);
     base.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     base.ClientSize          = new System.Drawing.Size(541, 359);
     base.Controls.Add(this.Splitter);
     base.Controls.Add(this.OKBtn);
     base.MaximizeBox   = false;
     base.MinimizeBox   = false;
     base.Name          = "MiniChecklistForm";
     base.ShowIcon      = false;
     base.ShowInTaskbar = false;
     base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
     base.StartPosition = FormStartPosition.CenterParent;
     this.Text          = "Miniature Checklist";
     this.Splitter.Panel1.ResumeLayout(false);
     this.Splitter.Panel2.ResumeLayout(false);
     this.Splitter.ResumeLayout(false);
     base.ResumeLayout(false);
 }
Пример #11
0
 private void InitializeComponent()
 {
     this.AdventureList = new ListView();
     this.NameHdr       = new ColumnHeader();
     this.LevelHdr      = new ColumnHeader();
     this.SizeHdr       = new ColumnHeader();
     this.OKBtn         = new Button();
     this.CancelBtn     = new Button();
     base.SuspendLayout();
     this.AdventureList.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     ListView.ColumnHeaderCollection columns = this.AdventureList.Columns;
     ColumnHeader[] nameHdr = new ColumnHeader[] { this.NameHdr, this.LevelHdr, this.SizeHdr };
     columns.AddRange(nameHdr);
     this.AdventureList.FullRowSelect = true;
     this.AdventureList.HeaderStyle   = ColumnHeaderStyle.Nonclickable;
     this.AdventureList.HideSelection = false;
     this.AdventureList.Location      = new Point(12, 12);
     this.AdventureList.MultiSelect   = false;
     this.AdventureList.Name          = "AdventureList";
     this.AdventureList.Size          = new System.Drawing.Size(452, 188);
     this.AdventureList.TabIndex      = 0;
     this.AdventureList.UseCompatibleStateImageBehavior = false;
     this.AdventureList.View         = View.Details;
     this.AdventureList.DoubleClick += new EventHandler(this.AdventureList_DoubleClick);
     this.NameHdr.Text                      = "Adventure Name";
     this.NameHdr.Width                     = 219;
     this.LevelHdr.Text                     = "Party Level";
     this.LevelHdr.TextAlign                = HorizontalAlignment.Right;
     this.LevelHdr.Width                    = 100;
     this.SizeHdr.Text                      = "Party Size";
     this.SizeHdr.TextAlign                 = HorizontalAlignment.Right;
     this.SizeHdr.Width                     = 100;
     this.OKBtn.Anchor                      = AnchorStyles.Bottom | AnchorStyles.Right;
     this.OKBtn.DialogResult                = System.Windows.Forms.DialogResult.OK;
     this.OKBtn.Location                    = new Point(308, 206);
     this.OKBtn.Name                        = "OKBtn";
     this.OKBtn.Size                        = new System.Drawing.Size(75, 23);
     this.OKBtn.TabIndex                    = 1;
     this.OKBtn.Text                        = "OK";
     this.OKBtn.UseVisualStyleBackColor     = true;
     this.OKBtn.Click                      += new EventHandler(this.OKBtn_Click);
     this.CancelBtn.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
     this.CancelBtn.DialogResult            = System.Windows.Forms.DialogResult.Cancel;
     this.CancelBtn.Location                = new Point(389, 206);
     this.CancelBtn.Name                    = "CancelBtn";
     this.CancelBtn.Size                    = new System.Drawing.Size(75, 23);
     this.CancelBtn.TabIndex                = 2;
     this.CancelBtn.Text                    = "Cancel";
     this.CancelBtn.UseVisualStyleBackColor = true;
     base.AcceptButton                      = this.OKBtn;
     base.AutoScaleDimensions               = new SizeF(6f, 13f);
     base.AutoScaleMode                     = System.Windows.Forms.AutoScaleMode.Font;
     base.CancelButton                      = this.CancelBtn;
     base.ClientSize                        = new System.Drawing.Size(476, 241);
     base.Controls.Add(this.CancelBtn);
     base.Controls.Add(this.OKBtn);
     base.Controls.Add(this.AdventureList);
     base.MaximizeBox   = false;
     base.MinimizeBox   = false;
     base.Name          = "PremadeForm";
     base.ShowIcon      = false;
     base.ShowInTaskbar = false;
     base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
     base.StartPosition = FormStartPosition.CenterParent;
     this.Text          = "Premade Adventures";
     base.FormClosing  += new FormClosingEventHandler(this.PremadeForm_FormClosing);
     base.ResumeLayout(false);
 }
Пример #12
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(PowerBrowserForm));

            this.Splitter            = new SplitContainer();
            this.CreatureList        = new ListView();
            this.CreatureHdr         = new ColumnHeader();
            this.CreatureInfoHdr     = new ColumnHeader();
            this.FilterPanel         = new Masterplan.Controls.FilterPanel();
            this.CreatureListToolbar = new ToolStrip();
            this.ModeBtn             = new ToolStripDropDownButton();
            this.ModeAll             = new ToolStripMenuItem();
            this.ModeSelection       = new ToolStripMenuItem();
            this.DisplayPanel        = new Panel();
            this.PowerDisplay        = new WebBrowser();
            this.PowerToolbar        = new ToolStrip();
            this.StatsBtn            = new ToolStripButton();
            this.CloseBtn            = new Button();
            this.Splitter.Panel1.SuspendLayout();
            this.Splitter.Panel2.SuspendLayout();
            this.Splitter.SuspendLayout();
            this.CreatureListToolbar.SuspendLayout();
            this.DisplayPanel.SuspendLayout();
            this.PowerToolbar.SuspendLayout();
            base.SuspendLayout();
            this.Splitter.Anchor     = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.Splitter.FixedPanel = FixedPanel.Panel2;
            this.Splitter.Location   = new Point(12, 12);
            this.Splitter.Name       = "Splitter";
            this.Splitter.Panel1.Controls.Add(this.CreatureList);
            this.Splitter.Panel1.Controls.Add(this.FilterPanel);
            this.Splitter.Panel1.Controls.Add(this.CreatureListToolbar);
            this.Splitter.Panel2.Controls.Add(this.DisplayPanel);
            this.Splitter.Size             = new System.Drawing.Size(734, 377);
            this.Splitter.SplitterDistance = 379;
            this.Splitter.TabIndex         = 14;
            ListView.ColumnHeaderCollection columns = this.CreatureList.Columns;
            ColumnHeader[] creatureHdr = new ColumnHeader[] { this.CreatureHdr, this.CreatureInfoHdr };
            columns.AddRange(creatureHdr);
            this.CreatureList.Dock          = DockStyle.Fill;
            this.CreatureList.FullRowSelect = true;
            this.CreatureList.HeaderStyle   = ColumnHeaderStyle.Nonclickable;
            this.CreatureList.HideSelection = false;
            this.CreatureList.Location      = new Point(0, 47);
            this.CreatureList.Name          = "CreatureList";
            this.CreatureList.Size          = new System.Drawing.Size(379, 330);
            this.CreatureList.Sorting       = SortOrder.Ascending;
            this.CreatureList.TabIndex      = 2;
            this.CreatureList.UseCompatibleStateImageBehavior = false;
            this.CreatureList.View = View.Details;
            this.CreatureList.SelectedIndexChanged += new EventHandler(this.CreatureList_SelectedIndexChanged);
            this.CreatureHdr.Text           = "Creature";
            this.CreatureHdr.Width          = 218;
            this.CreatureInfoHdr.Text       = "Info";
            this.CreatureInfoHdr.Width      = 123;
            this.FilterPanel.AutoSize       = true;
            this.FilterPanel.Dock           = DockStyle.Top;
            this.FilterPanel.Location       = new Point(0, 25);
            this.FilterPanel.Mode           = ListMode.Creatures;
            this.FilterPanel.Name           = "FilterPanel";
            this.FilterPanel.PartyLevel     = 0;
            this.FilterPanel.Size           = new System.Drawing.Size(379, 22);
            this.FilterPanel.TabIndex       = 17;
            this.FilterPanel.FilterChanged += new EventHandler(this.FilterPanel_FilterChanged);
            this.CreatureListToolbar.Items.AddRange(new ToolStripItem[] { this.ModeBtn });
            this.CreatureListToolbar.Location = new Point(0, 0);
            this.CreatureListToolbar.Name     = "CreatureListToolbar";
            this.CreatureListToolbar.Size     = new System.Drawing.Size(379, 25);
            this.CreatureListToolbar.TabIndex = 15;
            this.CreatureListToolbar.Text     = "toolStrip1";
            this.ModeBtn.DisplayStyle         = ToolStripItemDisplayStyle.Text;
            ToolStripItemCollection dropDownItems = this.ModeBtn.DropDownItems;

            ToolStripItem[] modeAll = new ToolStripItem[] { this.ModeAll, this.ModeSelection };
            dropDownItems.AddRange(modeAll);
            this.ModeBtn.Image = (Image)componentResourceManager.GetObject("ModeBtn.Image");
            this.ModeBtn.ImageTransparentColor = Color.Magenta;
            this.ModeBtn.Name             = "ModeBtn";
            this.ModeBtn.Size             = new System.Drawing.Size(51, 22);
            this.ModeBtn.Text             = "Mode";
            this.ModeAll.Name             = "ModeAll";
            this.ModeAll.Size             = new System.Drawing.Size(290, 22);
            this.ModeAll.Text             = "List Powers from All Creatures";
            this.ModeAll.Click           += new EventHandler(this.ModeAll_Click);
            this.ModeSelection.Name       = "ModeSelection";
            this.ModeSelection.Size       = new System.Drawing.Size(290, 22);
            this.ModeSelection.Text       = "List Powers from Selected Creatures Only";
            this.ModeSelection.Click     += new EventHandler(this.ModeSelection_Click);
            this.DisplayPanel.BorderStyle = BorderStyle.FixedSingle;
            this.DisplayPanel.Controls.Add(this.PowerDisplay);
            this.DisplayPanel.Controls.Add(this.PowerToolbar);
            this.DisplayPanel.Dock     = DockStyle.Fill;
            this.DisplayPanel.Location = new Point(0, 0);
            this.DisplayPanel.Name     = "DisplayPanel";
            this.DisplayPanel.Size     = new System.Drawing.Size(351, 377);
            this.DisplayPanel.TabIndex = 0;
            this.PowerDisplay.Dock     = DockStyle.Fill;
            this.PowerDisplay.IsWebBrowserContextMenuEnabled = false;
            this.PowerDisplay.Location                   = new Point(0, 25);
            this.PowerDisplay.MinimumSize                = new System.Drawing.Size(20, 20);
            this.PowerDisplay.Name                       = "PowerDisplay";
            this.PowerDisplay.ScriptErrorsSuppressed     = true;
            this.PowerDisplay.Size                       = new System.Drawing.Size(349, 350);
            this.PowerDisplay.TabIndex                   = 2;
            this.PowerDisplay.WebBrowserShortcutsEnabled = false;
            this.PowerDisplay.Navigating                += new WebBrowserNavigatingEventHandler(this.PowerDisplay_Navigating);
            this.PowerToolbar.Items.AddRange(new ToolStripItem[] { this.StatsBtn });
            this.PowerToolbar.Location          = new Point(0, 0);
            this.PowerToolbar.Name              = "PowerToolbar";
            this.PowerToolbar.Size              = new System.Drawing.Size(349, 25);
            this.PowerToolbar.TabIndex          = 3;
            this.PowerToolbar.Text              = "toolStrip1";
            this.StatsBtn.DisplayStyle          = ToolStripItemDisplayStyle.Text;
            this.StatsBtn.Image                 = (Image)componentResourceManager.GetObject("StatsBtn.Image");
            this.StatsBtn.ImageTransparentColor = Color.Magenta;
            this.StatsBtn.Name                    = "StatsBtn";
            this.StatsBtn.Size                    = new System.Drawing.Size(93, 22);
            this.StatsBtn.Text                    = "Power Statistics";
            this.StatsBtn.Click                  += new EventHandler(this.StatsBtn_Click);
            this.CloseBtn.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
            this.CloseBtn.DialogResult            = System.Windows.Forms.DialogResult.OK;
            this.CloseBtn.Location                = new Point(671, 395);
            this.CloseBtn.Name                    = "CloseBtn";
            this.CloseBtn.Size                    = new System.Drawing.Size(75, 23);
            this.CloseBtn.TabIndex                = 15;
            this.CloseBtn.Text                    = "Close";
            this.CloseBtn.UseVisualStyleBackColor = true;
            base.AcceptButton        = this.CloseBtn;
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            base.CancelButton        = this.CloseBtn;
            base.ClientSize          = new System.Drawing.Size(758, 430);
            base.Controls.Add(this.CloseBtn);
            base.Controls.Add(this.Splitter);
            base.MaximizeBox   = false;
            base.MinimizeBox   = false;
            base.Name          = "PowerBrowserForm";
            base.ShowIcon      = false;
            base.ShowInTaskbar = false;
            base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
            base.StartPosition = FormStartPosition.CenterParent;
            this.Text          = "Power Browser";
            this.Splitter.Panel1.ResumeLayout(false);
            this.Splitter.Panel1.PerformLayout();
            this.Splitter.Panel2.ResumeLayout(false);
            this.Splitter.ResumeLayout(false);
            this.CreatureListToolbar.ResumeLayout(false);
            this.CreatureListToolbar.PerformLayout();
            this.DisplayPanel.ResumeLayout(false);
            this.DisplayPanel.PerformLayout();
            this.PowerToolbar.ResumeLayout(false);
            this.PowerToolbar.PerformLayout();
            base.ResumeLayout(false);
        }
Пример #13
0
        private void InitializeComponent()
        {
            ListViewGroup listViewGroup  = new ListViewGroup("Initiative", HorizontalAlignment.Left);
            ListViewGroup listViewGroup1 = new ListViewGroup("Attack Bonus", HorizontalAlignment.Left);

            this.CancelBtn   = new Button();
            this.OKBtn       = new Button();
            this.ActionLbl   = new Label();
            this.ActionBox   = new ComboBox();
            this.RangeLbl    = new Label();
            this.RangeBox    = new TextBox();
            this.TargetLbl   = new Label();
            this.TargetBox   = new TextBox();
            this.InitBox     = new NumericUpDown();
            this.AttackLbl   = new Label();
            this.AttackBtn   = new Button();
            this.Pages       = new TabControl();
            this.StatsPage   = new TabPage();
            this.InitBtn     = new CheckBox();
            this.TriggerPage = new TabPage();
            this.TriggerBox  = new TextBox();
            this.HitPage     = new TabPage();
            this.HitBox      = new TextBox();
            this.MissPage    = new TabPage();
            this.MissBox     = new TextBox();
            this.EffectPage  = new TabPage();
            this.EffectBox   = new TextBox();
            this.AdvicePage  = new TabPage();
            this.AdviceList  = new ListView();
            this.AdviceHdr   = new ColumnHeader();
            this.InfoHdr     = new ColumnHeader();
            ((ISupportInitialize)this.InitBox).BeginInit();
            this.Pages.SuspendLayout();
            this.StatsPage.SuspendLayout();
            this.TriggerPage.SuspendLayout();
            this.HitPage.SuspendLayout();
            this.MissPage.SuspendLayout();
            this.EffectPage.SuspendLayout();
            this.AdvicePage.SuspendLayout();
            base.SuspendLayout();
            this.CancelBtn.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
            this.CancelBtn.DialogResult            = System.Windows.Forms.DialogResult.Cancel;
            this.CancelBtn.Location                = new Point(254, 185);
            this.CancelBtn.Name                    = "CancelBtn";
            this.CancelBtn.Size                    = new System.Drawing.Size(75, 23);
            this.CancelBtn.TabIndex                = 14;
            this.CancelBtn.Text                    = "Cancel";
            this.CancelBtn.UseVisualStyleBackColor = true;
            this.OKBtn.Anchor                      = AnchorStyles.Bottom | AnchorStyles.Right;
            this.OKBtn.DialogResult                = System.Windows.Forms.DialogResult.OK;
            this.OKBtn.Location                    = new Point(173, 185);
            this.OKBtn.Name                        = "OKBtn";
            this.OKBtn.Size                        = new System.Drawing.Size(75, 23);
            this.OKBtn.TabIndex                    = 13;
            this.OKBtn.Text                        = "OK";
            this.OKBtn.UseVisualStyleBackColor     = true;
            this.OKBtn.Click                      += new EventHandler(this.OKBtn_Click);
            this.ActionLbl.AutoSize                = true;
            this.ActionLbl.Location                = new Point(6, 9);
            this.ActionLbl.Name                    = "ActionLbl";
            this.ActionLbl.Size                    = new System.Drawing.Size(40, 13);
            this.ActionLbl.TabIndex                = 2;
            this.ActionLbl.Text                    = "Action:";
            this.ActionBox.Anchor                  = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.ActionBox.DropDownStyle           = ComboBoxStyle.DropDownList;
            this.ActionBox.FormattingEnabled       = true;
            this.ActionBox.Location                = new Point(80, 6);
            this.ActionBox.Name                    = "ActionBox";
            this.ActionBox.Size                    = new System.Drawing.Size(223, 21);
            this.ActionBox.TabIndex                = 3;
            this.RangeLbl.AutoSize                 = true;
            this.RangeLbl.Location                 = new Point(6, 36);
            this.RangeLbl.Name                     = "RangeLbl";
            this.RangeLbl.Size                     = new System.Drawing.Size(42, 13);
            this.RangeLbl.TabIndex                 = 4;
            this.RangeLbl.Text                     = "Range:";
            this.RangeBox.Anchor                   = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.RangeBox.Location                 = new Point(80, 33);
            this.RangeBox.Name                     = "RangeBox";
            this.RangeBox.Size                     = new System.Drawing.Size(223, 20);
            this.RangeBox.TabIndex                 = 5;
            this.TargetLbl.AutoSize                = true;
            this.TargetLbl.Location                = new Point(6, 62);
            this.TargetLbl.Name                    = "TargetLbl";
            this.TargetLbl.Size                    = new System.Drawing.Size(41, 13);
            this.TargetLbl.TabIndex                = 6;
            this.TargetLbl.Text                    = "Target:";
            this.TargetBox.Anchor                  = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.TargetBox.Location                = new Point(80, 59);
            this.TargetBox.Name                    = "TargetBox";
            this.TargetBox.Size                    = new System.Drawing.Size(223, 20);
            this.TargetBox.TabIndex                = 7;
            this.InitBox.Anchor                    = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.InitBox.Location                  = new Point(80, 85);
            this.InitBox.Name                      = "InitBox";
            this.InitBox.Size                      = new System.Drawing.Size(223, 20);
            this.InitBox.TabIndex                  = 9;
            this.AttackLbl.AutoSize                = true;
            this.AttackLbl.Location                = new Point(6, 116);
            this.AttackLbl.Name                    = "AttackLbl";
            this.AttackLbl.Size                    = new System.Drawing.Size(41, 13);
            this.AttackLbl.TabIndex                = 10;
            this.AttackLbl.Text                    = "Attack:";
            this.AttackBtn.Anchor                  = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.AttackBtn.Location                = new Point(80, 111);
            this.AttackBtn.Name                    = "AttackBtn";
            this.AttackBtn.Size                    = new System.Drawing.Size(223, 23);
            this.AttackBtn.TabIndex                = 11;
            this.AttackBtn.Text                    = "[attack]";
            this.AttackBtn.UseVisualStyleBackColor = true;
            this.AttackBtn.Click                  += new EventHandler(this.AttackBtn_Click);
            this.Pages.Anchor                      = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.Pages.Controls.Add(this.StatsPage);
            this.Pages.Controls.Add(this.TriggerPage);
            this.Pages.Controls.Add(this.HitPage);
            this.Pages.Controls.Add(this.MissPage);
            this.Pages.Controls.Add(this.EffectPage);
            this.Pages.Controls.Add(this.AdvicePage);
            this.Pages.Location      = new Point(12, 12);
            this.Pages.Name          = "Pages";
            this.Pages.SelectedIndex = 0;
            this.Pages.Size          = new System.Drawing.Size(317, 167);
            this.Pages.TabIndex      = 12;
            this.StatsPage.Controls.Add(this.ActionBox);
            this.StatsPage.Controls.Add(this.AttackBtn);
            this.StatsPage.Controls.Add(this.ActionLbl);
            this.StatsPage.Controls.Add(this.AttackLbl);
            this.StatsPage.Controls.Add(this.RangeLbl);
            this.StatsPage.Controls.Add(this.InitBox);
            this.StatsPage.Controls.Add(this.RangeBox);
            this.StatsPage.Controls.Add(this.InitBtn);
            this.StatsPage.Controls.Add(this.TargetLbl);
            this.StatsPage.Controls.Add(this.TargetBox);
            this.StatsPage.Location = new Point(4, 22);
            this.StatsPage.Name     = "StatsPage";
            this.StatsPage.Padding  = new System.Windows.Forms.Padding(3);
            this.StatsPage.Size     = new System.Drawing.Size(309, 141);
            this.StatsPage.TabIndex = 4;
            this.StatsPage.Text     = "Statistics";
            this.StatsPage.UseVisualStyleBackColor = true;
            this.InitBtn.AutoSize = true;
            this.InitBtn.Location = new Point(6, 86);
            this.InitBtn.Name     = "InitBtn";
            this.InitBtn.Size     = new System.Drawing.Size(68, 17);
            this.InitBtn.TabIndex = 8;
            this.InitBtn.Text     = "Initiative:";
            this.InitBtn.UseVisualStyleBackColor = true;
            this.TriggerPage.Controls.Add(this.TriggerBox);
            this.TriggerPage.Location = new Point(4, 22);
            this.TriggerPage.Name     = "TriggerPage";
            this.TriggerPage.Padding  = new System.Windows.Forms.Padding(3);
            this.TriggerPage.Size     = new System.Drawing.Size(309, 141);
            this.TriggerPage.TabIndex = 2;
            this.TriggerPage.Text     = "Trigger";
            this.TriggerPage.UseVisualStyleBackColor = true;
            this.TriggerBox.AcceptsReturn            = true;
            this.TriggerBox.AcceptsTab = true;
            this.TriggerBox.Dock       = DockStyle.Fill;
            this.TriggerBox.Location   = new Point(3, 3);
            this.TriggerBox.Multiline  = true;
            this.TriggerBox.Name       = "TriggerBox";
            this.TriggerBox.ScrollBars = ScrollBars.Vertical;
            this.TriggerBox.Size       = new System.Drawing.Size(303, 135);
            this.TriggerBox.TabIndex   = 0;
            this.HitPage.Controls.Add(this.HitBox);
            this.HitPage.Location = new Point(4, 22);
            this.HitPage.Name     = "HitPage";
            this.HitPage.Padding  = new System.Windows.Forms.Padding(3);
            this.HitPage.Size     = new System.Drawing.Size(309, 141);
            this.HitPage.TabIndex = 0;
            this.HitPage.Text     = "On Hit";
            this.HitPage.UseVisualStyleBackColor = true;
            this.HitBox.AcceptsReturn            = true;
            this.HitBox.AcceptsTab = true;
            this.HitBox.Dock       = DockStyle.Fill;
            this.HitBox.Location   = new Point(3, 3);
            this.HitBox.Multiline  = true;
            this.HitBox.Name       = "HitBox";
            this.HitBox.ScrollBars = ScrollBars.Vertical;
            this.HitBox.Size       = new System.Drawing.Size(303, 135);
            this.HitBox.TabIndex   = 0;
            this.MissPage.Controls.Add(this.MissBox);
            this.MissPage.Location = new Point(4, 22);
            this.MissPage.Name     = "MissPage";
            this.MissPage.Padding  = new System.Windows.Forms.Padding(3);
            this.MissPage.Size     = new System.Drawing.Size(309, 141);
            this.MissPage.TabIndex = 1;
            this.MissPage.Text     = "On Miss";
            this.MissPage.UseVisualStyleBackColor = true;
            this.MissBox.AcceptsReturn            = true;
            this.MissBox.AcceptsTab = true;
            this.MissBox.Dock       = DockStyle.Fill;
            this.MissBox.Location   = new Point(3, 3);
            this.MissBox.Multiline  = true;
            this.MissBox.Name       = "MissBox";
            this.MissBox.ScrollBars = ScrollBars.Vertical;
            this.MissBox.Size       = new System.Drawing.Size(303, 135);
            this.MissBox.TabIndex   = 1;
            this.EffectPage.Controls.Add(this.EffectBox);
            this.EffectPage.Location = new Point(4, 22);
            this.EffectPage.Name     = "EffectPage";
            this.EffectPage.Padding  = new System.Windows.Forms.Padding(3);
            this.EffectPage.Size     = new System.Drawing.Size(309, 141);
            this.EffectPage.TabIndex = 3;
            this.EffectPage.Text     = "Effect";
            this.EffectPage.UseVisualStyleBackColor = true;
            this.EffectBox.AcceptsReturn            = true;
            this.EffectBox.AcceptsTab = true;
            this.EffectBox.Dock       = DockStyle.Fill;
            this.EffectBox.Location   = new Point(3, 3);
            this.EffectBox.Multiline  = true;
            this.EffectBox.Name       = "EffectBox";
            this.EffectBox.ScrollBars = ScrollBars.Vertical;
            this.EffectBox.Size       = new System.Drawing.Size(303, 135);
            this.EffectBox.TabIndex   = 2;
            this.AdvicePage.Controls.Add(this.AdviceList);
            this.AdvicePage.Location = new Point(4, 22);
            this.AdvicePage.Name     = "AdvicePage";
            this.AdvicePage.Padding  = new System.Windows.Forms.Padding(3);
            this.AdvicePage.Size     = new System.Drawing.Size(309, 141);
            this.AdvicePage.TabIndex = 5;
            this.AdvicePage.Text     = "Advice";
            this.AdvicePage.UseVisualStyleBackColor = true;
            ListView.ColumnHeaderCollection columns = this.AdviceList.Columns;
            ColumnHeader[] adviceHdr = new ColumnHeader[] { this.AdviceHdr, this.InfoHdr };
            columns.AddRange(adviceHdr);
            this.AdviceList.Dock          = DockStyle.Fill;
            this.AdviceList.FullRowSelect = true;
            listViewGroup.Header          = "Initiative";
            listViewGroup.Name            = "listViewGroup1";
            listViewGroup1.Header         = "Attack Bonus";
            listViewGroup1.Name           = "listViewGroup2";
            this.AdviceList.Groups.AddRange(new ListViewGroup[] { listViewGroup, listViewGroup1 });
            this.AdviceList.HeaderStyle   = ColumnHeaderStyle.None;
            this.AdviceList.HideSelection = false;
            this.AdviceList.Location      = new Point(3, 3);
            this.AdviceList.MultiSelect   = false;
            this.AdviceList.Name          = "AdviceList";
            this.AdviceList.Size          = new System.Drawing.Size(303, 135);
            this.AdviceList.TabIndex      = 1;
            this.AdviceList.UseCompatibleStateImageBehavior = false;
            this.AdviceList.View     = View.Details;
            this.AdviceHdr.Text      = "Advice";
            this.AdviceHdr.Width     = 150;
            this.InfoHdr.Text        = "Information";
            this.InfoHdr.Width       = 100;
            base.AcceptButton        = this.OKBtn;
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            base.CancelButton        = this.CancelBtn;
            base.ClientSize          = new System.Drawing.Size(341, 220);
            base.Controls.Add(this.Pages);
            base.Controls.Add(this.CancelBtn);
            base.Controls.Add(this.OKBtn);
            base.MaximizeBox   = false;
            base.MinimizeBox   = false;
            base.Name          = "TrapAttackForm";
            base.ShowIcon      = false;
            base.ShowInTaskbar = false;
            base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
            base.StartPosition = FormStartPosition.CenterParent;
            this.Text          = "Trap Attack";
            ((ISupportInitialize)this.InitBox).EndInit();
            this.Pages.ResumeLayout(false);
            this.StatsPage.ResumeLayout(false);
            this.StatsPage.PerformLayout();
            this.TriggerPage.ResumeLayout(false);
            this.TriggerPage.PerformLayout();
            this.HitPage.ResumeLayout(false);
            this.HitPage.PerformLayout();
            this.MissPage.ResumeLayout(false);
            this.MissPage.PerformLayout();
            this.EffectPage.ResumeLayout(false);
            this.EffectPage.PerformLayout();
            this.AdvicePage.ResumeLayout(false);
            base.ResumeLayout(false);
        }
Пример #14
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(RechargeForm));

            this.CancelBtn           = new Button();
            this.OKBtn               = new Button();
            this.ListPanel           = new Panel();
            this.EffectList          = new ListView();
            this.PowerHdr            = new ColumnHeader();
            this.RechargeHdr         = new ColumnHeader();
            this.SaveHdr             = new ColumnHeader();
            this.ResultHdr           = new ColumnHeader();
            this.Toolbar             = new ToolStrip();
            this.RollBtn             = new ToolStripButton();
            this.toolStripSeparator2 = new ToolStripSeparator();
            this.SavedBtn            = new ToolStripButton();
            this.NotSavedBtn         = new ToolStripButton();
            this.InfoLbl             = new Label();
            this.ListPanel.SuspendLayout();
            this.Toolbar.SuspendLayout();
            base.SuspendLayout();
            this.CancelBtn.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
            this.CancelBtn.DialogResult            = System.Windows.Forms.DialogResult.Cancel;
            this.CancelBtn.Location                = new Point(508, 277);
            this.CancelBtn.Name                    = "CancelBtn";
            this.CancelBtn.Size                    = new System.Drawing.Size(75, 23);
            this.CancelBtn.TabIndex                = 5;
            this.CancelBtn.Text                    = "Cancel";
            this.CancelBtn.UseVisualStyleBackColor = true;
            this.OKBtn.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
            this.OKBtn.DialogResult            = System.Windows.Forms.DialogResult.OK;
            this.OKBtn.Location                = new Point(427, 277);
            this.OKBtn.Name                    = "OKBtn";
            this.OKBtn.Size                    = new System.Drawing.Size(75, 23);
            this.OKBtn.TabIndex                = 4;
            this.OKBtn.Text                    = "OK";
            this.OKBtn.UseVisualStyleBackColor = true;
            this.OKBtn.Click                  += new EventHandler(this.OKBtn_Click);
            this.ListPanel.Anchor              = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.ListPanel.Controls.Add(this.EffectList);
            this.ListPanel.Controls.Add(this.Toolbar);
            this.ListPanel.Location = new Point(12, 33);
            this.ListPanel.Name     = "ListPanel";
            this.ListPanel.Size     = new System.Drawing.Size(571, 238);
            this.ListPanel.TabIndex = 1;
            ListView.ColumnHeaderCollection columns = this.EffectList.Columns;
            ColumnHeader[] powerHdr = new ColumnHeader[] { this.PowerHdr, this.RechargeHdr, this.SaveHdr, this.ResultHdr };
            columns.AddRange(powerHdr);
            this.EffectList.Dock          = DockStyle.Fill;
            this.EffectList.FullRowSelect = true;
            this.EffectList.HeaderStyle   = ColumnHeaderStyle.Nonclickable;
            this.EffectList.HideSelection = false;
            this.EffectList.Location      = new Point(0, 25);
            this.EffectList.MultiSelect   = false;
            this.EffectList.Name          = "EffectList";
            this.EffectList.Size          = new System.Drawing.Size(571, 213);
            this.EffectList.TabIndex      = 1;
            this.EffectList.UseCompatibleStateImageBehavior = false;
            this.EffectList.View   = View.Details;
            this.PowerHdr.Text     = "Power";
            this.PowerHdr.Width    = 200;
            this.RechargeHdr.Text  = "Recharge Condition";
            this.RechargeHdr.Width = 150;
            this.SaveHdr.Text      = "Roll";
            this.SaveHdr.TextAlign = HorizontalAlignment.Center;
            this.SaveHdr.Width     = 76;
            this.ResultHdr.Text    = "Result";
            this.ResultHdr.Width   = 111;
            ToolStripItemCollection items = this.Toolbar.Items;

            ToolStripItem[] rollBtn = new ToolStripItem[] { this.RollBtn, this.toolStripSeparator2, this.SavedBtn, this.NotSavedBtn };
            items.AddRange(rollBtn);
            this.Toolbar.Location                  = new Point(0, 0);
            this.Toolbar.Name                      = "Toolbar";
            this.Toolbar.Size                      = new System.Drawing.Size(571, 25);
            this.Toolbar.TabIndex                  = 2;
            this.Toolbar.Text                      = "toolStrip1";
            this.RollBtn.DisplayStyle              = ToolStripItemDisplayStyle.Text;
            this.RollBtn.Image                     = (Image)componentResourceManager.GetObject("RollBtn.Image");
            this.RollBtn.ImageTransparentColor     = Color.Magenta;
            this.RollBtn.Name                      = "RollBtn";
            this.RollBtn.Size                      = new System.Drawing.Size(41, 22);
            this.RollBtn.Text                      = "Reroll";
            this.RollBtn.Click                    += new EventHandler(this.RollBtn_Click);
            this.toolStripSeparator2.Name          = "toolStripSeparator2";
            this.toolStripSeparator2.Size          = new System.Drawing.Size(6, 25);
            this.SavedBtn.DisplayStyle             = ToolStripItemDisplayStyle.Text;
            this.SavedBtn.Image                    = (Image)componentResourceManager.GetObject("SavedBtn.Image");
            this.SavedBtn.ImageTransparentColor    = Color.Magenta;
            this.SavedBtn.Name                     = "SavedBtn";
            this.SavedBtn.Size                     = new System.Drawing.Size(111, 22);
            this.SavedBtn.Text                     = "Mark as Recharged";
            this.SavedBtn.Click                   += new EventHandler(this.SavedBtn_Click);
            this.NotSavedBtn.DisplayStyle          = ToolStripItemDisplayStyle.Text;
            this.NotSavedBtn.Image                 = (Image)componentResourceManager.GetObject("NotSavedBtn.Image");
            this.NotSavedBtn.ImageTransparentColor = Color.Magenta;
            this.NotSavedBtn.Name                  = "NotSavedBtn";
            this.NotSavedBtn.Size                  = new System.Drawing.Size(134, 22);
            this.NotSavedBtn.Text                  = "Mark as Not Recharged";
            this.NotSavedBtn.Click                += new EventHandler(this.NotSavedBtn_Click);
            this.InfoLbl.Anchor                    = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.InfoLbl.Location                  = new Point(12, 9);
            this.InfoLbl.Name                      = "InfoLbl";
            this.InfoLbl.Size                      = new System.Drawing.Size(571, 21);
            this.InfoLbl.TabIndex                  = 0;
            this.InfoLbl.Text                      = "The following expended powers have recharge conditions.";
            base.AcceptButton                      = this.OKBtn;
            base.AutoScaleDimensions               = new SizeF(6f, 13f);
            base.AutoScaleMode                     = System.Windows.Forms.AutoScaleMode.Font;
            base.CancelButton                      = this.CancelBtn;
            base.ClientSize = new System.Drawing.Size(595, 312);
            base.Controls.Add(this.InfoLbl);
            base.Controls.Add(this.ListPanel);
            base.Controls.Add(this.CancelBtn);
            base.Controls.Add(this.OKBtn);
            base.MaximizeBox   = false;
            base.MinimizeBox   = false;
            base.Name          = "RechargeForm";
            base.ShowIcon      = false;
            base.ShowInTaskbar = false;
            base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
            base.StartPosition = FormStartPosition.CenterParent;
            this.Text          = "Power Recharging";
            this.ListPanel.ResumeLayout(false);
            this.ListPanel.PerformLayout();
            this.Toolbar.ResumeLayout(false);
            this.Toolbar.PerformLayout();
            base.ResumeLayout(false);
        }
Пример #15
0
        private void InitializeComponent()
        {
            ListViewGroup            listViewGroup            = new ListViewGroup("Standard Skill DCs", HorizontalAlignment.Left);
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(SkillChallengeBuilderForm));
            ListViewGroup            listViewGroup1           = new ListViewGroup("Primary Skills", HorizontalAlignment.Left);
            ListViewGroup            listViewGroup2           = new ListViewGroup("Secondary Skills", HorizontalAlignment.Left);
            ListViewGroup            listViewGroup3           = new ListViewGroup("Automatic Failure", HorizontalAlignment.Left);
            ListViewGroup            listViewGroup4           = new ListViewGroup("Skills", HorizontalAlignment.Left);
            ListViewGroup            listViewGroup5           = new ListViewGroup("Abilities", HorizontalAlignment.Left);
            ListViewGroup            listViewGroup6           = new ListViewGroup("Custom", HorizontalAlignment.Left);

            this.OKBtn               = new Button();
            this.CancelBtn           = new Button();
            this.Pages               = new TabControl();
            this.OverviewPage        = new TabPage();
            this.OverviewSplitter    = new SplitContainer();
            this.LevelGroup          = new GroupBox();
            this.XPLbl               = new Label();
            this.XPInfoLbl           = new Label();
            this.LevelBox            = new NumericUpDown();
            this.LevelLbl            = new Label();
            this.CompGroup           = new GroupBox();
            this.LengthLbl           = new Label();
            this.LengthInfoLbl       = new Label();
            this.CompBox             = new NumericUpDown();
            this.CompLbl             = new Label();
            this.InfoList            = new ListView();
            this.InfoHdr             = new ColumnHeader();
            this.StdDCHdr            = new ColumnHeader();
            this.Toolbar             = new ToolStrip();
            this.FileMenu            = new ToolStripDropDownButton();
            this.FileExport          = new ToolStripMenuItem();
            this.toolStripSeparator2 = new ToolStripSeparator();
            this.SuccessCountLbl     = new ToolStripLabel();
            this.FailureCountLbl     = new ToolStripLabel();
            this.ResetProgressBtn    = new ToolStripButton();
            this.SkillsPage          = new TabPage();
            this.SkillSplitter       = new SplitContainer();
            this.SkillList           = new ListView();
            this.SkillHdr            = new ColumnHeader();
            this.DCHdr               = new ColumnHeader();
            this.SkillSourceList     = new ListView();
            this.SkillSourceHdr      = new ColumnHeader();
            this.AbilityHdr          = new ColumnHeader();
            this.SkillsToolbar       = new ToolStrip();
            this.RemoveBtn           = new ToolStripButton();
            this.EditBtn             = new ToolStripButton();
            this.toolStripSeparator1 = new ToolStripSeparator();
            this.BreakdownBtn        = new ToolStripButton();
            this.InfoPage            = new TabPage();
            this.InfoSplitter        = new SplitContainer();
            this.VictoryBox          = new DefaultTextBox();
            this.VictoryToolbar      = new ToolStrip();
            this.toolStripLabel1     = new ToolStripLabel();
            this.DefeatBox           = new DefaultTextBox();
            this.DefeatButton        = new ToolStrip();
            this.toolStripLabel2     = new ToolStripLabel();
            this.NotesPage           = new TabPage();
            this.NotesBox            = new DefaultTextBox();
            this.NameBox             = new TextBox();
            this.NameLbl             = new Label();
            this.Pages.SuspendLayout();
            this.OverviewPage.SuspendLayout();
            this.OverviewSplitter.Panel1.SuspendLayout();
            this.OverviewSplitter.Panel2.SuspendLayout();
            this.OverviewSplitter.SuspendLayout();
            this.LevelGroup.SuspendLayout();
            ((ISupportInitialize)this.LevelBox).BeginInit();
            this.CompGroup.SuspendLayout();
            ((ISupportInitialize)this.CompBox).BeginInit();
            this.Toolbar.SuspendLayout();
            this.SkillsPage.SuspendLayout();
            this.SkillSplitter.Panel1.SuspendLayout();
            this.SkillSplitter.Panel2.SuspendLayout();
            this.SkillSplitter.SuspendLayout();
            this.SkillsToolbar.SuspendLayout();
            this.InfoPage.SuspendLayout();
            this.InfoSplitter.Panel1.SuspendLayout();
            this.InfoSplitter.Panel2.SuspendLayout();
            this.InfoSplitter.SuspendLayout();
            this.VictoryToolbar.SuspendLayout();
            this.DefeatButton.SuspendLayout();
            this.NotesPage.SuspendLayout();
            base.SuspendLayout();
            this.OKBtn.Anchor                      = AnchorStyles.Bottom | AnchorStyles.Right;
            this.OKBtn.DialogResult                = System.Windows.Forms.DialogResult.OK;
            this.OKBtn.Location                    = new Point(352, 359);
            this.OKBtn.Name                        = "OKBtn";
            this.OKBtn.Size                        = new System.Drawing.Size(75, 23);
            this.OKBtn.TabIndex                    = 3;
            this.OKBtn.Text                        = "OK";
            this.OKBtn.UseVisualStyleBackColor     = true;
            this.OKBtn.Click                      += new EventHandler(this.OKBtn_Click);
            this.CancelBtn.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
            this.CancelBtn.DialogResult            = System.Windows.Forms.DialogResult.Cancel;
            this.CancelBtn.Location                = new Point(433, 359);
            this.CancelBtn.Name                    = "CancelBtn";
            this.CancelBtn.Size                    = new System.Drawing.Size(75, 23);
            this.CancelBtn.TabIndex                = 4;
            this.CancelBtn.Text                    = "Cancel";
            this.CancelBtn.UseVisualStyleBackColor = true;
            this.Pages.Anchor                      = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.Pages.Controls.Add(this.OverviewPage);
            this.Pages.Controls.Add(this.SkillsPage);
            this.Pages.Controls.Add(this.InfoPage);
            this.Pages.Controls.Add(this.NotesPage);
            this.Pages.Location      = new Point(12, 38);
            this.Pages.Name          = "Pages";
            this.Pages.SelectedIndex = 0;
            this.Pages.Size          = new System.Drawing.Size(496, 315);
            this.Pages.TabIndex      = 2;
            this.OverviewPage.Controls.Add(this.OverviewSplitter);
            this.OverviewPage.Controls.Add(this.Toolbar);
            this.OverviewPage.Location = new Point(4, 22);
            this.OverviewPage.Name     = "OverviewPage";
            this.OverviewPage.Padding  = new System.Windows.Forms.Padding(3);
            this.OverviewPage.Size     = new System.Drawing.Size(488, 289);
            this.OverviewPage.TabIndex = 5;
            this.OverviewPage.Text     = "Overview";
            this.OverviewPage.UseVisualStyleBackColor = true;
            this.OverviewSplitter.Dock     = DockStyle.Fill;
            this.OverviewSplitter.Location = new Point(3, 28);
            this.OverviewSplitter.Name     = "OverviewSplitter";
            this.OverviewSplitter.Panel1.Controls.Add(this.LevelGroup);
            this.OverviewSplitter.Panel1.Controls.Add(this.CompGroup);
            this.OverviewSplitter.Panel2.Controls.Add(this.InfoList);
            this.OverviewSplitter.Size             = new System.Drawing.Size(482, 258);
            this.OverviewSplitter.SplitterDistance = 237;
            this.OverviewSplitter.TabIndex         = 0;
            this.LevelGroup.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.LevelGroup.Controls.Add(this.XPLbl);
            this.LevelGroup.Controls.Add(this.XPInfoLbl);
            this.LevelGroup.Controls.Add(this.LevelBox);
            this.LevelGroup.Controls.Add(this.LevelLbl);
            this.LevelGroup.Location = new Point(4, 87);
            this.LevelGroup.Name     = "LevelGroup";
            this.LevelGroup.Size     = new System.Drawing.Size(230, 78);
            this.LevelGroup.TabIndex = 10;
            this.LevelGroup.TabStop  = false;
            this.LevelGroup.Text     = "Level";
            this.XPLbl.AutoSize      = true;
            this.XPLbl.Location      = new Point(69, 48);
            this.XPLbl.Name          = "XPLbl";
            this.XPLbl.Size          = new System.Drawing.Size(24, 13);
            this.XPLbl.TabIndex      = 10;
            this.XPLbl.Text          = "[xp]";
            this.XPInfoLbl.AutoSize  = true;
            this.XPInfoLbl.Location  = new Point(6, 48);
            this.XPInfoLbl.Name      = "XPInfoLbl";
            this.XPInfoLbl.Size      = new System.Drawing.Size(24, 13);
            this.XPInfoLbl.TabIndex  = 9;
            this.XPInfoLbl.Text      = "XP:";
            this.LevelBox.Anchor     = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.LevelBox.Location   = new Point(72, 19);
            NumericUpDown levelBox = this.LevelBox;

            int[] numArray = new int[] { 30, 0, 0, 0 };
            levelBox.Maximum = new decimal(numArray);
            NumericUpDown num = this.LevelBox;

            int[] numArray1 = new int[] { 1, 0, 0, 0 };
            num.Minimum            = new decimal(numArray1);
            this.LevelBox.Name     = "LevelBox";
            this.LevelBox.Size     = new System.Drawing.Size(152, 20);
            this.LevelBox.TabIndex = 8;
            NumericUpDown numericUpDown = this.LevelBox;

            int[] numArray2 = new int[] { 1, 0, 0, 0 };
            numericUpDown.Value         = new decimal(numArray2);
            this.LevelBox.ValueChanged += new EventHandler(this.LevelBox_ValueChanged);
            this.LevelLbl.AutoSize      = true;
            this.LevelLbl.Location      = new Point(6, 21);
            this.LevelLbl.Name          = "LevelLbl";
            this.LevelLbl.Size          = new System.Drawing.Size(36, 13);
            this.LevelLbl.TabIndex      = 7;
            this.LevelLbl.Text          = "Level:";
            this.CompGroup.Anchor       = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.CompGroup.Controls.Add(this.LengthLbl);
            this.CompGroup.Controls.Add(this.LengthInfoLbl);
            this.CompGroup.Controls.Add(this.CompBox);
            this.CompGroup.Controls.Add(this.CompLbl);
            this.CompGroup.Location     = new Point(3, 3);
            this.CompGroup.Name         = "CompGroup";
            this.CompGroup.Size         = new System.Drawing.Size(231, 78);
            this.CompGroup.TabIndex     = 9;
            this.CompGroup.TabStop      = false;
            this.CompGroup.Text         = "Complexity / Length";
            this.LengthLbl.AutoSize     = true;
            this.LengthLbl.Location     = new Point(69, 49);
            this.LengthLbl.Name         = "LengthLbl";
            this.LengthLbl.Size         = new System.Drawing.Size(42, 13);
            this.LengthLbl.TabIndex     = 5;
            this.LengthLbl.Text         = "[length]";
            this.LengthInfoLbl.AutoSize = true;
            this.LengthInfoLbl.Location = new Point(6, 49);
            this.LengthInfoLbl.Name     = "LengthInfoLbl";
            this.LengthInfoLbl.Size     = new System.Drawing.Size(43, 13);
            this.LengthInfoLbl.TabIndex = 4;
            this.LengthInfoLbl.Text     = "Length:";
            this.CompBox.Anchor         = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.CompBox.Location       = new Point(72, 19);
            NumericUpDown compBox = this.CompBox;

            int[] numArray3 = new int[] { 20, 0, 0, 0 };
            compBox.Maximum = new decimal(numArray3);
            NumericUpDown compBox1 = this.CompBox;

            int[] numArray4 = new int[] { 1, 0, 0, 0 };
            compBox1.Minimum      = new decimal(numArray4);
            this.CompBox.Name     = "CompBox";
            this.CompBox.Size     = new System.Drawing.Size(153, 20);
            this.CompBox.TabIndex = 3;
            NumericUpDown num1 = this.CompBox;

            int[] numArray5 = new int[] { 1, 0, 0, 0 };
            num1.Value = new decimal(numArray5);
            this.CompBox.ValueChanged += new EventHandler(this.CompBox_ValueChanged);
            this.CompLbl.AutoSize      = true;
            this.CompLbl.Location      = new Point(6, 21);
            this.CompLbl.Name          = "CompLbl";
            this.CompLbl.Size          = new System.Drawing.Size(60, 13);
            this.CompLbl.TabIndex      = 2;
            this.CompLbl.Text          = "Complexity:";
            ListView.ColumnHeaderCollection columns = this.InfoList.Columns;
            ColumnHeader[] infoHdr = new ColumnHeader[] { this.InfoHdr, this.StdDCHdr };
            columns.AddRange(infoHdr);
            this.InfoList.Dock          = DockStyle.Fill;
            this.InfoList.Enabled       = false;
            this.InfoList.FullRowSelect = true;
            listViewGroup.Header        = "Standard Skill DCs";
            listViewGroup.Name          = "listViewGroup1";
            this.InfoList.Groups.AddRange(new ListViewGroup[] { listViewGroup });
            this.InfoList.HeaderStyle   = ColumnHeaderStyle.Nonclickable;
            this.InfoList.HideSelection = false;
            this.InfoList.Location      = new Point(0, 0);
            this.InfoList.MultiSelect   = false;
            this.InfoList.Name          = "InfoList";
            this.InfoList.Size          = new System.Drawing.Size(241, 258);
            this.InfoList.TabIndex      = 0;
            this.InfoList.UseCompatibleStateImageBehavior = false;
            this.InfoList.View      = View.Details;
            this.InfoHdr.Text       = "Difficulty";
            this.InfoHdr.Width      = 139;
            this.StdDCHdr.Text      = "DC";
            this.StdDCHdr.TextAlign = HorizontalAlignment.Right;
            this.StdDCHdr.Width     = 67;
            ToolStripItemCollection items = this.Toolbar.Items;

            ToolStripItem[] fileMenu = new ToolStripItem[] { this.FileMenu, this.toolStripSeparator2, this.SuccessCountLbl, this.FailureCountLbl, this.ResetProgressBtn };
            items.AddRange(fileMenu);
            this.Toolbar.Location      = new Point(3, 3);
            this.Toolbar.Name          = "Toolbar";
            this.Toolbar.Size          = new System.Drawing.Size(482, 25);
            this.Toolbar.TabIndex      = 1;
            this.Toolbar.Text          = "toolStrip1";
            this.FileMenu.DisplayStyle = ToolStripItemDisplayStyle.Text;
            this.FileMenu.DropDownItems.AddRange(new ToolStripItem[] { this.FileExport });
            this.FileMenu.Image = (Image)componentResourceManager.GetObject("FileMenu.Image");
            this.FileMenu.ImageTransparentColor = Color.Magenta;
            this.FileMenu.Name                          = "FileMenu";
            this.FileMenu.Size                          = new System.Drawing.Size(38, 22);
            this.FileMenu.Text                          = "File";
            this.FileExport.Name                        = "FileExport";
            this.FileExport.Size                        = new System.Drawing.Size(152, 22);
            this.FileExport.Text                        = "Export...";
            this.FileExport.Click                      += new EventHandler(this.FileExport_Click);
            this.toolStripSeparator2.Name               = "toolStripSeparator2";
            this.toolStripSeparator2.Size               = new System.Drawing.Size(6, 25);
            this.SuccessCountLbl.Name                   = "SuccessCountLbl";
            this.SuccessCountLbl.Size                   = new System.Drawing.Size(66, 22);
            this.SuccessCountLbl.Text                   = "[successes]";
            this.FailureCountLbl.Name                   = "FailureCountLbl";
            this.FailureCountLbl.Size                   = new System.Drawing.Size(53, 22);
            this.FailureCountLbl.Text                   = "[failures]";
            this.ResetProgressBtn.DisplayStyle          = ToolStripItemDisplayStyle.Text;
            this.ResetProgressBtn.Image                 = (Image)componentResourceManager.GetObject("ResetProgressBtn.Image");
            this.ResetProgressBtn.ImageTransparentColor = Color.Magenta;
            this.ResetProgressBtn.Name                  = "ResetProgressBtn";
            this.ResetProgressBtn.Size                  = new System.Drawing.Size(39, 22);
            this.ResetProgressBtn.Text                  = "Reset";
            this.ResetProgressBtn.Click                += new EventHandler(this.ResetProgressBtn_Click);
            this.SkillsPage.Controls.Add(this.SkillSplitter);
            this.SkillsPage.Controls.Add(this.SkillsToolbar);
            this.SkillsPage.Location = new Point(4, 22);
            this.SkillsPage.Name     = "SkillsPage";
            this.SkillsPage.Padding  = new System.Windows.Forms.Padding(3);
            this.SkillsPage.Size     = new System.Drawing.Size(488, 289);
            this.SkillsPage.TabIndex = 3;
            this.SkillsPage.Text     = "Skills";
            this.SkillsPage.UseVisualStyleBackColor = true;
            this.SkillSplitter.Dock     = DockStyle.Fill;
            this.SkillSplitter.Location = new Point(3, 28);
            this.SkillSplitter.Name     = "SkillSplitter";
            this.SkillSplitter.Panel1.Controls.Add(this.SkillList);
            this.SkillSplitter.Panel2.Controls.Add(this.SkillSourceList);
            this.SkillSplitter.Size             = new System.Drawing.Size(482, 258);
            this.SkillSplitter.SplitterDistance = 283;
            this.SkillSplitter.TabIndex         = 2;
            this.SkillList.AllowDrop            = true;
            ListView.ColumnHeaderCollection columnHeaderCollections = this.SkillList.Columns;
            ColumnHeader[] skillHdr = new ColumnHeader[] { this.SkillHdr, this.DCHdr };
            columnHeaderCollections.AddRange(skillHdr);
            this.SkillList.Dock          = DockStyle.Fill;
            this.SkillList.FullRowSelect = true;
            listViewGroup1.Header        = "Primary Skills";
            listViewGroup1.Name          = "listViewGroup1";
            listViewGroup2.Header        = "Secondary Skills";
            listViewGroup2.Name          = "listViewGroup2";
            listViewGroup3.Header        = "Automatic Failure";
            listViewGroup3.Name          = "listViewGroup3";
            this.SkillList.Groups.AddRange(new ListViewGroup[] { listViewGroup1, listViewGroup2, listViewGroup3 });
            this.SkillList.HeaderStyle   = ColumnHeaderStyle.Nonclickable;
            this.SkillList.HideSelection = false;
            this.SkillList.Location      = new Point(0, 0);
            this.SkillList.MultiSelect   = false;
            this.SkillList.Name          = "SkillList";
            this.SkillList.Size          = new System.Drawing.Size(283, 258);
            this.SkillList.TabIndex      = 1;
            this.SkillList.UseCompatibleStateImageBehavior = false;
            this.SkillList.View         = View.Details;
            this.SkillList.DoubleClick += new EventHandler(this.EditBtn_Click);
            this.SkillList.DragOver    += new DragEventHandler(this.SkillList_DragOver);
            this.SkillHdr.Text          = "Skill";
            this.SkillHdr.Width         = 135;
            this.DCHdr.Text             = "DC Level";
            this.DCHdr.Width            = 103;
            ListView.ColumnHeaderCollection columns1 = this.SkillSourceList.Columns;
            ColumnHeader[] skillSourceHdr            = new ColumnHeader[] { this.SkillSourceHdr, this.AbilityHdr };
            columns1.AddRange(skillSourceHdr);
            this.SkillSourceList.Dock          = DockStyle.Fill;
            this.SkillSourceList.FullRowSelect = true;
            listViewGroup4.Header = "Skills";
            listViewGroup4.Name   = "listViewGroup1";
            listViewGroup5.Header = "Abilities";
            listViewGroup5.Name   = "listViewGroup2";
            listViewGroup6.Header = "Custom";
            listViewGroup6.Name   = "listViewGroup3";
            this.SkillSourceList.Groups.AddRange(new ListViewGroup[] { listViewGroup4, listViewGroup5, listViewGroup6 });
            this.SkillSourceList.HeaderStyle   = ColumnHeaderStyle.Nonclickable;
            this.SkillSourceList.HideSelection = false;
            this.SkillSourceList.Location      = new Point(0, 0);
            this.SkillSourceList.MultiSelect   = false;
            this.SkillSourceList.Name          = "SkillSourceList";
            this.SkillSourceList.Size          = new System.Drawing.Size(195, 258);
            this.SkillSourceList.TabIndex      = 0;
            this.SkillSourceList.UseCompatibleStateImageBehavior = false;
            this.SkillSourceList.View         = View.Details;
            this.SkillSourceList.DoubleClick += new EventHandler(this.SkillSourceList_DoubleClick);
            this.SkillSourceList.ItemDrag    += new ItemDragEventHandler(this.SkillSourceList_ItemDrag);
            this.SkillSourceHdr.Text          = "Skills";
            this.SkillSourceHdr.Width         = 112;
            this.AbilityHdr.Text              = "Ability";
            this.AbilityHdr.Width             = 49;
            ToolStripItemCollection toolStripItemCollections = this.SkillsToolbar.Items;

            ToolStripItem[] removeBtn = new ToolStripItem[] { this.RemoveBtn, this.EditBtn, this.toolStripSeparator1, this.BreakdownBtn };
            toolStripItemCollections.AddRange(removeBtn);
            this.SkillsToolbar.Location          = new Point(3, 3);
            this.SkillsToolbar.Name              = "SkillsToolbar";
            this.SkillsToolbar.Size              = new System.Drawing.Size(482, 25);
            this.SkillsToolbar.TabIndex          = 0;
            this.SkillsToolbar.Text              = "toolStrip1";
            this.RemoveBtn.DisplayStyle          = ToolStripItemDisplayStyle.Text;
            this.RemoveBtn.Image                 = (Image)componentResourceManager.GetObject("RemoveBtn.Image");
            this.RemoveBtn.ImageTransparentColor = Color.Magenta;
            this.RemoveBtn.Name                = "RemoveBtn";
            this.RemoveBtn.Size                = new System.Drawing.Size(54, 22);
            this.RemoveBtn.Text                = "Remove";
            this.RemoveBtn.Click              += new EventHandler(this.RemoveBtn_Click);
            this.EditBtn.DisplayStyle          = ToolStripItemDisplayStyle.Text;
            this.EditBtn.Image                 = (Image)componentResourceManager.GetObject("EditBtn.Image");
            this.EditBtn.ImageTransparentColor = Color.Magenta;
            this.EditBtn.Name                       = "EditBtn";
            this.EditBtn.Size                       = new System.Drawing.Size(31, 22);
            this.EditBtn.Text                       = "Edit";
            this.EditBtn.Click                     += new EventHandler(this.EditBtn_Click);
            this.toolStripSeparator1.Name           = "toolStripSeparator1";
            this.toolStripSeparator1.Size           = new System.Drawing.Size(6, 25);
            this.BreakdownBtn.DisplayStyle          = ToolStripItemDisplayStyle.Text;
            this.BreakdownBtn.Image                 = (Image)componentResourceManager.GetObject("BreakdownBtn.Image");
            this.BreakdownBtn.ImageTransparentColor = Color.Magenta;
            this.BreakdownBtn.Name                  = "BreakdownBtn";
            this.BreakdownBtn.Size                  = new System.Drawing.Size(107, 22);
            this.BreakdownBtn.Text                  = "Ability Breakdown";
            this.BreakdownBtn.Click                += new EventHandler(this.BreakdownBtn_Click);
            this.InfoPage.Controls.Add(this.InfoSplitter);
            this.InfoPage.Location = new Point(4, 22);
            this.InfoPage.Name     = "InfoPage";
            this.InfoPage.Padding  = new System.Windows.Forms.Padding(3);
            this.InfoPage.Size     = new System.Drawing.Size(488, 289);
            this.InfoPage.TabIndex = 4;
            this.InfoPage.Text     = "Victory / Defeat Details";
            this.InfoPage.UseVisualStyleBackColor = true;
            this.InfoSplitter.Dock     = DockStyle.Fill;
            this.InfoSplitter.Location = new Point(3, 3);
            this.InfoSplitter.Name     = "InfoSplitter";
            this.InfoSplitter.Panel1.Controls.Add(this.VictoryBox);
            this.InfoSplitter.Panel1.Controls.Add(this.VictoryToolbar);
            this.InfoSplitter.Panel2.Controls.Add(this.DefeatBox);
            this.InfoSplitter.Panel2.Controls.Add(this.DefeatButton);
            this.InfoSplitter.Size             = new System.Drawing.Size(482, 283);
            this.InfoSplitter.SplitterDistance = 237;
            this.InfoSplitter.TabIndex         = 0;
            this.VictoryBox.AcceptsReturn      = true;
            this.VictoryBox.AcceptsTab         = true;
            this.VictoryBox.DefaultText        = "(enter victory information here)";
            this.VictoryBox.Dock       = DockStyle.Fill;
            this.VictoryBox.Location   = new Point(0, 25);
            this.VictoryBox.Multiline  = true;
            this.VictoryBox.Name       = "VictoryBox";
            this.VictoryBox.ScrollBars = ScrollBars.Vertical;
            this.VictoryBox.Size       = new System.Drawing.Size(237, 258);
            this.VictoryBox.TabIndex   = 1;
            this.VictoryBox.Text       = "(enter victory information here)";
            this.VictoryToolbar.Items.AddRange(new ToolStripItem[] { this.toolStripLabel1 });
            this.VictoryToolbar.Location = new Point(0, 0);
            this.VictoryToolbar.Name     = "VictoryToolbar";
            this.VictoryToolbar.Size     = new System.Drawing.Size(237, 25);
            this.VictoryToolbar.TabIndex = 0;
            this.VictoryToolbar.Text     = "toolStrip1";
            this.toolStripLabel1.Name    = "toolStripLabel1";
            this.toolStripLabel1.Size    = new System.Drawing.Size(47, 22);
            this.toolStripLabel1.Text    = "Victory:";
            this.DefeatBox.AcceptsReturn = true;
            this.DefeatBox.AcceptsTab    = true;
            this.DefeatBox.DefaultText   = "(enter defeat information here)";
            this.DefeatBox.Dock          = DockStyle.Fill;
            this.DefeatBox.Location      = new Point(0, 25);
            this.DefeatBox.Multiline     = true;
            this.DefeatBox.Name          = "DefeatBox";
            this.DefeatBox.ScrollBars    = ScrollBars.Vertical;
            this.DefeatBox.Size          = new System.Drawing.Size(241, 258);
            this.DefeatBox.TabIndex      = 2;
            this.DefeatBox.Text          = "(enter defeat information here)";
            this.DefeatButton.Items.AddRange(new ToolStripItem[] { this.toolStripLabel2 });
            this.DefeatButton.Location = new Point(0, 0);
            this.DefeatButton.Name     = "DefeatButton";
            this.DefeatButton.Size     = new System.Drawing.Size(241, 25);
            this.DefeatButton.TabIndex = 0;
            this.DefeatButton.Text     = "toolStrip2";
            this.toolStripLabel2.Name  = "toolStripLabel2";
            this.toolStripLabel2.Size  = new System.Drawing.Size(44, 22);
            this.toolStripLabel2.Text  = "Defeat:";
            this.NotesPage.Controls.Add(this.NotesBox);
            this.NotesPage.Location = new Point(4, 22);
            this.NotesPage.Name     = "NotesPage";
            this.NotesPage.Padding  = new System.Windows.Forms.Padding(3);
            this.NotesPage.Size     = new System.Drawing.Size(488, 289);
            this.NotesPage.TabIndex = 6;
            this.NotesPage.Text     = "Notes";
            this.NotesPage.UseVisualStyleBackColor = true;
            this.NotesBox.AcceptsReturn            = true;
            this.NotesBox.AcceptsTab  = true;
            this.NotesBox.DefaultText = "(enter details here)";
            this.NotesBox.Dock        = DockStyle.Fill;
            this.NotesBox.Location    = new Point(3, 3);
            this.NotesBox.Multiline   = true;
            this.NotesBox.Name        = "NotesBox";
            this.NotesBox.ScrollBars  = ScrollBars.Vertical;
            this.NotesBox.Size        = new System.Drawing.Size(482, 283);
            this.NotesBox.TabIndex    = 3;
            this.NotesBox.Text        = "(enter details here)";
            this.NameBox.Anchor       = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.NameBox.Location     = new Point(56, 12);
            this.NameBox.Name         = "NameBox";
            this.NameBox.Size         = new System.Drawing.Size(452, 20);
            this.NameBox.TabIndex     = 5;
            this.NameLbl.AutoSize     = true;
            this.NameLbl.Location     = new Point(12, 15);
            this.NameLbl.Name         = "NameLbl";
            this.NameLbl.Size         = new System.Drawing.Size(38, 13);
            this.NameLbl.TabIndex     = 4;
            this.NameLbl.Text         = "Name:";
            base.AcceptButton         = this.OKBtn;
            base.AutoScaleDimensions  = new SizeF(6f, 13f);
            base.AutoScaleMode        = System.Windows.Forms.AutoScaleMode.Font;
            base.CancelButton         = this.CancelBtn;
            base.ClientSize           = new System.Drawing.Size(520, 394);
            base.Controls.Add(this.Pages);
            base.Controls.Add(this.CancelBtn);
            base.Controls.Add(this.NameBox);
            base.Controls.Add(this.NameLbl);
            base.Controls.Add(this.OKBtn);
            base.MaximizeBox   = false;
            base.MinimizeBox   = false;
            base.Name          = "SkillChallengeBuilderForm";
            base.ShowIcon      = false;
            base.ShowInTaskbar = false;
            base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
            base.StartPosition = FormStartPosition.CenterParent;
            this.Text          = "Skill Challenge Builder";
            this.Pages.ResumeLayout(false);
            this.OverviewPage.ResumeLayout(false);
            this.OverviewPage.PerformLayout();
            this.OverviewSplitter.Panel1.ResumeLayout(false);
            this.OverviewSplitter.Panel2.ResumeLayout(false);
            this.OverviewSplitter.ResumeLayout(false);
            this.LevelGroup.ResumeLayout(false);
            this.LevelGroup.PerformLayout();
            ((ISupportInitialize)this.LevelBox).EndInit();
            this.CompGroup.ResumeLayout(false);
            this.CompGroup.PerformLayout();
            ((ISupportInitialize)this.CompBox).EndInit();
            this.Toolbar.ResumeLayout(false);
            this.Toolbar.PerformLayout();
            this.SkillsPage.ResumeLayout(false);
            this.SkillsPage.PerformLayout();
            this.SkillSplitter.Panel1.ResumeLayout(false);
            this.SkillSplitter.Panel2.ResumeLayout(false);
            this.SkillSplitter.ResumeLayout(false);
            this.SkillsToolbar.ResumeLayout(false);
            this.SkillsToolbar.PerformLayout();
            this.InfoPage.ResumeLayout(false);
            this.InfoSplitter.Panel1.ResumeLayout(false);
            this.InfoSplitter.Panel1.PerformLayout();
            this.InfoSplitter.Panel2.ResumeLayout(false);
            this.InfoSplitter.Panel2.PerformLayout();
            this.InfoSplitter.ResumeLayout(false);
            this.VictoryToolbar.ResumeLayout(false);
            this.VictoryToolbar.PerformLayout();
            this.DefeatButton.ResumeLayout(false);
            this.DefeatButton.PerformLayout();
            this.NotesPage.ResumeLayout(false);
            this.NotesPage.PerformLayout();
            base.ResumeLayout(false);
            base.PerformLayout();
        }
Пример #16
0
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(ParcelListForm));
            ListViewGroup            listViewGroup            = new ListViewGroup("Parcels which are assigned to a Plot Point", HorizontalAlignment.Left);
            ListViewGroup            listViewGroup1           = new ListViewGroup("Parcels which are not yet assigned to a plot point", HorizontalAlignment.Left);

            this.Toolbar             = new ToolStrip();
            this.AddBtn              = new ToolStripDropDownButton();
            this.AddParcel           = new ToolStripMenuItem();
            this.AddMagicItem        = new ToolStripMenuItem();
            this.AddArtifact         = new ToolStripMenuItem();
            this.toolStripSeparator1 = new ToolStripSeparator();
            this.AddSet              = new ToolStripMenuItem();
            this.RemoveBtn           = new ToolStripButton();
            this.EditBtn             = new ToolStripButton();
            this.toolStripSeparator3 = new ToolStripSeparator();
            this.RandomiseAllBtn     = new ToolStripButton();
            this.toolStripSeparator4 = new ToolStripSeparator();
            this.ViewMenu            = new ToolStripDropDownButton();
            this.ViewAssigned        = new ToolStripMenuItem();
            this.ViewUnassigned      = new ToolStripMenuItem();
            this.ParcelList          = new ListView();
            this.ParcelHdr           = new ColumnHeader();
            this.DetailsHdr          = new ColumnHeader();
            this.HeroHdr             = new ColumnHeader();
            this.ParcelMenu          = new System.Windows.Forms.ContextMenuStrip(this.components);
            this.ChangeItem          = new ToolStripMenuItem();
            this.toolStripMenuItem1  = new ToolStripSeparator();
            this.ChangeAssign        = new ToolStripMenuItem();
            this.toolStripMenuItem2  = new ToolStripSeparator();
            this.RandomiseItem       = new ToolStripMenuItem();
            this.ResetItem           = new ToolStripMenuItem();
            this.MainPanel           = new Panel();
            this.CloseBtn            = new Button();
            this.Toolbar.SuspendLayout();
            this.ParcelMenu.SuspendLayout();
            this.MainPanel.SuspendLayout();
            base.SuspendLayout();
            ToolStripItemCollection items = this.Toolbar.Items;

            ToolStripItem[] addBtn = new ToolStripItem[] { this.AddBtn, this.RemoveBtn, this.EditBtn, this.toolStripSeparator3, this.RandomiseAllBtn, this.toolStripSeparator4, this.ViewMenu };
            items.AddRange(addBtn);
            this.Toolbar.Location    = new Point(0, 0);
            this.Toolbar.Name        = "Toolbar";
            this.Toolbar.Size        = new System.Drawing.Size(665, 25);
            this.Toolbar.TabIndex    = 0;
            this.Toolbar.Text        = "toolStrip1";
            this.AddBtn.DisplayStyle = ToolStripItemDisplayStyle.Text;
            ToolStripItemCollection dropDownItems = this.AddBtn.DropDownItems;

            ToolStripItem[] addParcel = new ToolStripItem[] { this.AddParcel, this.AddMagicItem, this.AddArtifact, this.toolStripSeparator1, this.AddSet };
            dropDownItems.AddRange(addParcel);
            this.AddBtn.Image = (Image)componentResourceManager.GetObject("AddBtn.Image");
            this.AddBtn.ImageTransparentColor = Color.Magenta;
            this.AddBtn.Name                           = "AddBtn";
            this.AddBtn.Size                           = new System.Drawing.Size(42, 22);
            this.AddBtn.Text                           = "Add";
            this.AddParcel.Name                        = "AddParcel";
            this.AddParcel.Size                        = new System.Drawing.Size(228, 22);
            this.AddParcel.Text                        = "Add a Mundane Parcel...";
            this.AddParcel.Click                      += new EventHandler(this.AddParcel_Click);
            this.AddMagicItem.Name                     = "AddMagicItem";
            this.AddMagicItem.Size                     = new System.Drawing.Size(228, 22);
            this.AddMagicItem.Text                     = "Add a Magic Item...";
            this.AddMagicItem.Click                   += new EventHandler(this.AddMagicItem_Click);
            this.AddArtifact.Name                      = "AddArtifact";
            this.AddArtifact.Size                      = new System.Drawing.Size(228, 22);
            this.AddArtifact.Text                      = "Add an Artifact...";
            this.AddArtifact.Click                    += new EventHandler(this.AddArtifact_Click);
            this.toolStripSeparator1.Name              = "toolStripSeparator1";
            this.toolStripSeparator1.Size              = new System.Drawing.Size(225, 6);
            this.AddSet.Name                           = "AddSet";
            this.AddSet.Size                           = new System.Drawing.Size(228, 22);
            this.AddSet.Text                           = "Add a Standard Set of Parcels";
            this.AddSet.Click                         += new EventHandler(this.AddSet_Click);
            this.RemoveBtn.DisplayStyle                = ToolStripItemDisplayStyle.Text;
            this.RemoveBtn.Image                       = (Image)componentResourceManager.GetObject("RemoveBtn.Image");
            this.RemoveBtn.ImageTransparentColor       = Color.Magenta;
            this.RemoveBtn.Name                        = "RemoveBtn";
            this.RemoveBtn.Size                        = new System.Drawing.Size(54, 22);
            this.RemoveBtn.Text                        = "Remove";
            this.RemoveBtn.Click                      += new EventHandler(this.RemoveBtn_Click);
            this.EditBtn.DisplayStyle                  = ToolStripItemDisplayStyle.Text;
            this.EditBtn.Image                         = (Image)componentResourceManager.GetObject("EditBtn.Image");
            this.EditBtn.ImageTransparentColor         = Color.Magenta;
            this.EditBtn.Name                          = "EditBtn";
            this.EditBtn.Size                          = new System.Drawing.Size(31, 22);
            this.EditBtn.Text                          = "Edit";
            this.EditBtn.Click                        += new EventHandler(this.EditBtn_Click);
            this.toolStripSeparator3.Name              = "toolStripSeparator3";
            this.toolStripSeparator3.Size              = new System.Drawing.Size(6, 25);
            this.RandomiseAllBtn.DisplayStyle          = ToolStripItemDisplayStyle.Text;
            this.RandomiseAllBtn.Image                 = (Image)componentResourceManager.GetObject("RandomiseAllBtn.Image");
            this.RandomiseAllBtn.ImageTransparentColor = Color.Magenta;
            this.RandomiseAllBtn.Name                  = "RandomiseAllBtn";
            this.RandomiseAllBtn.Size                  = new System.Drawing.Size(87, 22);
            this.RandomiseAllBtn.Text                  = "Randomise All";
            this.RandomiseAllBtn.ToolTipText           = "Randomise unassigned parcels";
            this.RandomiseAllBtn.Click                += new EventHandler(this.RandomiseBtn_Click);
            this.toolStripSeparator4.Name              = "toolStripSeparator4";
            this.toolStripSeparator4.Size              = new System.Drawing.Size(6, 25);
            this.ViewMenu.DisplayStyle                 = ToolStripItemDisplayStyle.Text;
            ToolStripItemCollection toolStripItemCollections = this.ViewMenu.DropDownItems;

            ToolStripItem[] viewAssigned = new ToolStripItem[] { this.ViewAssigned, this.ViewUnassigned };
            toolStripItemCollections.AddRange(viewAssigned);
            this.ViewMenu.Image = (Image)componentResourceManager.GetObject("ViewMenu.Image");
            this.ViewMenu.ImageTransparentColor = Color.Magenta;
            this.ViewMenu.Name             = "ViewMenu";
            this.ViewMenu.Size             = new System.Drawing.Size(45, 22);
            this.ViewMenu.Text             = "View";
            this.ViewMenu.DropDownOpening += new EventHandler(this.ViewMenu_DropDownOpening);
            this.ViewAssigned.Name         = "ViewAssigned";
            this.ViewAssigned.Size         = new System.Drawing.Size(135, 22);
            this.ViewAssigned.Text         = "Assigned";
            this.ViewAssigned.Click       += new EventHandler(this.ViewAssigned_Click);
            this.ViewUnassigned.Name       = "ViewUnassigned";
            this.ViewUnassigned.Size       = new System.Drawing.Size(135, 22);
            this.ViewUnassigned.Text       = "Unassigned";
            this.ViewUnassigned.Click     += new EventHandler(this.ViewUnassigned_Click);
            ListView.ColumnHeaderCollection columns = this.ParcelList.Columns;
            ColumnHeader[] parcelHdr = new ColumnHeader[] { this.ParcelHdr, this.DetailsHdr, this.HeroHdr };
            columns.AddRange(parcelHdr);
            this.ParcelList.ContextMenuStrip = this.ParcelMenu;
            this.ParcelList.Dock             = DockStyle.Fill;
            this.ParcelList.FullRowSelect    = true;
            listViewGroup.Header             = "Parcels which are assigned to a Plot Point";
            listViewGroup.Name    = "listViewGroup1";
            listViewGroup1.Header = "Parcels which are not yet assigned to a plot point";
            listViewGroup1.Name   = "listViewGroup2";
            this.ParcelList.Groups.AddRange(new ListViewGroup[] { listViewGroup, listViewGroup1 });
            this.ParcelList.HeaderStyle   = ColumnHeaderStyle.Nonclickable;
            this.ParcelList.HideSelection = false;
            this.ParcelList.Location      = new Point(0, 25);
            this.ParcelList.MultiSelect   = false;
            this.ParcelList.Name          = "ParcelList";
            this.ParcelList.Size          = new System.Drawing.Size(665, 314);
            this.ParcelList.Sorting       = SortOrder.Ascending;
            this.ParcelList.TabIndex      = 1;
            this.ParcelList.UseCompatibleStateImageBehavior = false;
            this.ParcelList.View         = View.Details;
            this.ParcelList.DoubleClick += new EventHandler(this.EditBtn_Click);
            this.ParcelHdr.Text          = "Parcel";
            this.ParcelHdr.Width         = 150;
            this.DetailsHdr.Text         = "Details";
            this.DetailsHdr.Width        = 300;
            this.HeroHdr.Text            = "Allocated To";
            this.HeroHdr.Width           = 183;
            ToolStripItemCollection items1 = this.ParcelMenu.Items;

            ToolStripItem[] changeItem = new ToolStripItem[] { this.ChangeItem, this.toolStripMenuItem1, this.ChangeAssign, this.toolStripMenuItem2, this.RandomiseItem, this.ResetItem };
            items1.AddRange(changeItem);
            this.ParcelMenu.Name         = "contextMenuStrip1";
            this.ParcelMenu.Size         = new System.Drawing.Size(187, 104);
            this.ParcelMenu.Opening     += new CancelEventHandler(this.ContextMenu_Opening);
            this.ChangeItem.Name         = "ChangeItem";
            this.ChangeItem.Size         = new System.Drawing.Size(186, 22);
            this.ChangeItem.Text         = "Choose Magic Item...";
            this.ChangeItem.Click       += new EventHandler(this.ChangeItemBtn_Click);
            this.toolStripMenuItem1.Name = "toolStripMenuItem1";
            this.toolStripMenuItem1.Size = new System.Drawing.Size(183, 6);
            this.ChangeAssign.Name       = "ChangeAssign";
            this.ChangeAssign.Size       = new System.Drawing.Size(186, 22);
            this.ChangeAssign.Text       = "Allocate To PC";
            this.toolStripMenuItem2.Name = "toolStripMenuItem2";
            this.toolStripMenuItem2.Size = new System.Drawing.Size(183, 6);
            this.RandomiseItem.Name      = "RandomiseItem";
            this.RandomiseItem.Size      = new System.Drawing.Size(186, 22);
            this.RandomiseItem.Text      = "Randomise Parcel";
            this.RandomiseItem.Click    += new EventHandler(this.RandomiseItem_Click);
            this.ResetItem.Name          = "ResetItem";
            this.ResetItem.Size          = new System.Drawing.Size(186, 22);
            this.ResetItem.Text          = "Reset Parcel";
            this.ResetItem.Click        += new EventHandler(this.ResetItem_Click);
            this.MainPanel.Anchor        = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.MainPanel.Controls.Add(this.ParcelList);
            this.MainPanel.Controls.Add(this.Toolbar);
            this.MainPanel.Location               = new Point(12, 12);
            this.MainPanel.Name                   = "MainPanel";
            this.MainPanel.Size                   = new System.Drawing.Size(665, 339);
            this.MainPanel.TabIndex               = 2;
            this.CloseBtn.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
            this.CloseBtn.DialogResult            = System.Windows.Forms.DialogResult.OK;
            this.CloseBtn.Location                = new Point(602, 357);
            this.CloseBtn.Name                    = "CloseBtn";
            this.CloseBtn.Size                    = new System.Drawing.Size(75, 23);
            this.CloseBtn.TabIndex                = 3;
            this.CloseBtn.Text                    = "Close";
            this.CloseBtn.UseVisualStyleBackColor = true;
            base.AcceptButton        = this.CloseBtn;
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            base.ClientSize          = new System.Drawing.Size(689, 392);
            base.Controls.Add(this.CloseBtn);
            base.Controls.Add(this.MainPanel);
            base.MaximizeBox   = false;
            base.MinimizeBox   = false;
            base.Name          = "ParcelListForm";
            base.ShowIcon      = false;
            base.ShowInTaskbar = false;
            base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
            base.StartPosition = FormStartPosition.CenterParent;
            this.Text          = "Treasure Parcels";
            base.Shown        += new EventHandler(this.ParcelListForm_Shown);
            this.Toolbar.ResumeLayout(false);
            this.Toolbar.PerformLayout();
            this.ParcelMenu.ResumeLayout(false);
            this.MainPanel.ResumeLayout(false);
            this.MainPanel.PerformLayout();
            base.ResumeLayout(false);
        }
Пример #17
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(CalendarListForm));

            this.Toolbar             = new ToolStrip();
            this.AddBtn              = new ToolStripButton();
            this.RemoveBtn           = new ToolStripButton();
            this.EditBtn             = new ToolStripButton();
            this.toolStripSeparator3 = new ToolStripSeparator();
            this.ExportBtn           = new ToolStripButton();
            this.PlayerViewBtn       = new ToolStripButton();
            this.CalendarList        = new ListView();
            this.NameHdr             = new ColumnHeader();
            this.MonthsHdr           = new ColumnHeader();
            this.DaysHdr             = new ColumnHeader();
            this.Splitter            = new SplitContainer();
            this.CalendarPnl         = new CalendarPanel();
            this.NavigationToolbar   = new ToolStrip();
            this.YearPrevBtn         = new ToolStripLabel();
            this.MonthPrevBtn        = new ToolStripLabel();
            this.toolStripSeparator1 = new ToolStripSeparator();
            this.MonthBox            = new ToolStripComboBox();
            this.YearBox             = new ToolStripTextBox();
            this.toolStripSeparator2 = new ToolStripSeparator();
            this.MonthNextBtn        = new ToolStripLabel();
            this.YearNextBtn         = new ToolStripLabel();
            this.CloseBtn            = new Button();
            this.Toolbar.SuspendLayout();
            this.Splitter.Panel1.SuspendLayout();
            this.Splitter.Panel2.SuspendLayout();
            this.Splitter.SuspendLayout();
            this.NavigationToolbar.SuspendLayout();
            base.SuspendLayout();
            ToolStripItemCollection items = this.Toolbar.Items;

            ToolStripItem[] addBtn = new ToolStripItem[] { this.AddBtn, this.RemoveBtn, this.EditBtn, this.toolStripSeparator3, this.ExportBtn, this.PlayerViewBtn };
            items.AddRange(addBtn);
            this.Toolbar.Location             = new Point(0, 0);
            this.Toolbar.Name                 = "Toolbar";
            this.Toolbar.Size                 = new System.Drawing.Size(485, 25);
            this.Toolbar.TabIndex             = 0;
            this.Toolbar.Text                 = "toolStrip1";
            this.AddBtn.DisplayStyle          = ToolStripItemDisplayStyle.Text;
            this.AddBtn.Image                 = (Image)componentResourceManager.GetObject("AddBtn.Image");
            this.AddBtn.ImageTransparentColor = Color.Magenta;
            this.AddBtn.Name                         = "AddBtn";
            this.AddBtn.Size                         = new System.Drawing.Size(33, 22);
            this.AddBtn.Text                         = "Add";
            this.AddBtn.Click                       += new EventHandler(this.AddBtn_Click);
            this.RemoveBtn.DisplayStyle              = ToolStripItemDisplayStyle.Text;
            this.RemoveBtn.Image                     = (Image)componentResourceManager.GetObject("RemoveBtn.Image");
            this.RemoveBtn.ImageTransparentColor     = Color.Magenta;
            this.RemoveBtn.Name                      = "RemoveBtn";
            this.RemoveBtn.Size                      = new System.Drawing.Size(54, 22);
            this.RemoveBtn.Text                      = "Remove";
            this.RemoveBtn.Click                    += new EventHandler(this.RemoveBtn_Click);
            this.EditBtn.DisplayStyle                = ToolStripItemDisplayStyle.Text;
            this.EditBtn.Image                       = (Image)componentResourceManager.GetObject("EditBtn.Image");
            this.EditBtn.ImageTransparentColor       = Color.Magenta;
            this.EditBtn.Name                        = "EditBtn";
            this.EditBtn.Size                        = new System.Drawing.Size(31, 22);
            this.EditBtn.Text                        = "Edit";
            this.EditBtn.Click                      += new EventHandler(this.EditBtn_Click);
            this.toolStripSeparator3.Name            = "toolStripSeparator3";
            this.toolStripSeparator3.Size            = new System.Drawing.Size(6, 25);
            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.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);
            ListView.ColumnHeaderCollection columns = this.CalendarList.Columns;
            ColumnHeader[] nameHdr = new ColumnHeader[] { this.NameHdr, this.MonthsHdr, this.DaysHdr };
            columns.AddRange(nameHdr);
            this.CalendarList.Dock          = DockStyle.Fill;
            this.CalendarList.FullRowSelect = true;
            this.CalendarList.HeaderStyle   = ColumnHeaderStyle.Nonclickable;
            this.CalendarList.HideSelection = false;
            this.CalendarList.Location      = new Point(0, 25);
            this.CalendarList.MultiSelect   = false;
            this.CalendarList.Name          = "CalendarList";
            this.CalendarList.Size          = new System.Drawing.Size(485, 72);
            this.CalendarList.TabIndex      = 1;
            this.CalendarList.UseCompatibleStateImageBehavior = false;
            this.CalendarList.View = View.Details;
            this.CalendarList.SelectedIndexChanged += new EventHandler(this.CalendarList_SelectedIndexChanged);
            this.CalendarList.DoubleClick          += new EventHandler(this.EditBtn_Click);
            this.NameHdr.Text         = "Calendar";
            this.NameHdr.Width        = 300;
            this.MonthsHdr.Text       = "Months";
            this.MonthsHdr.TextAlign  = HorizontalAlignment.Right;
            this.DaysHdr.Text         = "Days";
            this.DaysHdr.TextAlign    = HorizontalAlignment.Right;
            this.Splitter.Anchor      = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.Splitter.FixedPanel  = FixedPanel.Panel1;
            this.Splitter.Location    = new Point(12, 12);
            this.Splitter.Name        = "Splitter";
            this.Splitter.Orientation = Orientation.Horizontal;
            this.Splitter.Panel1.Controls.Add(this.CalendarList);
            this.Splitter.Panel1.Controls.Add(this.Toolbar);
            this.Splitter.Panel2.Controls.Add(this.CalendarPnl);
            this.Splitter.Panel2.Controls.Add(this.NavigationToolbar);
            this.Splitter.Size               = new System.Drawing.Size(485, 364);
            this.Splitter.SplitterDistance   = 97;
            this.Splitter.TabIndex           = 2;
            this.CalendarPnl.BorderStyle     = BorderStyle.FixedSingle;
            this.CalendarPnl.Calendar        = null;
            this.CalendarPnl.Dock            = DockStyle.Fill;
            this.CalendarPnl.Location        = new Point(0, 25);
            this.CalendarPnl.MonthIndex      = 0;
            this.CalendarPnl.Name            = "CalendarPnl";
            this.CalendarPnl.Size            = new System.Drawing.Size(485, 238);
            this.CalendarPnl.TabIndex        = 0;
            this.CalendarPnl.Year            = 0;
            this.NavigationToolbar.GripStyle = ToolStripGripStyle.Hidden;
            ToolStripItemCollection toolStripItemCollections = this.NavigationToolbar.Items;

            ToolStripItem[] yearPrevBtn = new ToolStripItem[] { this.YearPrevBtn, this.MonthPrevBtn, this.toolStripSeparator1, this.MonthBox, this.YearBox, this.toolStripSeparator2, this.MonthNextBtn, this.YearNextBtn };
            toolStripItemCollections.AddRange(yearPrevBtn);
            this.NavigationToolbar.Location = new Point(0, 0);
            this.NavigationToolbar.Name     = "NavigationToolbar";
            this.NavigationToolbar.Size     = new System.Drawing.Size(485, 25);
            this.NavigationToolbar.TabIndex = 1;
            this.NavigationToolbar.Text     = "toolStrip1";
            this.YearPrevBtn.IsLink         = true;
            this.YearPrevBtn.Name           = "YearPrevBtn";
            this.YearPrevBtn.Size           = new System.Drawing.Size(49, 22);
            this.YearPrevBtn.Text           = "<< Year";
            this.YearPrevBtn.Click         += new EventHandler(this.YearPrevBtn_Click);
            this.MonthPrevBtn.IsLink        = true;
            this.MonthPrevBtn.Name          = "MonthPrevBtn";
            this.MonthPrevBtn.Size          = new System.Drawing.Size(62, 22);
            this.MonthPrevBtn.Text          = "<< Month";
            this.MonthPrevBtn.Click        += new EventHandler(this.MonthPrevBtn_Click);
            this.toolStripSeparator1.Name   = "toolStripSeparator1";
            this.toolStripSeparator1.Size   = new System.Drawing.Size(6, 25);
            this.MonthBox.DropDownStyle     = ComboBoxStyle.DropDownList;
            this.MonthBox.Name = "MonthBox";
            this.MonthBox.Size = new System.Drawing.Size(121, 25);
            this.MonthBox.SelectedIndexChanged += new EventHandler(this.MonthBox_SelectedIndexChanged);
            this.YearBox.Name                     = "YearBox";
            this.YearBox.Size                     = new System.Drawing.Size(100, 25);
            this.YearBox.TextChanged             += new EventHandler(this.YearBox_TextChanged);
            this.toolStripSeparator2.Name         = "toolStripSeparator2";
            this.toolStripSeparator2.Size         = new System.Drawing.Size(6, 25);
            this.MonthNextBtn.IsLink              = true;
            this.MonthNextBtn.Name                = "MonthNextBtn";
            this.MonthNextBtn.Size                = new System.Drawing.Size(62, 22);
            this.MonthNextBtn.Text                = "Month >>";
            this.MonthNextBtn.Click              += new EventHandler(this.MonthNextBtn_Click);
            this.YearNextBtn.IsLink               = true;
            this.YearNextBtn.Name                 = "YearNextBtn";
            this.YearNextBtn.Size                 = new System.Drawing.Size(49, 22);
            this.YearNextBtn.Text                 = "Year >>";
            this.YearNextBtn.Click               += new EventHandler(this.YearNextBtn_Click);
            this.CloseBtn.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
            this.CloseBtn.DialogResult            = System.Windows.Forms.DialogResult.OK;
            this.CloseBtn.Location                = new Point(422, 382);
            this.CloseBtn.Name                    = "CloseBtn";
            this.CloseBtn.Size                    = new System.Drawing.Size(75, 23);
            this.CloseBtn.TabIndex                = 3;
            this.CloseBtn.Text                    = "Close";
            this.CloseBtn.UseVisualStyleBackColor = true;
            base.AcceptButton                     = this.CloseBtn;
            base.AutoScaleDimensions              = new SizeF(6f, 13f);
            base.AutoScaleMode                    = System.Windows.Forms.AutoScaleMode.Font;
            base.ClientSize = new System.Drawing.Size(509, 417);
            base.Controls.Add(this.CloseBtn);
            base.Controls.Add(this.Splitter);
            base.MaximizeBox   = false;
            base.MinimizeBox   = false;
            base.Name          = "CalendarListForm";
            base.ShowIcon      = false;
            base.ShowInTaskbar = false;
            base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
            base.StartPosition = FormStartPosition.CenterParent;
            this.Text          = "Calendars";
            this.Toolbar.ResumeLayout(false);
            this.Toolbar.PerformLayout();
            this.Splitter.Panel1.ResumeLayout(false);
            this.Splitter.Panel1.PerformLayout();
            this.Splitter.Panel2.ResumeLayout(false);
            this.Splitter.Panel2.PerformLayout();
            this.Splitter.ResumeLayout(false);
            this.NavigationToolbar.ResumeLayout(false);
            this.NavigationToolbar.PerformLayout();
            base.ResumeLayout(false);
        }
Пример #18
0
        private void InitializeComponent()
        {
            ListViewGroup            listViewGroup            = new ListViewGroup("Normal Damage", HorizontalAlignment.Left);
            ListViewGroup            listViewGroup1           = new ListViewGroup("Limited Damage", HorizontalAlignment.Left);
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(QuickReferenceForm));

            this.LevelLbl      = new Label();
            this.LevelBox      = new NumericUpDown();
            this.SkillGroup    = new GroupBox();
            this.SkillList     = new ListView();
            this.DiffHdr       = new ColumnHeader();
            this.DCHdr         = new ColumnHeader();
            this.DamageGroup   = new GroupBox();
            this.DamageList    = new ListView();
            this.TargetHdr     = new ColumnHeader();
            this.DmgHdr        = new ColumnHeader();
            this.Pages         = new TabControl();
            this.ReferencePage = new TabPage();
            ((ISupportInitialize)this.LevelBox).BeginInit();
            this.SkillGroup.SuspendLayout();
            this.DamageGroup.SuspendLayout();
            this.Pages.SuspendLayout();
            this.ReferencePage.SuspendLayout();
            base.SuspendLayout();
            this.LevelLbl.AutoSize = true;
            this.LevelLbl.Location = new Point(8, 8);
            this.LevelLbl.Name     = "LevelLbl";
            this.LevelLbl.Size     = new System.Drawing.Size(36, 13);
            this.LevelLbl.TabIndex = 0;
            this.LevelLbl.Text     = "Level:";
            this.LevelBox.Anchor   = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.LevelBox.Location = new Point(50, 6);
            NumericUpDown levelBox = this.LevelBox;

            int[] numArray = new int[] { 30, 0, 0, 0 };
            levelBox.Maximum = new decimal(numArray);
            NumericUpDown num = this.LevelBox;

            int[] numArray1 = new int[] { 1, 0, 0, 0 };
            num.Minimum            = new decimal(numArray1);
            this.LevelBox.Name     = "LevelBox";
            this.LevelBox.Size     = new System.Drawing.Size(291, 20);
            this.LevelBox.TabIndex = 1;
            NumericUpDown numericUpDown = this.LevelBox;

            int[] numArray2 = new int[] { 1, 0, 0, 0 };
            numericUpDown.Value         = new decimal(numArray2);
            this.LevelBox.ValueChanged += new EventHandler(this.LevelBox_ValueChanged);
            this.SkillGroup.Anchor      = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.SkillGroup.Controls.Add(this.SkillList);
            this.SkillGroup.Location = new Point(8, 32);
            this.SkillGroup.Name     = "SkillGroup";
            this.SkillGroup.Size     = new System.Drawing.Size(333, 118);
            this.SkillGroup.TabIndex = 2;
            this.SkillGroup.TabStop  = false;
            this.SkillGroup.Text     = "Skill DCs";
            this.SkillList.Anchor    = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            ListView.ColumnHeaderCollection columns = this.SkillList.Columns;
            ColumnHeader[] diffHdr = new ColumnHeader[] { this.DiffHdr, this.DCHdr };
            columns.AddRange(diffHdr);
            this.SkillList.FullRowSelect = true;
            this.SkillList.HeaderStyle   = ColumnHeaderStyle.Nonclickable;
            this.SkillList.HideSelection = false;
            this.SkillList.Location      = new Point(6, 19);
            this.SkillList.MultiSelect   = false;
            this.SkillList.Name          = "SkillList";
            this.SkillList.Size          = new System.Drawing.Size(321, 93);
            this.SkillList.TabIndex      = 0;
            this.SkillList.UseCompatibleStateImageBehavior = false;
            this.SkillList.View     = View.Details;
            this.DiffHdr.Text       = "Difficulty";
            this.DiffHdr.Width      = 200;
            this.DCHdr.Text         = "DC";
            this.DCHdr.TextAlign    = HorizontalAlignment.Right;
            this.DCHdr.Width        = 80;
            this.DamageGroup.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.DamageGroup.Controls.Add(this.DamageList);
            this.DamageGroup.Location = new Point(8, 156);
            this.DamageGroup.Name     = "DamageGroup";
            this.DamageGroup.Size     = new System.Drawing.Size(333, 257);
            this.DamageGroup.TabIndex = 3;
            this.DamageGroup.TabStop  = false;
            this.DamageGroup.Text     = "Damage Expressions";
            this.DamageList.Anchor    = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            ListView.ColumnHeaderCollection columnHeaderCollections = this.DamageList.Columns;
            ColumnHeader[] targetHdr = new ColumnHeader[] { this.TargetHdr, this.DmgHdr };
            columnHeaderCollections.AddRange(targetHdr);
            this.DamageList.FullRowSelect = true;
            listViewGroup.Header          = "Normal Damage";
            listViewGroup.Name            = "listViewGroup1";
            listViewGroup1.Header         = "Limited Damage";
            listViewGroup1.Name           = "listViewGroup2";
            this.DamageList.Groups.AddRange(new ListViewGroup[] { listViewGroup, listViewGroup1 });
            this.DamageList.HeaderStyle   = ColumnHeaderStyle.Nonclickable;
            this.DamageList.HideSelection = false;
            this.DamageList.Location      = new Point(6, 19);
            this.DamageList.MultiSelect   = false;
            this.DamageList.Name          = "DamageList";
            this.DamageList.Size          = new System.Drawing.Size(321, 232);
            this.DamageList.TabIndex      = 1;
            this.DamageList.UseCompatibleStateImageBehavior = false;
            this.DamageList.View  = View.Details;
            this.TargetHdr.Text   = "Target";
            this.TargetHdr.Width  = 200;
            this.DmgHdr.Text      = "Damage";
            this.DmgHdr.TextAlign = HorizontalAlignment.Right;
            this.DmgHdr.Width     = 80;
            this.Pages.Controls.Add(this.ReferencePage);
            this.Pages.Dock          = DockStyle.Fill;
            this.Pages.Location      = new Point(0, 0);
            this.Pages.Name          = "Pages";
            this.Pages.SelectedIndex = 0;
            this.Pages.Size          = new System.Drawing.Size(357, 447);
            this.Pages.TabIndex      = 4;
            this.ReferencePage.Controls.Add(this.LevelBox);
            this.ReferencePage.Controls.Add(this.DamageGroup);
            this.ReferencePage.Controls.Add(this.LevelLbl);
            this.ReferencePage.Controls.Add(this.SkillGroup);
            this.ReferencePage.Location = new Point(4, 22);
            this.ReferencePage.Name     = "ReferencePage";
            this.ReferencePage.Padding  = new System.Windows.Forms.Padding(3);
            this.ReferencePage.Size     = new System.Drawing.Size(349, 421);
            this.ReferencePage.TabIndex = 0;
            this.ReferencePage.Text     = "Reference";
            this.ReferencePage.UseVisualStyleBackColor = true;
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            base.ClientSize          = new System.Drawing.Size(357, 447);
            base.Controls.Add(this.Pages);
            base.Icon          = (System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
            base.MaximizeBox   = false;
            base.Name          = "QuickReferenceForm";
            base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
            this.Text          = "Quick Reference";
            base.FormClosed   += new FormClosedEventHandler(this.QuickReferenceForm_FormClosed);
            ((ISupportInitialize)this.LevelBox).EndInit();
            this.SkillGroup.ResumeLayout(false);
            this.DamageGroup.ResumeLayout(false);
            this.Pages.ResumeLayout(false);
            this.ReferencePage.ResumeLayout(false);
            this.ReferencePage.PerformLayout();
            base.ResumeLayout(false);
        }
        private void InitializeComponent()
        {
            ListViewGroup listViewGroup = new ListViewGroup("Skill DCs", HorizontalAlignment.Left);

            this.CancelBtn   = new Button();
            this.OKBtn       = new Button();
            this.Pages       = new TabControl();
            this.DetailsPage = new TabPage();
            this.DetailsBox  = new DefaultTextBox();
            this.AdvicePage  = new TabPage();
            this.AdviceList  = new ListView();
            this.AdviceHdr   = new ColumnHeader();
            this.InfoHdr     = new ColumnHeader();
            this.Pages.SuspendLayout();
            this.DetailsPage.SuspendLayout();
            this.AdvicePage.SuspendLayout();
            base.SuspendLayout();
            this.CancelBtn.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
            this.CancelBtn.DialogResult            = System.Windows.Forms.DialogResult.Cancel;
            this.CancelBtn.Location                = new Point(306, 201);
            this.CancelBtn.Name                    = "CancelBtn";
            this.CancelBtn.Size                    = new System.Drawing.Size(75, 23);
            this.CancelBtn.TabIndex                = 4;
            this.CancelBtn.Text                    = "Cancel";
            this.CancelBtn.UseVisualStyleBackColor = true;
            this.OKBtn.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
            this.OKBtn.DialogResult            = System.Windows.Forms.DialogResult.OK;
            this.OKBtn.Location                = new Point(225, 201);
            this.OKBtn.Name                    = "OKBtn";
            this.OKBtn.Size                    = new System.Drawing.Size(75, 23);
            this.OKBtn.TabIndex                = 3;
            this.OKBtn.Text                    = "OK";
            this.OKBtn.UseVisualStyleBackColor = true;
            this.Pages.Anchor                  = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.Pages.Controls.Add(this.DetailsPage);
            this.Pages.Controls.Add(this.AdvicePage);
            this.Pages.Location      = new Point(12, 12);
            this.Pages.Name          = "Pages";
            this.Pages.SelectedIndex = 0;
            this.Pages.Size          = new System.Drawing.Size(369, 183);
            this.Pages.TabIndex      = 2;
            this.DetailsPage.Controls.Add(this.DetailsBox);
            this.DetailsPage.Location = new Point(4, 22);
            this.DetailsPage.Name     = "DetailsPage";
            this.DetailsPage.Padding  = new System.Windows.Forms.Padding(3);
            this.DetailsPage.Size     = new System.Drawing.Size(361, 157);
            this.DetailsPage.TabIndex = 0;
            this.DetailsPage.Text     = "Details";
            this.DetailsPage.UseVisualStyleBackColor = true;
            this.DetailsBox.AcceptsReturn            = true;
            this.DetailsBox.AcceptsTab  = true;
            this.DetailsBox.DefaultText = "(enter countermeasure details)";
            this.DetailsBox.Dock        = DockStyle.Fill;
            this.DetailsBox.Location    = new Point(3, 3);
            this.DetailsBox.Multiline   = true;
            this.DetailsBox.Name        = "DetailsBox";
            this.DetailsBox.ScrollBars  = ScrollBars.Vertical;
            this.DetailsBox.Size        = new System.Drawing.Size(355, 151);
            this.DetailsBox.TabIndex    = 0;
            this.DetailsBox.Text        = "(enter countermeasure details)";
            this.AdvicePage.Controls.Add(this.AdviceList);
            this.AdvicePage.Location = new Point(4, 22);
            this.AdvicePage.Name     = "AdvicePage";
            this.AdvicePage.Padding  = new System.Windows.Forms.Padding(3);
            this.AdvicePage.Size     = new System.Drawing.Size(361, 157);
            this.AdvicePage.TabIndex = 1;
            this.AdvicePage.Text     = "Advice";
            this.AdvicePage.UseVisualStyleBackColor = true;
            ListView.ColumnHeaderCollection columns = this.AdviceList.Columns;
            ColumnHeader[] adviceHdr = new ColumnHeader[] { this.AdviceHdr, this.InfoHdr };
            columns.AddRange(adviceHdr);
            this.AdviceList.Dock          = DockStyle.Fill;
            this.AdviceList.FullRowSelect = true;
            listViewGroup.Header          = "Skill DCs";
            listViewGroup.Name            = "listViewGroup1";
            this.AdviceList.Groups.AddRange(new ListViewGroup[] { listViewGroup });
            this.AdviceList.HeaderStyle   = ColumnHeaderStyle.None;
            this.AdviceList.HideSelection = false;
            this.AdviceList.Location      = new Point(3, 3);
            this.AdviceList.MultiSelect   = false;
            this.AdviceList.Name          = "AdviceList";
            this.AdviceList.Size          = new System.Drawing.Size(355, 151);
            this.AdviceList.TabIndex      = 2;
            this.AdviceList.UseCompatibleStateImageBehavior = false;
            this.AdviceList.View     = View.Details;
            this.AdviceHdr.Text      = "Advice";
            this.AdviceHdr.Width     = 150;
            this.InfoHdr.Text        = "Information";
            this.InfoHdr.Width       = 100;
            base.AcceptButton        = this.OKBtn;
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            base.CancelButton        = this.CancelBtn;
            base.ClientSize          = new System.Drawing.Size(393, 236);
            base.Controls.Add(this.Pages);
            base.Controls.Add(this.CancelBtn);
            base.Controls.Add(this.OKBtn);
            base.MaximizeBox   = false;
            base.MinimizeBox   = false;
            base.Name          = "TrapCountermeasureForm";
            base.ShowIcon      = false;
            base.ShowInTaskbar = false;
            base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
            base.StartPosition = FormStartPosition.CenterParent;
            this.Text          = "Countermeasure";
            base.Shown        += new EventHandler(this.TrapCountermeasureForm_Shown);
            this.Pages.ResumeLayout(false);
            this.DetailsPage.ResumeLayout(false);
            this.DetailsPage.PerformLayout();
            this.AdvicePage.ResumeLayout(false);
            base.ResumeLayout(false);
        }
Пример #20
0
        private void InitializeComponent()
        {
            ListViewGroup            listViewGroup            = new ListViewGroup("Attack Powers", HorizontalAlignment.Left);
            ListViewGroup            listViewGroup1           = new ListViewGroup("Utility Powers", HorizontalAlignment.Left);
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(MonsterThemeForm));

            this.NameLbl            = new Label();
            this.NameBox            = new TextBox();
            this.Pages              = new TabControl();
            this.PowerPage          = new TabPage();
            this.PowerList          = new ListView();
            this.PowerHdr           = new ColumnHeader();
            this.RoleHdr            = new ColumnHeader();
            this.PowerToolbar       = new ToolStrip();
            this.PowerAddBtn        = new ToolStripSplitButton();
            this.PowerBrowse        = new ToolStripMenuItem();
            this.PowerRemoveBtn     = new ToolStripButton();
            this.SkillPage          = new TabPage();
            this.SkillList          = new ListView();
            this.SkillHdr           = new ColumnHeader();
            this.OKBtn              = new Button();
            this.CancelBtn          = new Button();
            this.PowerEditBtn       = new ToolStripDropDownButton();
            this.EditPower          = new ToolStripMenuItem();
            this.EditClassification = new ToolStripMenuItem();
            this.Pages.SuspendLayout();
            this.PowerPage.SuspendLayout();
            this.PowerToolbar.SuspendLayout();
            this.SkillPage.SuspendLayout();
            base.SuspendLayout();
            this.NameLbl.AutoSize = true;
            this.NameLbl.Location = new Point(12, 15);
            this.NameLbl.Name     = "NameLbl";
            this.NameLbl.Size     = new System.Drawing.Size(38, 13);
            this.NameLbl.TabIndex = 0;
            this.NameLbl.Text     = "Name:";
            this.NameBox.Anchor   = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.NameBox.Location = new Point(56, 12);
            this.NameBox.Name     = "NameBox";
            this.NameBox.Size     = new System.Drawing.Size(328, 20);
            this.NameBox.TabIndex = 1;
            this.Pages.Anchor     = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.Pages.Controls.Add(this.PowerPage);
            this.Pages.Controls.Add(this.SkillPage);
            this.Pages.Location      = new Point(12, 38);
            this.Pages.Name          = "Pages";
            this.Pages.SelectedIndex = 0;
            this.Pages.Size          = new System.Drawing.Size(372, 291);
            this.Pages.TabIndex      = 2;
            this.PowerPage.Controls.Add(this.PowerList);
            this.PowerPage.Controls.Add(this.PowerToolbar);
            this.PowerPage.Location = new Point(4, 22);
            this.PowerPage.Name     = "PowerPage";
            this.PowerPage.Padding  = new System.Windows.Forms.Padding(3);
            this.PowerPage.Size     = new System.Drawing.Size(364, 265);
            this.PowerPage.TabIndex = 0;
            this.PowerPage.Text     = "Powers";
            this.PowerPage.UseVisualStyleBackColor = true;
            ListView.ColumnHeaderCollection columns = this.PowerList.Columns;
            ColumnHeader[] powerHdr = new ColumnHeader[] { this.PowerHdr, this.RoleHdr };
            columns.AddRange(powerHdr);
            this.PowerList.Dock          = DockStyle.Fill;
            this.PowerList.FullRowSelect = true;
            listViewGroup.Header         = "Attack Powers";
            listViewGroup.Name           = "listViewGroup1";
            listViewGroup1.Header        = "Utility Powers";
            listViewGroup1.Name          = "listViewGroup2";
            this.PowerList.Groups.AddRange(new ListViewGroup[] { listViewGroup, listViewGroup1 });
            this.PowerList.HeaderStyle   = ColumnHeaderStyle.Nonclickable;
            this.PowerList.HideSelection = false;
            this.PowerList.Location      = new Point(3, 28);
            this.PowerList.MultiSelect   = false;
            this.PowerList.Name          = "PowerList";
            this.PowerList.Size          = new System.Drawing.Size(358, 234);
            this.PowerList.TabIndex      = 1;
            this.PowerList.UseCompatibleStateImageBehavior = false;
            this.PowerList.View         = View.Details;
            this.PowerList.DoubleClick += new EventHandler(this.PowerEditBtn_Click);
            this.PowerHdr.Text          = "Power";
            this.PowerHdr.Width         = 150;
            this.RoleHdr.Text           = "Roles";
            this.RoleHdr.Width          = 180;
            ToolStripItemCollection items = this.PowerToolbar.Items;

            ToolStripItem[] powerAddBtn = new ToolStripItem[] { this.PowerAddBtn, this.PowerRemoveBtn, this.PowerEditBtn };
            items.AddRange(powerAddBtn);
            this.PowerToolbar.Location    = new Point(3, 3);
            this.PowerToolbar.Name        = "PowerToolbar";
            this.PowerToolbar.Size        = new System.Drawing.Size(358, 25);
            this.PowerToolbar.TabIndex    = 0;
            this.PowerToolbar.Text        = "toolStrip1";
            this.PowerAddBtn.DisplayStyle = ToolStripItemDisplayStyle.Text;
            this.PowerAddBtn.DropDownItems.AddRange(new ToolStripItem[] { this.PowerBrowse });
            this.PowerAddBtn.Image = (Image)componentResourceManager.GetObject("PowerAddBtn.Image");
            this.PowerAddBtn.ImageTransparentColor = Color.Magenta;
            this.PowerAddBtn.Name                     = "PowerAddBtn";
            this.PowerAddBtn.Size                     = new System.Drawing.Size(45, 22);
            this.PowerAddBtn.Text                     = "Add";
            this.PowerAddBtn.ButtonClick             += new EventHandler(this.PowerAddBtn_Click);
            this.PowerBrowse.Name                     = "PowerBrowse";
            this.PowerBrowse.Size                     = new System.Drawing.Size(152, 22);
            this.PowerBrowse.Text                     = "Browse...";
            this.PowerBrowse.Click                   += new EventHandler(this.PowerBrowse_Click);
            this.PowerRemoveBtn.DisplayStyle          = ToolStripItemDisplayStyle.Text;
            this.PowerRemoveBtn.Image                 = (Image)componentResourceManager.GetObject("PowerRemoveBtn.Image");
            this.PowerRemoveBtn.ImageTransparentColor = Color.Magenta;
            this.PowerRemoveBtn.Name                  = "PowerRemoveBtn";
            this.PowerRemoveBtn.Size                  = new System.Drawing.Size(54, 22);
            this.PowerRemoveBtn.Text                  = "Remove";
            this.PowerRemoveBtn.Click                += new EventHandler(this.PowerRemoveBtn_Click);
            this.SkillPage.Controls.Add(this.SkillList);
            this.SkillPage.Location = new Point(4, 22);
            this.SkillPage.Name     = "SkillPage";
            this.SkillPage.Padding  = new System.Windows.Forms.Padding(3);
            this.SkillPage.Size     = new System.Drawing.Size(364, 265);
            this.SkillPage.TabIndex = 1;
            this.SkillPage.Text     = "Skill Bonuses";
            this.SkillPage.UseVisualStyleBackColor = true;
            this.SkillList.CheckBoxes = true;
            this.SkillList.Columns.AddRange(new ColumnHeader[] { this.SkillHdr });
            this.SkillList.Dock          = DockStyle.Fill;
            this.SkillList.FullRowSelect = true;
            this.SkillList.HeaderStyle   = ColumnHeaderStyle.Nonclickable;
            this.SkillList.HideSelection = false;
            this.SkillList.Location      = new Point(3, 3);
            this.SkillList.MultiSelect   = false;
            this.SkillList.Name          = "SkillList";
            this.SkillList.Size          = new System.Drawing.Size(358, 259);
            this.SkillList.TabIndex      = 0;
            this.SkillList.UseCompatibleStateImageBehavior = false;
            this.SkillList.View                    = View.Details;
            this.SkillHdr.Text                     = "Skill";
            this.SkillHdr.Width                    = 200;
            this.OKBtn.Anchor                      = AnchorStyles.Bottom | AnchorStyles.Right;
            this.OKBtn.DialogResult                = System.Windows.Forms.DialogResult.OK;
            this.OKBtn.Location                    = new Point(228, 335);
            this.OKBtn.Name                        = "OKBtn";
            this.OKBtn.Size                        = new System.Drawing.Size(75, 23);
            this.OKBtn.TabIndex                    = 3;
            this.OKBtn.Text                        = "OK";
            this.OKBtn.UseVisualStyleBackColor     = true;
            this.OKBtn.Click                      += new EventHandler(this.OKBtn_Click);
            this.CancelBtn.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
            this.CancelBtn.DialogResult            = System.Windows.Forms.DialogResult.Cancel;
            this.CancelBtn.Location                = new Point(309, 335);
            this.CancelBtn.Name                    = "CancelBtn";
            this.CancelBtn.Size                    = new System.Drawing.Size(75, 23);
            this.CancelBtn.TabIndex                = 4;
            this.CancelBtn.Text                    = "Cancel";
            this.CancelBtn.UseVisualStyleBackColor = true;
            this.PowerEditBtn.DisplayStyle         = ToolStripItemDisplayStyle.Text;
            ToolStripItemCollection dropDownItems = this.PowerEditBtn.DropDownItems;

            ToolStripItem[] editPower = new ToolStripItem[] { this.EditPower, this.EditClassification };
            dropDownItems.AddRange(editPower);
            this.PowerEditBtn.Image = (Image)componentResourceManager.GetObject("PowerEditBtn.Image");
            this.PowerEditBtn.ImageTransparentColor = Color.Magenta;
            this.PowerEditBtn.Name         = "PowerEditBtn";
            this.PowerEditBtn.Size         = new System.Drawing.Size(40, 22);
            this.PowerEditBtn.Text         = "Edit";
            this.EditPower.Name            = "EditPower";
            this.EditPower.Size            = new System.Drawing.Size(152, 22);
            this.EditPower.Text            = "Power";
            this.EditPower.Click          += new EventHandler(this.PowerEditBtn_Click);
            this.EditClassification.Name   = "EditClassification";
            this.EditClassification.Size   = new System.Drawing.Size(152, 22);
            this.EditClassification.Text   = "Classification";
            this.EditClassification.Click += new EventHandler(this.EditClassification_Click);
            base.AcceptButton              = this.OKBtn;
            base.AutoScaleDimensions       = new SizeF(6f, 13f);
            base.AutoScaleMode             = System.Windows.Forms.AutoScaleMode.Font;
            base.CancelButton              = this.CancelBtn;
            base.ClientSize = new System.Drawing.Size(396, 370);
            base.Controls.Add(this.CancelBtn);
            base.Controls.Add(this.OKBtn);
            base.Controls.Add(this.Pages);
            base.Controls.Add(this.NameBox);
            base.Controls.Add(this.NameLbl);
            base.MaximizeBox   = false;
            base.MinimizeBox   = false;
            base.Name          = "MonsterThemeForm";
            base.ShowIcon      = false;
            base.ShowInTaskbar = false;
            base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
            base.StartPosition = FormStartPosition.CenterParent;
            this.Text          = "Theme";
            this.Pages.ResumeLayout(false);
            this.PowerPage.ResumeLayout(false);
            this.PowerPage.PerformLayout();
            this.PowerToolbar.ResumeLayout(false);
            this.PowerToolbar.PerformLayout();
            this.SkillPage.ResumeLayout(false);
            base.ResumeLayout(false);
            base.PerformLayout();
        }
Пример #21
0
        private void InitializeComponent()
        {
            this.CloseBtn      = new Button();
            this.CombatantList = new ListView();
            this.CombatantHdr  = new ColumnHeader();
            this.InitHdr       = new ColumnHeader();
            this.HPPanel       = new Panel();
            this.FullHealBtn   = new Button();
            this.HeroNameLbl   = new Label();
            this.MaxHPBox      = new NumericUpDown();
            this.MaxHPLbl      = new Label();
            this.HPGauge       = new HitPointGauge();
            this.TempHPBox     = new NumericUpDown();
            this.TempHPLbl     = new Label();
            this.CurrentHPBox  = new NumericUpDown();
            this.CurrentHPLbl  = new Label();
            this.HPPanel.SuspendLayout();
            ((ISupportInitialize)this.MaxHPBox).BeginInit();
            ((ISupportInitialize)this.TempHPBox).BeginInit();
            ((ISupportInitialize)this.CurrentHPBox).BeginInit();
            base.SuspendLayout();
            this.CloseBtn.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
            this.CloseBtn.DialogResult            = System.Windows.Forms.DialogResult.OK;
            this.CloseBtn.Location                = new Point(378, 220);
            this.CloseBtn.Name                    = "CloseBtn";
            this.CloseBtn.Size                    = new System.Drawing.Size(75, 23);
            this.CloseBtn.TabIndex                = 2;
            this.CloseBtn.Text                    = "OK";
            this.CloseBtn.UseVisualStyleBackColor = true;
            this.CombatantList.Anchor             = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            ListView.ColumnHeaderCollection columns = this.CombatantList.Columns;
            ColumnHeader[] combatantHdr             = new ColumnHeader[] { this.CombatantHdr, this.InitHdr };
            columns.AddRange(combatantHdr);
            this.CombatantList.FullRowSelect = true;
            this.CombatantList.HideSelection = false;
            this.CombatantList.Location      = new Point(12, 12);
            this.CombatantList.MultiSelect   = false;
            this.CombatantList.Name          = "CombatantList";
            this.CombatantList.Size          = new System.Drawing.Size(238, 202);
            this.CombatantList.TabIndex      = 1;
            this.CombatantList.UseCompatibleStateImageBehavior = false;
            this.CombatantList.View = View.Details;
            this.CombatantList.SelectedIndexChanged += new EventHandler(this.CombatantList_SelectedIndexChanged);
            this.CombatantList.DoubleClick          += new EventHandler(this.CombatantList_DoubleClick);
            this.CombatantHdr.Text   = "PC";
            this.CombatantHdr.Width  = 131;
            this.InitHdr.Text        = "Hit Points";
            this.InitHdr.TextAlign   = HorizontalAlignment.Right;
            this.InitHdr.Width       = 76;
            this.HPPanel.Anchor      = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right;
            this.HPPanel.BorderStyle = BorderStyle.FixedSingle;
            this.HPPanel.Controls.Add(this.FullHealBtn);
            this.HPPanel.Controls.Add(this.HeroNameLbl);
            this.HPPanel.Controls.Add(this.MaxHPBox);
            this.HPPanel.Controls.Add(this.MaxHPLbl);
            this.HPPanel.Controls.Add(this.HPGauge);
            this.HPPanel.Controls.Add(this.TempHPBox);
            this.HPPanel.Controls.Add(this.TempHPLbl);
            this.HPPanel.Controls.Add(this.CurrentHPBox);
            this.HPPanel.Controls.Add(this.CurrentHPLbl);
            this.HPPanel.Location     = new Point(256, 12);
            this.HPPanel.Name         = "HPPanel";
            this.HPPanel.Size         = new System.Drawing.Size(197, 202);
            this.HPPanel.TabIndex     = 3;
            this.FullHealBtn.Location = new Point(6, 135);
            this.FullHealBtn.Name     = "FullHealBtn";
            this.FullHealBtn.Size     = new System.Drawing.Size(148, 23);
            this.FullHealBtn.TabIndex = 16;
            this.FullHealBtn.Text     = "Full Heal";
            this.FullHealBtn.UseVisualStyleBackColor = true;
            this.FullHealBtn.Click    += new EventHandler(this.FullHealBtn_Click);
            this.HeroNameLbl.Font      = new System.Drawing.Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.HeroNameLbl.Location  = new Point(3, 3);
            this.HeroNameLbl.Name      = "HeroNameLbl";
            this.HeroNameLbl.Size      = new System.Drawing.Size(151, 40);
            this.HeroNameLbl.TabIndex  = 15;
            this.HeroNameLbl.Text      = "[hero]";
            this.HeroNameLbl.TextAlign = ContentAlignment.MiddleCenter;
            this.MaxHPBox.Anchor       = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.MaxHPBox.Location     = new Point(76, 57);
            NumericUpDown maxHPBox = this.MaxHPBox;

            int[] numArray = new int[] { 1000, 0, 0, 0 };
            maxHPBox.Maximum = new decimal(numArray);
            NumericUpDown num = this.MaxHPBox;

            int[] numArray1 = new int[] { 1, 0, 0, 0 };
            num.Minimum            = new decimal(numArray1);
            this.MaxHPBox.Name     = "MaxHPBox";
            this.MaxHPBox.Size     = new System.Drawing.Size(78, 20);
            this.MaxHPBox.TabIndex = 9;
            NumericUpDown numericUpDown = this.MaxHPBox;

            int[] numArray2 = new int[] { 1, 0, 0, 0 };
            numericUpDown.Value         = new decimal(numArray2);
            this.MaxHPBox.ValueChanged += new EventHandler(this.MaxHPBox_ValueChanged);
            this.MaxHPLbl.AutoSize      = true;
            this.MaxHPLbl.Location      = new Point(3, 59);
            this.MaxHPLbl.Name          = "MaxHPLbl";
            this.MaxHPLbl.Size          = new System.Drawing.Size(48, 13);
            this.MaxHPLbl.TabIndex      = 8;
            this.MaxHPLbl.Text          = "Max HP:";
            this.HPGauge.Anchor         = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right;
            this.HPGauge.Damage         = 0;
            this.HPGauge.FullHP         = 0;
            this.HPGauge.Location       = new Point(160, 3);
            this.HPGauge.Name           = "HPGauge";
            this.HPGauge.Size           = new System.Drawing.Size(32, 194);
            this.HPGauge.TabIndex       = 14;
            this.HPGauge.TempHP         = 0;
            this.TempHPBox.Anchor       = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.TempHPBox.Location     = new Point(76, 109);
            NumericUpDown tempHPBox = this.TempHPBox;

            int[] numArray3 = new int[] { 1000, 0, 0, 0 };
            tempHPBox.Maximum            = new decimal(numArray3);
            this.TempHPBox.Name          = "TempHPBox";
            this.TempHPBox.Size          = new System.Drawing.Size(78, 20);
            this.TempHPBox.TabIndex      = 13;
            this.TempHPBox.ValueChanged += new EventHandler(this.TempHPBox_ValueChanged);
            this.TempHPLbl.AutoSize      = true;
            this.TempHPLbl.Location      = new Point(3, 111);
            this.TempHPLbl.Name          = "TempHPLbl";
            this.TempHPLbl.Size          = new System.Drawing.Size(55, 13);
            this.TempHPLbl.TabIndex      = 12;
            this.TempHPLbl.Text          = "Temp HP:";
            this.CurrentHPBox.Anchor     = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.CurrentHPBox.Location   = new Point(76, 83);
            NumericUpDown currentHPBox = this.CurrentHPBox;

            int[] numArray4 = new int[] { 1000, 0, 0, 0 };
            currentHPBox.Maximum = new decimal(numArray4);
            NumericUpDown currentHPBox1 = this.CurrentHPBox;

            int[] numArray5 = new int[] { 1000, 0, 0, -2147483648 };
            currentHPBox1.Minimum           = new decimal(numArray5);
            this.CurrentHPBox.Name          = "CurrentHPBox";
            this.CurrentHPBox.Size          = new System.Drawing.Size(78, 20);
            this.CurrentHPBox.TabIndex      = 11;
            this.CurrentHPBox.ValueChanged += new EventHandler(this.CurrentHPBox_ValueChanged);
            this.CurrentHPLbl.AutoSize      = true;
            this.CurrentHPLbl.Location      = new Point(3, 85);
            this.CurrentHPLbl.Name          = "CurrentHPLbl";
            this.CurrentHPLbl.Size          = new System.Drawing.Size(62, 13);
            this.CurrentHPLbl.TabIndex      = 10;
            this.CurrentHPLbl.Text          = "Current HP:";
            base.AcceptButton        = this.CloseBtn;
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            base.ClientSize          = new System.Drawing.Size(465, 255);
            base.Controls.Add(this.HPPanel);
            base.Controls.Add(this.CombatantList);
            base.Controls.Add(this.CloseBtn);
            base.MaximizeBox   = false;
            base.MinimizeBox   = false;
            base.Name          = "GroupHealthForm";
            base.ShowIcon      = false;
            base.ShowInTaskbar = false;
            base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
            base.StartPosition = FormStartPosition.CenterParent;
            this.Text          = "PC Hit Points";
            this.HPPanel.ResumeLayout(false);
            this.HPPanel.PerformLayout();
            ((ISupportInitialize)this.MaxHPBox).EndInit();
            ((ISupportInitialize)this.TempHPBox).EndInit();
            ((ISupportInitialize)this.CurrentHPBox).EndInit();
            base.ResumeLayout(false);
        }
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            //components = new System.ComponentModel.Container();
            //this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;

            this.Toolbar             = new ToolStrip();
            this.EditBtn             = new ToolStripButton();
            this.RunBtn              = new ToolStripButton();
            this.toolStripSeparator2 = new ToolStripSeparator();
            this.XPLbl       = new ToolStripLabel();
            this.DiffLbl     = new ToolStripLabel();
            this.ItemList    = new ListView();
            this.CreatureHdr = new ColumnHeader();
            this.CountHdr    = new ColumnHeader();
            this.RoleHdr     = new ColumnHeader();
            this.XPHdr       = new ColumnHeader();
            this.Toolbar.SuspendLayout();
            base.SuspendLayout();
            ToolStripItemCollection items = this.Toolbar.Items;

            ToolStripItem[] editBtn = new ToolStripItem[] { this.EditBtn, this.RunBtn, this.toolStripSeparator2, this.XPLbl, this.DiffLbl };
            items.AddRange(editBtn);
            this.Toolbar.Location              = new Point(0, 0);
            this.Toolbar.Name                  = "Toolbar";
            this.Toolbar.Size                  = new System.Drawing.Size(435, 25);
            this.Toolbar.TabIndex              = 0;
            this.Toolbar.Text                  = "toolStrip1";
            this.EditBtn.DisplayStyle          = ToolStripItemDisplayStyle.Text;
            this.EditBtn.ImageTransparentColor = Color.Magenta;
            this.EditBtn.Name                  = "EditBtn";
            this.EditBtn.Size                  = new System.Drawing.Size(105, 22);
            this.EditBtn.Text                  = "Encounter Builder";
            this.EditBtn.Click                += new EventHandler(this.EditBtn_Click);
            this.RunBtn.DisplayStyle           = ToolStripItemDisplayStyle.Text;
            this.RunBtn.ImageTransparentColor  = Color.Magenta;
            this.RunBtn.Name              = "RunBtn";
            this.RunBtn.Size              = new System.Drawing.Size(89, 22);
            this.RunBtn.Text              = "Run Encounter";
            this.RunBtn.Click            += new EventHandler(this.RunBtn_Click);
            this.toolStripSeparator2.Name = "toolStripSeparator2";
            this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25);
            this.XPLbl.Name   = "XPLbl";
            this.XPLbl.Size   = new System.Drawing.Size(78, 22);
            this.XPLbl.Text   = "[N XP (CL N)]";
            this.DiffLbl.Name = "DiffLbl";
            this.DiffLbl.Size = new System.Drawing.Size(62, 22);
            this.DiffLbl.Text = "[difficulty]";
            ListView.ColumnHeaderCollection columns = this.ItemList.Columns;
            ColumnHeader[] creatureHdr = new ColumnHeader[] { this.CreatureHdr, this.RoleHdr, this.CountHdr, this.XPHdr };
            columns.AddRange(creatureHdr);
            this.ItemList.Dock          = DockStyle.Fill;
            this.ItemList.FullRowSelect = true;
            this.ItemList.HeaderStyle   = ColumnHeaderStyle.Nonclickable;
            this.ItemList.HideSelection = false;
            this.ItemList.Location      = new Point(0, 25);
            this.ItemList.MultiSelect   = false;
            this.ItemList.Name          = "ItemList";
            this.ItemList.Size          = new System.Drawing.Size(435, 181);
            this.ItemList.TabIndex      = 1;
            this.ItemList.UseCompatibleStateImageBehavior = false;
            this.ItemList.View         = View.Details;
            this.ItemList.DoubleClick += new EventHandler(this.CreatureList_DoubleClick);
            this.CreatureHdr.Text      = "Creature";
            this.CreatureHdr.Width     = 150;
            this.CountHdr.Text         = "Count";
            this.CountHdr.TextAlign    = HorizontalAlignment.Right;
            this.RoleHdr.Text          = "Role";
            this.RoleHdr.Width         = 150;
            this.XPHdr.Text            = "XP";
            this.XPHdr.TextAlign       = HorizontalAlignment.Right;
            base.AutoScaleDimensions   = new SizeF(6f, 13f);
            base.AutoScaleMode         = System.Windows.Forms.AutoScaleMode.Font;
            base.Controls.Add(this.ItemList);
            base.Controls.Add(this.Toolbar);
            base.Name = "EncounterPanel";
            base.Size = new System.Drawing.Size(435, 206);
            this.Toolbar.ResumeLayout(false);
            this.Toolbar.PerformLayout();
            base.ResumeLayout(false);
            base.PerformLayout();
        }
Пример #23
0
        private void InitializeComponent()
        {
            ListViewGroup listViewGroup  = new ListViewGroup("Attack Advice", HorizontalAlignment.Left);
            ListViewGroup listViewGroup1 = new ListViewGroup("Damage Advice", HorizontalAlignment.Left);

            this.OKBtn          = new Button();
            this.CancelBtn      = new Button();
            this.NameLbl        = new Label();
            this.NameBox        = new TextBox();
            this.KeywordLbl     = new Label();
            this.KeywordBox     = new TextBox();
            this.ActionLbl      = new Label();
            this.ActionBtn      = new Button();
            this.ActionClearLbl = new LinkLabel();
            this.AttackLbl      = new Label();
            this.AttackBtn      = new Button();
            this.AttackClearLbl = new LinkLabel();
            this.RangeLbl       = new Label();
            this.RangeBox       = new ComboBox();
            this.Pages          = new TabControl();
            this.DetailsPage    = new TabPage();
            this.DetailsBox     = new TextBox();
            this.AdvicePage     = new TabPage();
            this.AdviceList     = new ListView();
            this.AdviceHdr      = new ColumnHeader();
            this.InfoHdr        = new ColumnHeader();
            this.ConditionBox   = new TextBox();
            this.ConditionLbl   = new Label();
            this.DescPage       = new TabPage();
            this.DescBox        = new TextBox();
            this.Pages.SuspendLayout();
            this.DetailsPage.SuspendLayout();
            this.AdvicePage.SuspendLayout();
            this.DescPage.SuspendLayout();
            base.SuspendLayout();
            this.OKBtn.Anchor                      = AnchorStyles.Bottom | AnchorStyles.Right;
            this.OKBtn.DialogResult                = System.Windows.Forms.DialogResult.OK;
            this.OKBtn.Location                    = new Point(192, 326);
            this.OKBtn.Name                        = "OKBtn";
            this.OKBtn.Size                        = new System.Drawing.Size(75, 23);
            this.OKBtn.TabIndex                    = 15;
            this.OKBtn.Text                        = "OK";
            this.OKBtn.UseVisualStyleBackColor     = true;
            this.OKBtn.Click                      += new EventHandler(this.OKBtn_Click);
            this.CancelBtn.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
            this.CancelBtn.DialogResult            = System.Windows.Forms.DialogResult.Cancel;
            this.CancelBtn.Location                = new Point(273, 326);
            this.CancelBtn.Name                    = "CancelBtn";
            this.CancelBtn.Size                    = new System.Drawing.Size(75, 23);
            this.CancelBtn.TabIndex                = 16;
            this.CancelBtn.Text                    = "Cancel";
            this.CancelBtn.UseVisualStyleBackColor = true;
            this.NameLbl.AutoSize                  = true;
            this.NameLbl.Location                  = new Point(12, 15);
            this.NameLbl.Name                      = "NameLbl";
            this.NameLbl.Size                      = new System.Drawing.Size(38, 13);
            this.NameLbl.TabIndex                  = 0;
            this.NameLbl.Text                      = "Name:";
            this.NameBox.Anchor                    = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.NameBox.Location                  = new Point(94, 12);
            this.NameBox.Name                      = "NameBox";
            this.NameBox.Size                      = new System.Drawing.Size(254, 20);
            this.NameBox.TabIndex                  = 1;
            this.KeywordLbl.AutoSize               = true;
            this.KeywordLbl.Location               = new Point(12, 41);
            this.KeywordLbl.Name                   = "KeywordLbl";
            this.KeywordLbl.Size                   = new System.Drawing.Size(56, 13);
            this.KeywordLbl.TabIndex               = 2;
            this.KeywordLbl.Text                   = "Keywords:";
            this.KeywordBox.Anchor                 = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.KeywordBox.Location               = new Point(94, 38);
            this.KeywordBox.Name                   = "KeywordBox";
            this.KeywordBox.Size                   = new System.Drawing.Size(254, 20);
            this.KeywordBox.TabIndex               = 3;
            this.ActionLbl.AutoSize                = true;
            this.ActionLbl.Location                = new Point(12, 95);
            this.ActionLbl.Name                    = "ActionLbl";
            this.ActionLbl.Size                    = new System.Drawing.Size(40, 13);
            this.ActionLbl.TabIndex                = 6;
            this.ActionLbl.Text                    = "Action:";
            this.ActionBtn.Anchor                  = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.ActionBtn.Location                = new Point(94, 90);
            this.ActionBtn.Name                    = "ActionBtn";
            this.ActionBtn.Size                    = new System.Drawing.Size(217, 23);
            this.ActionBtn.TabIndex                = 7;
            this.ActionBtn.Text                    = "[action]";
            this.ActionBtn.UseVisualStyleBackColor = true;
            this.ActionBtn.Click                  += new EventHandler(this.ActionBtn_Click);
            this.ActionClearLbl.Anchor             = AnchorStyles.Top | AnchorStyles.Right;
            this.ActionClearLbl.AutoSize           = true;
            this.ActionClearLbl.Location           = new Point(317, 95);
            this.ActionClearLbl.Name               = "ActionClearLbl";
            this.ActionClearLbl.Size               = new System.Drawing.Size(31, 13);
            this.ActionClearLbl.TabIndex           = 8;
            this.ActionClearLbl.TabStop            = true;
            this.ActionClearLbl.Text               = "Clear";
            this.ActionClearLbl.LinkClicked       += new LinkLabelLinkClickedEventHandler(this.ActionClearLbl_LinkClicked);
            this.AttackLbl.AutoSize                = true;
            this.AttackLbl.Location                = new Point(12, 124);
            this.AttackLbl.Name                    = "AttackLbl";
            this.AttackLbl.Size                    = new System.Drawing.Size(41, 13);
            this.AttackLbl.TabIndex                = 9;
            this.AttackLbl.Text                    = "Attack:";
            this.AttackBtn.Anchor                  = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.AttackBtn.Location                = new Point(94, 119);
            this.AttackBtn.Name                    = "AttackBtn";
            this.AttackBtn.Size                    = new System.Drawing.Size(217, 23);
            this.AttackBtn.TabIndex                = 10;
            this.AttackBtn.Text                    = "[attack]";
            this.AttackBtn.UseVisualStyleBackColor = true;
            this.AttackBtn.Click                  += new EventHandler(this.AttackBtn_Click);
            this.AttackClearLbl.Anchor             = AnchorStyles.Top | AnchorStyles.Right;
            this.AttackClearLbl.AutoSize           = true;
            this.AttackClearLbl.Location           = new Point(317, 124);
            this.AttackClearLbl.Name               = "AttackClearLbl";
            this.AttackClearLbl.Size               = new System.Drawing.Size(31, 13);
            this.AttackClearLbl.TabIndex           = 11;
            this.AttackClearLbl.TabStop            = true;
            this.AttackClearLbl.Text               = "Clear";
            this.AttackClearLbl.LinkClicked       += new LinkLabelLinkClickedEventHandler(this.AttackClearLbl_LinkClicked);
            this.RangeLbl.AutoSize                 = true;
            this.RangeLbl.Location                 = new Point(12, 151);
            this.RangeLbl.Name                     = "RangeLbl";
            this.RangeLbl.Size                     = new System.Drawing.Size(42, 13);
            this.RangeLbl.TabIndex                 = 12;
            this.RangeLbl.Text                     = "Range:";
            this.RangeBox.Anchor                   = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.RangeBox.AutoCompleteMode         = AutoCompleteMode.Append;
            this.RangeBox.AutoCompleteSource       = AutoCompleteSource.ListItems;
            this.RangeBox.FormattingEnabled        = true;
            this.RangeBox.Location                 = new Point(94, 148);
            this.RangeBox.Name                     = "RangeBox";
            this.RangeBox.Size                     = new System.Drawing.Size(254, 21);
            this.RangeBox.Sorted                   = true;
            this.RangeBox.TabIndex                 = 13;
            this.Pages.Anchor                      = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.Pages.Controls.Add(this.DetailsPage);
            this.Pages.Controls.Add(this.DescPage);
            this.Pages.Controls.Add(this.AdvicePage);
            this.Pages.Location      = new Point(12, 175);
            this.Pages.Name          = "Pages";
            this.Pages.SelectedIndex = 0;
            this.Pages.Size          = new System.Drawing.Size(336, 145);
            this.Pages.TabIndex      = 14;
            this.DetailsPage.Controls.Add(this.DetailsBox);
            this.DetailsPage.Location = new Point(4, 22);
            this.DetailsPage.Name     = "DetailsPage";
            this.DetailsPage.Padding  = new System.Windows.Forms.Padding(3);
            this.DetailsPage.Size     = new System.Drawing.Size(328, 119);
            this.DetailsPage.TabIndex = 0;
            this.DetailsPage.Text     = "Details";
            this.DetailsPage.UseVisualStyleBackColor = true;
            this.DetailsBox.AcceptsReturn            = true;
            this.DetailsBox.Dock       = DockStyle.Fill;
            this.DetailsBox.Location   = new Point(3, 3);
            this.DetailsBox.Multiline  = true;
            this.DetailsBox.Name       = "DetailsBox";
            this.DetailsBox.ScrollBars = ScrollBars.Vertical;
            this.DetailsBox.Size       = new System.Drawing.Size(322, 113);
            this.DetailsBox.TabIndex   = 0;
            this.AdvicePage.Controls.Add(this.AdviceList);
            this.AdvicePage.Location = new Point(4, 22);
            this.AdvicePage.Name     = "AdvicePage";
            this.AdvicePage.Padding  = new System.Windows.Forms.Padding(3);
            this.AdvicePage.Size     = new System.Drawing.Size(328, 119);
            this.AdvicePage.TabIndex = 1;
            this.AdvicePage.Text     = "Advice";
            this.AdvicePage.UseVisualStyleBackColor = true;
            ListView.ColumnHeaderCollection columns = this.AdviceList.Columns;
            ColumnHeader[] adviceHdr = new ColumnHeader[] { this.AdviceHdr, this.InfoHdr };
            columns.AddRange(adviceHdr);
            this.AdviceList.Dock          = DockStyle.Fill;
            this.AdviceList.FullRowSelect = true;
            listViewGroup.Header          = "Attack Advice";
            listViewGroup.Name            = "AtkGrp";
            listViewGroup1.Header         = "Damage Advice";
            listViewGroup1.Name           = "DmgGrp";
            this.AdviceList.Groups.AddRange(new ListViewGroup[] { listViewGroup, listViewGroup1 });
            this.AdviceList.HeaderStyle   = ColumnHeaderStyle.None;
            this.AdviceList.HideSelection = false;
            this.AdviceList.Location      = new Point(3, 3);
            this.AdviceList.MultiSelect   = false;
            this.AdviceList.Name          = "AdviceList";
            this.AdviceList.Size          = new System.Drawing.Size(322, 113);
            this.AdviceList.TabIndex      = 0;
            this.AdviceList.UseCompatibleStateImageBehavior = false;
            this.AdviceList.View       = View.Details;
            this.AdviceHdr.Text        = "Advice";
            this.AdviceHdr.Width       = 150;
            this.InfoHdr.Text          = "Information";
            this.InfoHdr.Width         = 100;
            this.ConditionBox.Anchor   = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.ConditionBox.Location = new Point(94, 64);
            this.ConditionBox.Name     = "ConditionBox";
            this.ConditionBox.Size     = new System.Drawing.Size(254, 20);
            this.ConditionBox.TabIndex = 5;
            this.ConditionLbl.AutoSize = true;
            this.ConditionLbl.Location = new Point(12, 67);
            this.ConditionLbl.Name     = "ConditionLbl";
            this.ConditionLbl.Size     = new System.Drawing.Size(59, 13);
            this.ConditionLbl.TabIndex = 4;
            this.ConditionLbl.Text     = "Conditions:";
            this.DescPage.Controls.Add(this.DescBox);
            this.DescPage.Location = new Point(4, 22);
            this.DescPage.Name     = "DescPage";
            this.DescPage.Padding  = new System.Windows.Forms.Padding(3);
            this.DescPage.Size     = new System.Drawing.Size(328, 119);
            this.DescPage.TabIndex = 2;
            this.DescPage.Text     = "Description";
            this.DescPage.UseVisualStyleBackColor = true;
            this.DescBox.AcceptsReturn            = true;
            this.DescBox.Dock        = DockStyle.Fill;
            this.DescBox.Location    = new Point(3, 3);
            this.DescBox.Multiline   = true;
            this.DescBox.Name        = "DescBox";
            this.DescBox.ScrollBars  = ScrollBars.Vertical;
            this.DescBox.Size        = new System.Drawing.Size(322, 113);
            this.DescBox.TabIndex    = 1;
            base.AcceptButton        = this.OKBtn;
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            base.CancelButton        = this.CancelBtn;
            base.ClientSize          = new System.Drawing.Size(360, 361);
            base.Controls.Add(this.ConditionBox);
            base.Controls.Add(this.ConditionLbl);
            base.Controls.Add(this.Pages);
            base.Controls.Add(this.RangeBox);
            base.Controls.Add(this.RangeLbl);
            base.Controls.Add(this.AttackClearLbl);
            base.Controls.Add(this.AttackBtn);
            base.Controls.Add(this.AttackLbl);
            base.Controls.Add(this.ActionClearLbl);
            base.Controls.Add(this.ActionBtn);
            base.Controls.Add(this.ActionLbl);
            base.Controls.Add(this.KeywordBox);
            base.Controls.Add(this.KeywordLbl);
            base.Controls.Add(this.NameBox);
            base.Controls.Add(this.NameLbl);
            base.Controls.Add(this.CancelBtn);
            base.Controls.Add(this.OKBtn);
            base.MaximizeBox   = false;
            base.MinimizeBox   = false;
            base.Name          = "PowerForm";
            base.ShowIcon      = false;
            base.ShowInTaskbar = false;
            base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
            base.StartPosition = FormStartPosition.CenterParent;
            this.Text          = "Power";
            this.Pages.ResumeLayout(false);
            this.DetailsPage.ResumeLayout(false);
            this.DetailsPage.PerformLayout();
            this.AdvicePage.ResumeLayout(false);
            this.DescPage.ResumeLayout(false);
            this.DescPage.PerformLayout();
            base.ResumeLayout(false);
            base.PerformLayout();
        }
Пример #24
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(HeroListForm));
            ListViewGroup            listViewGroup            = new ListViewGroup("PCs", HorizontalAlignment.Left);
            ListViewGroup            listViewGroup1           = new ListViewGroup("Inactive PCs", HorizontalAlignment.Left);

            this.Toolbar              = new ToolStrip();
            this.AddBtn               = new ToolStripSplitButton();
            this.Import_CB            = new ToolStripMenuItem();
            this.toolStripSeparator4  = new ToolStripSeparator();
            this.Import_iPlay4e       = new ToolStripMenuItem();
            this.Import_iPlay4e_Party = new ToolStripMenuItem();
            this.toolStripSeparator1  = new ToolStripSeparator();
            this.AddRandomCharacter   = new ToolStripMenuItem();
            this.AddRandomParty       = new ToolStripMenuItem();
            this.toolStripSeparator6  = new ToolStripSeparator();
            this.AddSuggest           = new ToolStripMenuItem();
            this.RemoveBtn            = new ToolStripButton();
            this.EditBtn              = new ToolStripButton();
            this.toolStripSeparator2  = new ToolStripSeparator();
            this.ActiveBtn            = new ToolStripButton();
            this.toolStripSeparator3  = new ToolStripSeparator();
            this.PlayerViewBtn        = new ToolStripButton();
            this.toolStripSeparator5  = new ToolStripSeparator();
            this.StatBlockBtn         = new ToolStripButton();
            this.EntryBtn             = new ToolStripButton();
            this.HeroList             = new ListView();
            this.NameHdr              = new ColumnHeader();
            this.CharHdr              = new ColumnHeader();
            this.InsightHdr           = new ColumnHeader();
            this.PercHdr              = new ColumnHeader();
            this.Pages            = new TabControl();
            this.DetailsPage      = new TabPage();
            this.OverviewPage     = new TabPage();
            this.ParcelPage       = new TabPage();
            this.ParcelList       = new ListView();
            this.ParcelHdr        = new ColumnHeader();
            this.ParcelDetailsHdr = new ColumnHeader();
            this.CloseBtn         = new Button();
            this.UpdateBtn        = new Button();
            this.StatusBar        = new StatusStrip();
            this.PartySizeLbl     = new ToolStripStatusLabel();
            this.BreakdownPnl     = new BreakdownPanel();
            this.Toolbar.SuspendLayout();
            this.Pages.SuspendLayout();
            this.DetailsPage.SuspendLayout();
            this.OverviewPage.SuspendLayout();
            this.ParcelPage.SuspendLayout();
            this.StatusBar.SuspendLayout();
            base.SuspendLayout();
            ToolStripItemCollection items = this.Toolbar.Items;

            ToolStripItem[] addBtn = new ToolStripItem[] { this.AddBtn, this.RemoveBtn, this.EditBtn, this.toolStripSeparator2, this.ActiveBtn, this.toolStripSeparator3, this.PlayerViewBtn, this.toolStripSeparator5, this.StatBlockBtn, this.EntryBtn };
            items.AddRange(addBtn);
            this.Toolbar.Location    = new Point(3, 3);
            this.Toolbar.Name        = "Toolbar";
            this.Toolbar.Size        = new System.Drawing.Size(562, 25);
            this.Toolbar.TabIndex    = 0;
            this.Toolbar.Text        = "toolStrip1";
            this.AddBtn.DisplayStyle = ToolStripItemDisplayStyle.Text;
            ToolStripItemCollection dropDownItems = this.AddBtn.DropDownItems;

            ToolStripItem[] importCB = new ToolStripItem[] { this.Import_CB, this.toolStripSeparator4, this.Import_iPlay4e, this.Import_iPlay4e_Party, this.toolStripSeparator1, this.AddRandomCharacter, this.AddRandomParty, this.toolStripSeparator6, this.AddSuggest };
            dropDownItems.AddRange(importCB);
            this.AddBtn.Image = (Image)componentResourceManager.GetObject("AddBtn.Image");
            this.AddBtn.ImageTransparentColor = Color.Magenta;
            this.AddBtn.Name                         = "AddBtn";
            this.AddBtn.Size                         = new System.Drawing.Size(45, 22);
            this.AddBtn.Text                         = "Add";
            this.AddBtn.ButtonClick                 += new EventHandler(this.AddBtn_Click);
            this.Import_CB.Name                      = "Import_CB";
            this.Import_CB.Size                      = new System.Drawing.Size(242, 22);
            this.Import_CB.Text                      = "Import from Character Builder...";
            this.Import_CB.Click                    += new EventHandler(this.Import_CB_Click);
            this.toolStripSeparator4.Name            = "toolStripSeparator4";
            this.toolStripSeparator4.Size            = new System.Drawing.Size(239, 6);
            this.Import_iPlay4e.Name                 = "Import_iPlay4e";
            this.Import_iPlay4e.Size                 = new System.Drawing.Size(242, 22);
            this.Import_iPlay4e.Text                 = "Import Character from iPlay4e...";
            this.Import_iPlay4e.Click               += new EventHandler(this.Import_iPlay4e_Click);
            this.Import_iPlay4e_Party.Name           = "Import_iPlay4e_Party";
            this.Import_iPlay4e_Party.Size           = new System.Drawing.Size(242, 22);
            this.Import_iPlay4e_Party.Text           = "Import Party from iPlay4e...";
            this.Import_iPlay4e_Party.Click         += new EventHandler(this.Import_iPlay4e_Party_Click);
            this.toolStripSeparator1.Name            = "toolStripSeparator1";
            this.toolStripSeparator1.Size            = new System.Drawing.Size(239, 6);
            this.AddRandomCharacter.Name             = "AddRandomCharacter";
            this.AddRandomCharacter.Size             = new System.Drawing.Size(242, 22);
            this.AddRandomCharacter.Text             = "Random Character";
            this.AddRandomCharacter.Click           += new EventHandler(this.RandomPC_Click);
            this.AddRandomParty.Name                 = "AddRandomParty";
            this.AddRandomParty.Size                 = new System.Drawing.Size(242, 22);
            this.AddRandomParty.Text                 = "Random Party";
            this.AddRandomParty.Click               += new EventHandler(this.RandomParty_Click);
            this.toolStripSeparator6.Name            = "toolStripSeparator6";
            this.toolStripSeparator6.Size            = new System.Drawing.Size(239, 6);
            this.AddSuggest.Name                     = "AddSuggest";
            this.AddSuggest.Size                     = new System.Drawing.Size(242, 22);
            this.AddSuggest.Text                     = "Suggest a Character";
            this.AddSuggest.Click                   += new EventHandler(this.AddSuggest_Click);
            this.RemoveBtn.DisplayStyle              = ToolStripItemDisplayStyle.Text;
            this.RemoveBtn.Image                     = (Image)componentResourceManager.GetObject("RemoveBtn.Image");
            this.RemoveBtn.ImageTransparentColor     = Color.Magenta;
            this.RemoveBtn.Name                      = "RemoveBtn";
            this.RemoveBtn.Size                      = new System.Drawing.Size(54, 22);
            this.RemoveBtn.Text                      = "Remove";
            this.RemoveBtn.Click                    += new EventHandler(this.RemoveBtn_Click);
            this.EditBtn.DisplayStyle                = ToolStripItemDisplayStyle.Text;
            this.EditBtn.Image                       = (Image)componentResourceManager.GetObject("EditBtn.Image");
            this.EditBtn.ImageTransparentColor       = Color.Magenta;
            this.EditBtn.Name                        = "EditBtn";
            this.EditBtn.Size                        = new System.Drawing.Size(31, 22);
            this.EditBtn.Text                        = "Edit";
            this.EditBtn.Click                      += new EventHandler(this.EditBtn_Click);
            this.toolStripSeparator2.Name            = "toolStripSeparator2";
            this.toolStripSeparator2.Size            = new System.Drawing.Size(6, 25);
            this.ActiveBtn.DisplayStyle              = ToolStripItemDisplayStyle.Text;
            this.ActiveBtn.Image                     = (Image)componentResourceManager.GetObject("ActiveBtn.Image");
            this.ActiveBtn.ImageTransparentColor     = Color.Magenta;
            this.ActiveBtn.Name                      = "ActiveBtn";
            this.ActiveBtn.Size                      = new System.Drawing.Size(44, 22);
            this.ActiveBtn.Text                      = "Active";
            this.ActiveBtn.Click                    += new EventHandler(this.ActiveBtn_Click);
            this.toolStripSeparator3.Name            = "toolStripSeparator3";
            this.toolStripSeparator3.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.toolStripSeparator5.Name            = "toolStripSeparator5";
            this.toolStripSeparator5.Size            = new System.Drawing.Size(6, 25);
            this.StatBlockBtn.DisplayStyle           = ToolStripItemDisplayStyle.Text;
            this.StatBlockBtn.Image                  = (Image)componentResourceManager.GetObject("StatBlockBtn.Image");
            this.StatBlockBtn.ImageTransparentColor  = Color.Magenta;
            this.StatBlockBtn.Name                   = "StatBlockBtn";
            this.StatBlockBtn.Size                   = new System.Drawing.Size(63, 22);
            this.StatBlockBtn.Text                   = "Stat Block";
            this.StatBlockBtn.Click                 += new EventHandler(this.StatBlockBtn_Click);
            this.EntryBtn.DisplayStyle               = ToolStripItemDisplayStyle.Text;
            this.EntryBtn.Image                      = (Image)componentResourceManager.GetObject("EntryBtn.Image");
            this.EntryBtn.ImageTransparentColor      = Color.Magenta;
            this.EntryBtn.Name                       = "EntryBtn";
            this.EntryBtn.Size                       = new System.Drawing.Size(111, 22);
            this.EntryBtn.Text                       = "Encyclopedia Entry";
            this.EntryBtn.Click                     += new EventHandler(this.EntryBtn_Click);
            ListView.ColumnHeaderCollection columns = this.HeroList.Columns;
            ColumnHeader[] nameHdr = new ColumnHeader[] { this.NameHdr, this.CharHdr, this.InsightHdr, this.PercHdr };
            columns.AddRange(nameHdr);
            this.HeroList.Dock          = DockStyle.Fill;
            this.HeroList.FullRowSelect = true;
            listViewGroup.Header        = "PCs";
            listViewGroup.Name          = "listViewGroup1";
            listViewGroup1.Header       = "Inactive PCs";
            listViewGroup1.Name         = "listViewGroup2";
            this.HeroList.Groups.AddRange(new ListViewGroup[] { listViewGroup, listViewGroup1 });
            this.HeroList.HeaderStyle   = ColumnHeaderStyle.Nonclickable;
            this.HeroList.HideSelection = false;
            this.HeroList.Location      = new Point(3, 28);
            this.HeroList.MultiSelect   = false;
            this.HeroList.Name          = "HeroList";
            this.HeroList.Size          = new System.Drawing.Size(562, 209);
            this.HeroList.Sorting       = SortOrder.Ascending;
            this.HeroList.TabIndex      = 1;
            this.HeroList.UseCompatibleStateImageBehavior = false;
            this.HeroList.View         = View.Details;
            this.HeroList.DoubleClick += new EventHandler(this.EditBtn_Click);
            this.NameHdr.Text          = "Name";
            this.NameHdr.Width         = 180;
            this.CharHdr.Text          = "Character";
            this.CharHdr.Width         = 200;
            this.InsightHdr.Text       = "Insight";
            this.InsightHdr.TextAlign  = HorizontalAlignment.Right;
            this.InsightHdr.Width      = 75;
            this.PercHdr.Text          = "Perception";
            this.PercHdr.TextAlign     = HorizontalAlignment.Right;
            this.PercHdr.Width         = 75;
            this.Pages.Anchor          = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.Pages.Controls.Add(this.DetailsPage);
            this.Pages.Controls.Add(this.OverviewPage);
            this.Pages.Controls.Add(this.ParcelPage);
            this.Pages.Location      = new Point(12, 12);
            this.Pages.Name          = "Pages";
            this.Pages.SelectedIndex = 0;
            this.Pages.Size          = new System.Drawing.Size(576, 288);
            this.Pages.TabIndex      = 2;
            this.DetailsPage.Controls.Add(this.HeroList);
            this.DetailsPage.Controls.Add(this.StatusBar);
            this.DetailsPage.Controls.Add(this.Toolbar);
            this.DetailsPage.Location = new Point(4, 22);
            this.DetailsPage.Name     = "DetailsPage";
            this.DetailsPage.Padding  = new System.Windows.Forms.Padding(3);
            this.DetailsPage.Size     = new System.Drawing.Size(568, 262);
            this.DetailsPage.TabIndex = 0;
            this.DetailsPage.Text     = "Details";
            this.DetailsPage.UseVisualStyleBackColor = true;
            this.OverviewPage.Controls.Add(this.BreakdownPnl);
            this.OverviewPage.Location = new Point(4, 22);
            this.OverviewPage.Name     = "OverviewPage";
            this.OverviewPage.Padding  = new System.Windows.Forms.Padding(3);
            this.OverviewPage.Size     = new System.Drawing.Size(568, 262);
            this.OverviewPage.TabIndex = 1;
            this.OverviewPage.Text     = "Class Role Overview";
            this.OverviewPage.UseVisualStyleBackColor = true;
            this.ParcelPage.Controls.Add(this.ParcelList);
            this.ParcelPage.Location = new Point(4, 22);
            this.ParcelPage.Name     = "ParcelPage";
            this.ParcelPage.Padding  = new System.Windows.Forms.Padding(3);
            this.ParcelPage.Size     = new System.Drawing.Size(568, 262);
            this.ParcelPage.TabIndex = 2;
            this.ParcelPage.Text     = "Treasure Parcels";
            this.ParcelPage.UseVisualStyleBackColor = true;
            ListView.ColumnHeaderCollection columnHeaderCollections = this.ParcelList.Columns;
            ColumnHeader[] parcelHdr = new ColumnHeader[] { this.ParcelHdr, this.ParcelDetailsHdr };
            columnHeaderCollections.AddRange(parcelHdr);
            this.ParcelList.Dock          = DockStyle.Fill;
            this.ParcelList.FullRowSelect = true;
            this.ParcelList.HeaderStyle   = ColumnHeaderStyle.Nonclickable;
            this.ParcelList.HideSelection = false;
            this.ParcelList.Location      = new Point(3, 3);
            this.ParcelList.MultiSelect   = false;
            this.ParcelList.Name          = "ParcelList";
            this.ParcelList.Size          = new System.Drawing.Size(562, 256);
            this.ParcelList.TabIndex      = 0;
            this.ParcelList.UseCompatibleStateImageBehavior = false;
            this.ParcelList.View                   = View.Details;
            this.ParcelList.DoubleClick           += new EventHandler(this.ParcelList_DoubleClick);
            this.ParcelHdr.Text                    = "Treasure Parcel";
            this.ParcelHdr.Width                   = 185;
            this.ParcelDetailsHdr.Text             = "Details";
            this.ParcelDetailsHdr.Width            = 339;
            this.CloseBtn.Anchor                   = AnchorStyles.Bottom | AnchorStyles.Right;
            this.CloseBtn.DialogResult             = System.Windows.Forms.DialogResult.OK;
            this.CloseBtn.Location                 = new Point(513, 306);
            this.CloseBtn.Name                     = "CloseBtn";
            this.CloseBtn.Size                     = new System.Drawing.Size(75, 23);
            this.CloseBtn.TabIndex                 = 3;
            this.CloseBtn.Text                     = "Close";
            this.CloseBtn.UseVisualStyleBackColor  = true;
            this.UpdateBtn.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Left;
            this.UpdateBtn.Location                = new Point(12, 306);
            this.UpdateBtn.Name                    = "UpdateBtn";
            this.UpdateBtn.Size                    = new System.Drawing.Size(178, 23);
            this.UpdateBtn.TabIndex                = 4;
            this.UpdateBtn.Text                    = "Update iPlay4e Characters";
            this.UpdateBtn.UseVisualStyleBackColor = true;
            this.UpdateBtn.Click                  += new EventHandler(this.UpdateBtn_Click);
            this.StatusBar.BackColor               = Color.Transparent;
            this.StatusBar.Items.AddRange(new ToolStripItem[] { this.PartySizeLbl });
            this.StatusBar.Location        = new Point(3, 237);
            this.StatusBar.Name            = "StatusBar";
            this.StatusBar.Size            = new System.Drawing.Size(562, 22);
            this.StatusBar.SizingGrip      = false;
            this.StatusBar.TabIndex        = 2;
            this.PartySizeLbl.IsLink       = true;
            this.PartySizeLbl.LinkBehavior = LinkBehavior.HoverUnderline;
            this.PartySizeLbl.Name         = "PartySizeLbl";
            this.PartySizeLbl.Size         = new System.Drawing.Size(217, 17);
            this.PartySizeLbl.Text         = "Your campaign is set up for a party of N";
            this.BreakdownPnl.Dock         = DockStyle.Fill;
            this.BreakdownPnl.Heroes       = null;
            this.BreakdownPnl.Location     = new Point(3, 3);
            this.BreakdownPnl.Name         = "BreakdownPnl";
            this.BreakdownPnl.Size         = new System.Drawing.Size(562, 256);
            this.BreakdownPnl.TabIndex     = 0;
            base.AcceptButton        = this.CloseBtn;
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            base.ClientSize          = new System.Drawing.Size(600, 341);
            base.Controls.Add(this.UpdateBtn);
            base.Controls.Add(this.CloseBtn);
            base.Controls.Add(this.Pages);
            base.MaximizeBox   = false;
            base.MinimizeBox   = false;
            base.Name          = "HeroListForm";
            base.ShowIcon      = false;
            base.ShowInTaskbar = false;
            base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
            base.StartPosition = FormStartPosition.CenterParent;
            this.Text          = "Player Characters";
            this.Toolbar.ResumeLayout(false);
            this.Toolbar.PerformLayout();
            this.Pages.ResumeLayout(false);
            this.DetailsPage.ResumeLayout(false);
            this.DetailsPage.PerformLayout();
            this.OverviewPage.ResumeLayout(false);
            this.ParcelPage.ResumeLayout(false);
            this.StatusBar.ResumeLayout(false);
            this.StatusBar.PerformLayout();
            base.ResumeLayout(false);
        }
Пример #25
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(SavingThrowForm));

            this.CancelBtn           = new Button();
            this.OKBtn               = new Button();
            this.ModLbl              = new Label();
            this.ModBox              = new NumericUpDown();
            this.ListPanel           = new Panel();
            this.EffectList          = new ListView();
            this.EffectHdr           = new ColumnHeader();
            this.SaveHdr             = new ColumnHeader();
            this.ResultHdr           = new ColumnHeader();
            this.Toolbar             = new ToolStrip();
            this.AddBtn              = new ToolStripButton();
            this.SubtractBtn         = new ToolStripButton();
            this.toolStripSeparator1 = new ToolStripSeparator();
            this.RollBtn             = new ToolStripButton();
            this.toolStripSeparator2 = new ToolStripSeparator();
            this.SavedBtn            = new ToolStripButton();
            this.NotSavedBtn         = new ToolStripButton();
            this.InfoLbl             = new Label();
            ((ISupportInitialize)this.ModBox).BeginInit();
            this.ListPanel.SuspendLayout();
            this.Toolbar.SuspendLayout();
            base.SuspendLayout();
            this.CancelBtn.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
            this.CancelBtn.DialogResult            = System.Windows.Forms.DialogResult.Cancel;
            this.CancelBtn.Location                = new Point(415, 277);
            this.CancelBtn.Name                    = "CancelBtn";
            this.CancelBtn.Size                    = new System.Drawing.Size(75, 23);
            this.CancelBtn.TabIndex                = 5;
            this.CancelBtn.Text                    = "Cancel";
            this.CancelBtn.UseVisualStyleBackColor = true;
            this.OKBtn.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
            this.OKBtn.DialogResult            = System.Windows.Forms.DialogResult.OK;
            this.OKBtn.Location                = new Point(334, 277);
            this.OKBtn.Name                    = "OKBtn";
            this.OKBtn.Size                    = new System.Drawing.Size(75, 23);
            this.OKBtn.TabIndex                = 4;
            this.OKBtn.Text                    = "OK";
            this.OKBtn.UseVisualStyleBackColor = true;
            this.OKBtn.Click                  += new EventHandler(this.OKBtn_Click);
            this.ModLbl.Anchor                 = AnchorStyles.Bottom | AnchorStyles.Left;
            this.ModLbl.AutoSize               = true;
            this.ModLbl.Location               = new Point(12, 282);
            this.ModLbl.Name                   = "ModLbl";
            this.ModLbl.Size                   = new System.Drawing.Size(47, 13);
            this.ModLbl.TabIndex               = 2;
            this.ModLbl.Text                   = "Modifier:";
            this.ModBox.Anchor                 = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.ModBox.Location               = new Point(65, 280);
            NumericUpDown modBox = this.ModBox;

            int[] numArray = new int[] { 100, 0, 0, -2147483648 };
            modBox.Minimum            = new decimal(numArray);
            this.ModBox.Name          = "ModBox";
            this.ModBox.Size          = new System.Drawing.Size(263, 20);
            this.ModBox.TabIndex      = 3;
            this.ModBox.ValueChanged += new EventHandler(this.ModBox_ValueChanged);
            this.ListPanel.Anchor     = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.ListPanel.Controls.Add(this.EffectList);
            this.ListPanel.Controls.Add(this.Toolbar);
            this.ListPanel.Location = new Point(12, 33);
            this.ListPanel.Name     = "ListPanel";
            this.ListPanel.Size     = new System.Drawing.Size(478, 238);
            this.ListPanel.TabIndex = 1;
            ListView.ColumnHeaderCollection columns = this.EffectList.Columns;
            ColumnHeader[] effectHdr = new ColumnHeader[] { this.EffectHdr, this.SaveHdr, this.ResultHdr };
            columns.AddRange(effectHdr);
            this.EffectList.Dock          = DockStyle.Fill;
            this.EffectList.FullRowSelect = true;
            this.EffectList.HeaderStyle   = ColumnHeaderStyle.Nonclickable;
            this.EffectList.HideSelection = false;
            this.EffectList.Location      = new Point(0, 25);
            this.EffectList.MultiSelect   = false;
            this.EffectList.Name          = "EffectList";
            this.EffectList.Size          = new System.Drawing.Size(478, 213);
            this.EffectList.TabIndex      = 1;
            this.EffectList.UseCompatibleStateImageBehavior = false;
            this.EffectList.View   = View.Details;
            this.EffectHdr.Text    = "Effect";
            this.EffectHdr.Width   = 257;
            this.SaveHdr.Text      = "Roll";
            this.SaveHdr.TextAlign = HorizontalAlignment.Center;
            this.SaveHdr.Width     = 76;
            this.ResultHdr.Text    = "Result";
            this.ResultHdr.Width   = 111;
            ToolStripItemCollection items = this.Toolbar.Items;

            ToolStripItem[] addBtn = new ToolStripItem[] { this.AddBtn, this.SubtractBtn, this.toolStripSeparator1, this.RollBtn, this.toolStripSeparator2, this.SavedBtn, this.NotSavedBtn };
            items.AddRange(addBtn);
            this.Toolbar.Location             = new Point(0, 0);
            this.Toolbar.Name                 = "Toolbar";
            this.Toolbar.Size                 = new System.Drawing.Size(478, 25);
            this.Toolbar.TabIndex             = 2;
            this.Toolbar.Text                 = "toolStrip1";
            this.AddBtn.DisplayStyle          = ToolStripItemDisplayStyle.Text;
            this.AddBtn.Image                 = (Image)componentResourceManager.GetObject("AddBtn.Image");
            this.AddBtn.ImageTransparentColor = Color.Magenta;
            this.AddBtn.Name                       = "AddBtn";
            this.AddBtn.Size                       = new System.Drawing.Size(23, 22);
            this.AddBtn.Text                       = "+";
            this.AddBtn.Click                     += new EventHandler(this.AddBtn_Click);
            this.SubtractBtn.DisplayStyle          = ToolStripItemDisplayStyle.Text;
            this.SubtractBtn.Image                 = (Image)componentResourceManager.GetObject("SubtractBtn.Image");
            this.SubtractBtn.ImageTransparentColor = Color.Magenta;
            this.SubtractBtn.Name                  = "SubtractBtn";
            this.SubtractBtn.Size                  = new System.Drawing.Size(23, 22);
            this.SubtractBtn.Text                  = "-";
            this.SubtractBtn.Click                += new EventHandler(this.SubtractBtn_Click);
            this.toolStripSeparator1.Name          = "toolStripSeparator1";
            this.toolStripSeparator1.Size          = new System.Drawing.Size(6, 25);
            this.RollBtn.DisplayStyle              = ToolStripItemDisplayStyle.Text;
            this.RollBtn.Image                     = (Image)componentResourceManager.GetObject("RollBtn.Image");
            this.RollBtn.ImageTransparentColor     = Color.Magenta;
            this.RollBtn.Name                      = "RollBtn";
            this.RollBtn.Size                      = new System.Drawing.Size(41, 22);
            this.RollBtn.Text                      = "Reroll";
            this.RollBtn.Click                    += new EventHandler(this.RollBtn_Click);
            this.toolStripSeparator2.Name          = "toolStripSeparator2";
            this.toolStripSeparator2.Size          = new System.Drawing.Size(6, 25);
            this.SavedBtn.DisplayStyle             = ToolStripItemDisplayStyle.Text;
            this.SavedBtn.Image                    = (Image)componentResourceManager.GetObject("SavedBtn.Image");
            this.SavedBtn.ImageTransparentColor    = Color.Magenta;
            this.SavedBtn.Name                     = "SavedBtn";
            this.SavedBtn.Size                     = new System.Drawing.Size(86, 22);
            this.SavedBtn.Text                     = "Mark as Saved";
            this.SavedBtn.Click                   += new EventHandler(this.SavedBtn_Click);
            this.NotSavedBtn.DisplayStyle          = ToolStripItemDisplayStyle.Text;
            this.NotSavedBtn.Image                 = (Image)componentResourceManager.GetObject("NotSavedBtn.Image");
            this.NotSavedBtn.ImageTransparentColor = Color.Magenta;
            this.NotSavedBtn.Name                  = "NotSavedBtn";
            this.NotSavedBtn.Size                  = new System.Drawing.Size(109, 22);
            this.NotSavedBtn.Text                  = "Mark as Not Saved";
            this.NotSavedBtn.Click                += new EventHandler(this.NotSavedBtn_Click);
            this.InfoLbl.Anchor                    = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.InfoLbl.Location                  = new Point(12, 9);
            this.InfoLbl.Name                      = "InfoLbl";
            this.InfoLbl.Size                      = new System.Drawing.Size(478, 21);
            this.InfoLbl.TabIndex                  = 0;
            this.InfoLbl.Text                      = "Saving throws are due to be rolled against the following effects.";
            base.AcceptButton                      = this.OKBtn;
            base.AutoScaleDimensions               = new SizeF(6f, 13f);
            base.AutoScaleMode                     = System.Windows.Forms.AutoScaleMode.Font;
            base.CancelButton                      = this.CancelBtn;
            base.ClientSize = new System.Drawing.Size(502, 312);
            base.Controls.Add(this.InfoLbl);
            base.Controls.Add(this.ListPanel);
            base.Controls.Add(this.ModBox);
            base.Controls.Add(this.ModLbl);
            base.Controls.Add(this.CancelBtn);
            base.Controls.Add(this.OKBtn);
            base.MaximizeBox   = false;
            base.MinimizeBox   = false;
            base.Name          = "SavingThrowForm";
            base.ShowIcon      = false;
            base.ShowInTaskbar = false;
            base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
            base.StartPosition = FormStartPosition.CenterParent;
            this.Text          = "Saving Throws";
            ((ISupportInitialize)this.ModBox).EndInit();
            this.ListPanel.ResumeLayout(false);
            this.ListPanel.PerformLayout();
            this.Toolbar.ResumeLayout(false);
            this.Toolbar.PerformLayout();
            base.ResumeLayout(false);
            base.PerformLayout();
        }
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.InfoLbl        = new Label();
            this.CreatureList   = new ListView();
            this.CreatureHdr    = new ColumnHeader();
            this.RoleHdr        = new ColumnHeader();
            this.panel1         = new Panel();
            this.toolStrip1     = new ToolStrip();
            this.SearchLbl      = new ToolStripLabel();
            this.SearchBox      = new ToolStripTextBox();
            this.SearchClearBtn = new ToolStripLabel();
            this.panel1.SuspendLayout();
            this.toolStrip1.SuspendLayout();
            base.SuspendLayout();
            this.InfoLbl.Dock     = DockStyle.Top;
            this.InfoLbl.Location = new Point(0, 0);
            this.InfoLbl.Name     = "InfoLbl";
            this.InfoLbl.Size     = new System.Drawing.Size(342, 40);
            this.InfoLbl.TabIndex = 0;
            this.InfoLbl.Text     = "Select the creature you want to create a variant of.";
            ListView.ColumnHeaderCollection columns = this.CreatureList.Columns;
            ColumnHeader[] creatureHdr = new ColumnHeader[] { this.CreatureHdr, this.RoleHdr };
            columns.AddRange(creatureHdr);
            this.CreatureList.Dock          = DockStyle.Fill;
            this.CreatureList.FullRowSelect = true;
            this.CreatureList.HeaderStyle   = ColumnHeaderStyle.Nonclickable;
            this.CreatureList.HideSelection = false;
            this.CreatureList.Location      = new Point(0, 25);
            this.CreatureList.MultiSelect   = false;
            this.CreatureList.Name          = "CreatureList";
            this.CreatureList.Size          = new System.Drawing.Size(336, 179);
            this.CreatureList.Sorting       = SortOrder.Ascending;
            this.CreatureList.TabIndex      = 2;
            this.CreatureList.UseCompatibleStateImageBehavior = false;
            this.CreatureList.View         = View.Details;
            this.CreatureList.DoubleClick += new EventHandler(this.CreatureList_DoubleClick);
            this.CreatureHdr.Text          = "Creature";
            this.CreatureHdr.Width         = 150;
            this.RoleHdr.Text              = "Role";
            this.RoleHdr.Width             = 150;
            this.panel1.Anchor             = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.panel1.Controls.Add(this.CreatureList);
            this.panel1.Controls.Add(this.toolStrip1);
            this.panel1.Location = new Point(3, 43);
            this.panel1.Name     = "panel1";
            this.panel1.Size     = new System.Drawing.Size(336, 204);
            this.panel1.TabIndex = 3;
            ToolStripItemCollection items = this.toolStrip1.Items;

            ToolStripItem[] searchLbl = new ToolStripItem[] { this.SearchLbl, this.SearchBox, this.SearchClearBtn };
            items.AddRange(searchLbl);
            this.toolStrip1.Location    = new Point(0, 0);
            this.toolStrip1.Name        = "toolStrip1";
            this.toolStrip1.Size        = new System.Drawing.Size(336, 25);
            this.toolStrip1.TabIndex    = 3;
            this.toolStrip1.Text        = "toolStrip1";
            this.SearchLbl.Name         = "SearchLbl";
            this.SearchLbl.Size         = new System.Drawing.Size(45, 22);
            this.SearchLbl.Text         = "Search:";
            this.SearchBox.BorderStyle  = System.Windows.Forms.BorderStyle.FixedSingle;
            this.SearchBox.Name         = "SearchBox";
            this.SearchBox.Size         = new System.Drawing.Size(200, 25);
            this.SearchBox.TextChanged += new EventHandler(this.SearchBox_TextChanged);
            this.SearchClearBtn.IsLink  = true;
            this.SearchClearBtn.Name    = "SearchClearBtn";
            this.SearchClearBtn.Size    = new System.Drawing.Size(34, 22);
            this.SearchClearBtn.Text    = "Clear";
            this.SearchClearBtn.Click  += new EventHandler(this.SearchClearBtn_Click);
            base.AutoScaleDimensions    = new SizeF(6f, 13f);
            base.AutoScaleMode          = System.Windows.Forms.AutoScaleMode.Font;
            base.Controls.Add(this.panel1);
            base.Controls.Add(this.InfoLbl);
            base.Name = "VariantBasePage";
            base.Size = new System.Drawing.Size(342, 250);
            this.panel1.ResumeLayout(false);
            this.panel1.PerformLayout();
            this.toolStrip1.ResumeLayout(false);
            this.toolStrip1.PerformLayout();
            base.ResumeLayout(false);
        }
Пример #27
0
        private void InitializeComponent()
        {
            ListViewGroup            listViewGroup            = new ListViewGroup("Ended effects", HorizontalAlignment.Left);
            ListViewGroup            listViewGroup1           = new ListViewGroup("These effects will not be ended this turn", HorizontalAlignment.Left);
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(EndedEffectsForm));

            this.OKBtn       = new Button();
            this.label1      = new Label();
            this.EffectPanel = new Panel();
            this.EffectList  = new ListView();
            this.CreatureHdr = new ColumnHeader();
            this.EffectHdr   = new ColumnHeader();
            this.Toolbar     = new ToolStrip();
            this.ExtendBtn   = new ToolStripButton();
            this.CancelBtn   = new Button();
            this.EffectPanel.SuspendLayout();
            this.Toolbar.SuspendLayout();
            base.SuspendLayout();
            this.OKBtn.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
            this.OKBtn.DialogResult            = System.Windows.Forms.DialogResult.OK;
            this.OKBtn.Location                = new Point(360, 261);
            this.OKBtn.Name                    = "OKBtn";
            this.OKBtn.Size                    = new System.Drawing.Size(75, 23);
            this.OKBtn.TabIndex                = 8;
            this.OKBtn.Text                    = "OK";
            this.OKBtn.UseVisualStyleBackColor = true;
            this.OKBtn.Click                  += new EventHandler(this.OKBtn_Click);
            this.label1.Anchor                 = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.label1.Location               = new Point(12, 9);
            this.label1.Name                   = "label1";
            this.label1.Size                   = new System.Drawing.Size(504, 33);
            this.label1.TabIndex               = 9;
            this.label1.Text                   = "The following ongoing effects are due to end now. If you want to extend one for another turn, select it and press the Extend button.";
            this.EffectPanel.Anchor            = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.EffectPanel.Controls.Add(this.EffectList);
            this.EffectPanel.Controls.Add(this.Toolbar);
            this.EffectPanel.Location = new Point(12, 45);
            this.EffectPanel.Name     = "EffectPanel";
            this.EffectPanel.Size     = new System.Drawing.Size(504, 210);
            this.EffectPanel.TabIndex = 10;
            ListView.ColumnHeaderCollection columns = this.EffectList.Columns;
            ColumnHeader[] creatureHdr = new ColumnHeader[] { this.CreatureHdr, this.EffectHdr };
            columns.AddRange(creatureHdr);
            this.EffectList.Dock          = DockStyle.Fill;
            this.EffectList.FullRowSelect = true;
            listViewGroup.Header          = "Ended effects";
            listViewGroup.Name            = "listViewGroup1";
            listViewGroup1.Header         = "These effects will not be ended this turn";
            listViewGroup1.Name           = "listViewGroup2";
            this.EffectList.Groups.AddRange(new ListViewGroup[] { listViewGroup, listViewGroup1 });
            this.EffectList.HeaderStyle   = ColumnHeaderStyle.Nonclickable;
            this.EffectList.HideSelection = false;
            this.EffectList.Location      = new Point(0, 25);
            this.EffectList.MultiSelect   = false;
            this.EffectList.Name          = "EffectList";
            this.EffectList.Size          = new System.Drawing.Size(504, 185);
            this.EffectList.TabIndex      = 1;
            this.EffectList.UseCompatibleStateImageBehavior = false;
            this.EffectList.View   = View.Details;
            this.CreatureHdr.Text  = "Affected Creature";
            this.CreatureHdr.Width = 150;
            this.EffectHdr.Text    = "Effect";
            this.EffectHdr.Width   = 323;
            this.Toolbar.Items.AddRange(new ToolStripItem[] { this.ExtendBtn });
            this.Toolbar.Location                  = new Point(0, 0);
            this.Toolbar.Name                      = "Toolbar";
            this.Toolbar.Size                      = new System.Drawing.Size(504, 25);
            this.Toolbar.TabIndex                  = 0;
            this.Toolbar.Text                      = "toolStrip1";
            this.ExtendBtn.DisplayStyle            = ToolStripItemDisplayStyle.Text;
            this.ExtendBtn.Image                   = (Image)componentResourceManager.GetObject("ExtendBtn.Image");
            this.ExtendBtn.ImageTransparentColor   = Color.Magenta;
            this.ExtendBtn.Name                    = "ExtendBtn";
            this.ExtendBtn.Size                    = new System.Drawing.Size(101, 22);
            this.ExtendBtn.Text                    = "Extend this effect";
            this.ExtendBtn.Click                  += new EventHandler(this.ExtendBtn_Click);
            this.CancelBtn.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
            this.CancelBtn.DialogResult            = System.Windows.Forms.DialogResult.Cancel;
            this.CancelBtn.Location                = new Point(441, 261);
            this.CancelBtn.Name                    = "CancelBtn";
            this.CancelBtn.Size                    = new System.Drawing.Size(75, 23);
            this.CancelBtn.TabIndex                = 11;
            this.CancelBtn.Text                    = "Cancel";
            this.CancelBtn.UseVisualStyleBackColor = true;
            base.AcceptButton                      = this.OKBtn;
            base.AutoScaleDimensions               = new SizeF(6f, 13f);
            base.AutoScaleMode                     = System.Windows.Forms.AutoScaleMode.Font;
            base.CancelButton                      = this.CancelBtn;
            base.ClientSize = new System.Drawing.Size(528, 296);
            base.Controls.Add(this.CancelBtn);
            base.Controls.Add(this.EffectPanel);
            base.Controls.Add(this.label1);
            base.Controls.Add(this.OKBtn);
            base.MaximizeBox   = false;
            base.MinimizeBox   = false;
            base.Name          = "EndedEffectsForm";
            base.ShowIcon      = false;
            base.ShowInTaskbar = false;
            base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
            base.StartPosition = FormStartPosition.CenterParent;
            this.Text          = "Ended Effects";
            this.EffectPanel.ResumeLayout(false);
            this.EffectPanel.PerformLayout();
            this.Toolbar.ResumeLayout(false);
            this.Toolbar.PerformLayout();
            base.ResumeLayout(false);
        }
Пример #28
0
        private void InitializeComponent()
        {
            ListViewGroup listViewGroup = new ListViewGroup("Skill DCs", HorizontalAlignment.Left);

            this.CancelBtn   = new Button();
            this.OKBtn       = new Button();
            this.DCLbl       = new Label();
            this.DCBox       = new NumericUpDown();
            this.Pages       = new TabControl();
            this.DetailsPage = new TabPage();
            this.DetailsBox  = new TextBox();
            this.AdvicePage  = new TabPage();
            this.AdviceList  = new ListView();
            this.AdviceHdr   = new ColumnHeader();
            this.InfoHdr     = new ColumnHeader();
            this.SkillLbl    = new Label();
            this.SkillBox    = new ComboBox();
            this.DCBtn       = new CheckBox();
            ((ISupportInitialize)this.DCBox).BeginInit();
            this.Pages.SuspendLayout();
            this.DetailsPage.SuspendLayout();
            this.AdvicePage.SuspendLayout();
            base.SuspendLayout();
            this.CancelBtn.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
            this.CancelBtn.DialogResult            = System.Windows.Forms.DialogResult.Cancel;
            this.CancelBtn.Location                = new Point(213, 298);
            this.CancelBtn.Name                    = "CancelBtn";
            this.CancelBtn.Size                    = new System.Drawing.Size(75, 23);
            this.CancelBtn.TabIndex                = 7;
            this.CancelBtn.Text                    = "Cancel";
            this.CancelBtn.UseVisualStyleBackColor = true;
            this.OKBtn.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
            this.OKBtn.DialogResult            = System.Windows.Forms.DialogResult.OK;
            this.OKBtn.Location                = new Point(132, 298);
            this.OKBtn.Name                    = "OKBtn";
            this.OKBtn.Size                    = new System.Drawing.Size(75, 23);
            this.OKBtn.TabIndex                = 6;
            this.OKBtn.Text                    = "OK";
            this.OKBtn.UseVisualStyleBackColor = true;
            this.OKBtn.Click                  += new EventHandler(this.OKBtn_Click);
            this.DCLbl.AutoSize                = true;
            this.DCLbl.Location                = new Point(12, 72);
            this.DCLbl.Name                    = "DCLbl";
            this.DCLbl.Size                    = new System.Drawing.Size(25, 13);
            this.DCLbl.TabIndex                = 3;
            this.DCLbl.Text                    = "DC:";
            this.DCBox.Anchor                  = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.DCBox.Location                = new Point(47, 70);
            this.DCBox.Name                    = "DCBox";
            this.DCBox.Size                    = new System.Drawing.Size(241, 20);
            this.DCBox.TabIndex                = 4;
            this.Pages.Anchor                  = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.Pages.Controls.Add(this.DetailsPage);
            this.Pages.Controls.Add(this.AdvicePage);
            this.Pages.Location      = new Point(12, 109);
            this.Pages.Name          = "Pages";
            this.Pages.SelectedIndex = 0;
            this.Pages.Size          = new System.Drawing.Size(276, 183);
            this.Pages.TabIndex      = 5;
            this.DetailsPage.Controls.Add(this.DetailsBox);
            this.DetailsPage.Location = new Point(4, 22);
            this.DetailsPage.Name     = "DetailsPage";
            this.DetailsPage.Padding  = new System.Windows.Forms.Padding(3);
            this.DetailsPage.Size     = new System.Drawing.Size(268, 157);
            this.DetailsPage.TabIndex = 0;
            this.DetailsPage.Text     = "Details";
            this.DetailsPage.UseVisualStyleBackColor = true;
            this.DetailsBox.AcceptsReturn            = true;
            this.DetailsBox.AcceptsTab = true;
            this.DetailsBox.Dock       = DockStyle.Fill;
            this.DetailsBox.Location   = new Point(3, 3);
            this.DetailsBox.Multiline  = true;
            this.DetailsBox.Name       = "DetailsBox";
            this.DetailsBox.ScrollBars = ScrollBars.Vertical;
            this.DetailsBox.Size       = new System.Drawing.Size(262, 151);
            this.DetailsBox.TabIndex   = 0;
            this.AdvicePage.Controls.Add(this.AdviceList);
            this.AdvicePage.Location = new Point(4, 22);
            this.AdvicePage.Name     = "AdvicePage";
            this.AdvicePage.Padding  = new System.Windows.Forms.Padding(3);
            this.AdvicePage.Size     = new System.Drawing.Size(268, 178);
            this.AdvicePage.TabIndex = 1;
            this.AdvicePage.Text     = "Advice";
            this.AdvicePage.UseVisualStyleBackColor = true;
            ListView.ColumnHeaderCollection columns = this.AdviceList.Columns;
            ColumnHeader[] adviceHdr = new ColumnHeader[] { this.AdviceHdr, this.InfoHdr };
            columns.AddRange(adviceHdr);
            this.AdviceList.Dock          = DockStyle.Fill;
            this.AdviceList.FullRowSelect = true;
            listViewGroup.Header          = "Skill DCs";
            listViewGroup.Name            = "listViewGroup1";
            this.AdviceList.Groups.AddRange(new ListViewGroup[] { listViewGroup });
            this.AdviceList.HeaderStyle   = ColumnHeaderStyle.None;
            this.AdviceList.HideSelection = false;
            this.AdviceList.Location      = new Point(3, 3);
            this.AdviceList.MultiSelect   = false;
            this.AdviceList.Name          = "AdviceList";
            this.AdviceList.Size          = new System.Drawing.Size(262, 172);
            this.AdviceList.TabIndex      = 2;
            this.AdviceList.UseCompatibleStateImageBehavior = false;
            this.AdviceList.View             = View.Details;
            this.AdviceHdr.Text              = "Advice";
            this.AdviceHdr.Width             = 150;
            this.InfoHdr.Text                = "Information";
            this.InfoHdr.Width               = 100;
            this.SkillLbl.AutoSize           = true;
            this.SkillLbl.Location           = new Point(12, 15);
            this.SkillLbl.Name               = "SkillLbl";
            this.SkillLbl.Size               = new System.Drawing.Size(29, 13);
            this.SkillLbl.TabIndex           = 0;
            this.SkillLbl.Text               = "Skill:";
            this.SkillBox.Anchor             = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.SkillBox.AutoCompleteMode   = AutoCompleteMode.Append;
            this.SkillBox.AutoCompleteSource = AutoCompleteSource.ListItems;
            this.SkillBox.FormattingEnabled  = true;
            this.SkillBox.Location           = new Point(47, 12);
            this.SkillBox.Name               = "SkillBox";
            this.SkillBox.Size               = new System.Drawing.Size(241, 21);
            this.SkillBox.TabIndex           = 1;
            this.DCBtn.AutoSize              = true;
            this.DCBtn.Location              = new Point(12, 47);
            this.DCBtn.Name     = "DCBtn";
            this.DCBtn.Size     = new System.Drawing.Size(148, 17);
            this.DCBtn.TabIndex = 2;
            this.DCBtn.Text     = "This skill requires a check";
            this.DCBtn.UseVisualStyleBackColor = true;
            base.AcceptButton        = this.OKBtn;
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            base.CancelButton        = this.CancelBtn;
            base.ClientSize          = new System.Drawing.Size(300, 333);
            base.Controls.Add(this.DCBtn);
            base.Controls.Add(this.SkillBox);
            base.Controls.Add(this.SkillLbl);
            base.Controls.Add(this.Pages);
            base.Controls.Add(this.DCBox);
            base.Controls.Add(this.DCLbl);
            base.Controls.Add(this.CancelBtn);
            base.Controls.Add(this.OKBtn);
            base.MaximizeBox   = false;
            base.MinimizeBox   = false;
            base.Name          = "TrapSkillForm";
            base.ShowIcon      = false;
            base.ShowInTaskbar = false;
            base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
            base.StartPosition = FormStartPosition.CenterParent;
            this.Text          = "Skill Data";
            ((ISupportInitialize)this.DCBox).EndInit();
            this.Pages.ResumeLayout(false);
            this.DetailsPage.ResumeLayout(false);
            this.DetailsPage.PerformLayout();
            this.AdvicePage.ResumeLayout(false);
            base.ResumeLayout(false);
            base.PerformLayout();
        }
Пример #29
0
        private void InitializeComponent()
        {
            ListViewGroup listViewGroup  = new ListViewGroup("Ongoing Damage", HorizontalAlignment.Left);
            ListViewGroup listViewGroup1 = new ListViewGroup("Total Damage", HorizontalAlignment.Left);

            this.CancelBtn  = new Button();
            this.OKBtn      = new Button();
            this.ListPanel  = new Panel();
            this.DamageList = new ListView();
            this.DamageHdr  = new ColumnHeader();
            this.ValueHdr   = new ColumnHeader();
            this.TakenHdr   = new ColumnHeader();
            this.InfoLbl    = new Label();
            this.ListPanel.SuspendLayout();
            base.SuspendLayout();
            this.CancelBtn.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
            this.CancelBtn.DialogResult            = System.Windows.Forms.DialogResult.Cancel;
            this.CancelBtn.Location                = new Point(361, 242);
            this.CancelBtn.Name                    = "CancelBtn";
            this.CancelBtn.Size                    = new System.Drawing.Size(75, 23);
            this.CancelBtn.TabIndex                = 3;
            this.CancelBtn.Text                    = "Cancel";
            this.CancelBtn.UseVisualStyleBackColor = true;
            this.OKBtn.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
            this.OKBtn.DialogResult            = System.Windows.Forms.DialogResult.OK;
            this.OKBtn.Location                = new Point(280, 242);
            this.OKBtn.Name                    = "OKBtn";
            this.OKBtn.Size                    = new System.Drawing.Size(75, 23);
            this.OKBtn.TabIndex                = 2;
            this.OKBtn.Text                    = "OK";
            this.OKBtn.UseVisualStyleBackColor = true;
            this.OKBtn.Click                  += new EventHandler(this.OKBtn_Click);
            this.ListPanel.Anchor              = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.ListPanel.Controls.Add(this.DamageList);
            this.ListPanel.Location = new Point(12, 38);
            this.ListPanel.Name     = "ListPanel";
            this.ListPanel.Size     = new System.Drawing.Size(424, 198);
            this.ListPanel.TabIndex = 9;
            ListView.ColumnHeaderCollection columns = this.DamageList.Columns;
            ColumnHeader[] damageHdr = new ColumnHeader[] { this.DamageHdr, this.ValueHdr, this.TakenHdr };
            columns.AddRange(damageHdr);
            this.DamageList.Dock          = DockStyle.Fill;
            this.DamageList.FullRowSelect = true;
            listViewGroup.Header          = "Ongoing Damage";
            listViewGroup.Name            = "DamageGrp";
            listViewGroup1.Header         = "Total Damage";
            listViewGroup1.Name           = "TotalGrp";
            this.DamageList.Groups.AddRange(new ListViewGroup[] { listViewGroup, listViewGroup1 });
            this.DamageList.HeaderStyle   = ColumnHeaderStyle.Nonclickable;
            this.DamageList.HideSelection = false;
            this.DamageList.Location      = new Point(0, 0);
            this.DamageList.MultiSelect   = false;
            this.DamageList.Name          = "DamageList";
            this.DamageList.Size          = new System.Drawing.Size(424, 198);
            this.DamageList.TabIndex      = 1;
            this.DamageList.UseCompatibleStateImageBehavior = false;
            this.DamageList.View     = View.Details;
            this.DamageHdr.Text      = "Damage";
            this.DamageHdr.Width     = 229;
            this.ValueHdr.Text       = "Modifier";
            this.ValueHdr.Width      = 100;
            this.TakenHdr.Text       = "Taken";
            this.TakenHdr.TextAlign  = HorizontalAlignment.Right;
            this.InfoLbl.AutoSize    = true;
            this.InfoLbl.Location    = new Point(12, 9);
            this.InfoLbl.Name        = "InfoLbl";
            this.InfoLbl.Size        = new System.Drawing.Size(319, 13);
            this.InfoLbl.TabIndex    = 10;
            this.InfoLbl.Text        = "The following ongoing damage will be applied when you press OK.";
            base.AcceptButton        = this.OKBtn;
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            base.CancelButton        = this.CancelBtn;
            base.ClientSize          = new System.Drawing.Size(448, 277);
            base.Controls.Add(this.InfoLbl);
            base.Controls.Add(this.ListPanel);
            base.Controls.Add(this.CancelBtn);
            base.Controls.Add(this.OKBtn);
            base.MaximizeBox   = false;
            base.MinimizeBox   = false;
            base.Name          = "OngoingDamageForm";
            base.ShowIcon      = false;
            base.ShowInTaskbar = false;
            base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
            base.StartPosition = FormStartPosition.CenterParent;
            this.Text          = "Ongoing Damage";
            this.ListPanel.ResumeLayout(false);
            base.ResumeLayout(false);
            base.PerformLayout();
        }
Пример #30
0
        private void InitializeComponent()
        {
            ListViewGroup            listViewGroup            = new ListViewGroup("Magic Items", HorizontalAlignment.Left);
            ListViewGroup            listViewGroup1           = new ListViewGroup("Mundane Parcels", HorizontalAlignment.Left);
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(ParcelSelectForm));

            this.OKBtn               = new Button();
            this.CancelBtn           = new Button();
            this.NameHdr             = new ColumnHeader();
            this.DetailsHdr          = new ColumnHeader();
            this.ParcelList          = new ListView();
            this.ListPanel           = new Panel();
            this.Toolbar             = new ToolStrip();
            this.ChangeItemBtn       = new ToolStripButton();
            this.StatBlockBtn        = new ToolStripButton();
            this.toolStripSeparator1 = new ToolStripSeparator();
            this.RandomiseAllBtn     = new ToolStripButton();
            this.RandomiseBtn        = new ToolStripButton();
            this.ListPanel.SuspendLayout();
            this.Toolbar.SuspendLayout();
            base.SuspendLayout();
            this.OKBtn.Anchor                      = AnchorStyles.Bottom | AnchorStyles.Right;
            this.OKBtn.DialogResult                = System.Windows.Forms.DialogResult.OK;
            this.OKBtn.Location                    = new Point(318, 348);
            this.OKBtn.Name                        = "OKBtn";
            this.OKBtn.Size                        = new System.Drawing.Size(75, 23);
            this.OKBtn.TabIndex                    = 3;
            this.OKBtn.Text                        = "OK";
            this.OKBtn.UseVisualStyleBackColor     = true;
            this.OKBtn.Click                      += new EventHandler(this.OKBtn_Click);
            this.CancelBtn.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
            this.CancelBtn.DialogResult            = System.Windows.Forms.DialogResult.Cancel;
            this.CancelBtn.Location                = new Point(399, 348);
            this.CancelBtn.Name                    = "CancelBtn";
            this.CancelBtn.Size                    = new System.Drawing.Size(75, 23);
            this.CancelBtn.TabIndex                = 4;
            this.CancelBtn.Text                    = "Cancel";
            this.CancelBtn.UseVisualStyleBackColor = true;
            this.NameHdr.Text                      = "Parcel";
            this.NameHdr.Width                     = 150;
            this.DetailsHdr.Text                   = "Details";
            this.DetailsHdr.Width                  = 275;
            ListView.ColumnHeaderCollection columns = this.ParcelList.Columns;
            ColumnHeader[] nameHdr = new ColumnHeader[] { this.NameHdr, this.DetailsHdr };
            columns.AddRange(nameHdr);
            this.ParcelList.Dock          = DockStyle.Fill;
            this.ParcelList.FullRowSelect = true;
            listViewGroup.Header          = "Magic Items";
            listViewGroup.Name            = "listViewGroup1";
            listViewGroup1.Header         = "Mundane Parcels";
            listViewGroup1.Name           = "listViewGroup2";
            this.ParcelList.Groups.AddRange(new ListViewGroup[] { listViewGroup, listViewGroup1 });
            this.ParcelList.HideSelection = false;
            this.ParcelList.Location      = new Point(0, 25);
            this.ParcelList.MultiSelect   = false;
            this.ParcelList.Name          = "ParcelList";
            this.ParcelList.Size          = new System.Drawing.Size(462, 305);
            this.ParcelList.TabIndex      = 0;
            this.ParcelList.UseCompatibleStateImageBehavior = false;
            this.ParcelList.View         = View.Details;
            this.ParcelList.DoubleClick += new EventHandler(this.TileList_DoubleClick);
            this.ListPanel.Anchor        = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.ListPanel.Controls.Add(this.ParcelList);
            this.ListPanel.Controls.Add(this.Toolbar);
            this.ListPanel.Location = new Point(12, 12);
            this.ListPanel.Name     = "ListPanel";
            this.ListPanel.Size     = new System.Drawing.Size(462, 330);
            this.ListPanel.TabIndex = 5;
            ToolStripItemCollection items = this.Toolbar.Items;

            ToolStripItem[] changeItemBtn = new ToolStripItem[] { this.ChangeItemBtn, this.StatBlockBtn, this.toolStripSeparator1, this.RandomiseBtn, this.RandomiseAllBtn };
            items.AddRange(changeItemBtn);
            this.Toolbar.Location                      = new Point(0, 0);
            this.Toolbar.Name                          = "Toolbar";
            this.Toolbar.Size                          = new System.Drawing.Size(462, 25);
            this.Toolbar.TabIndex                      = 1;
            this.Toolbar.Text                          = "toolStrip1";
            this.ChangeItemBtn.DisplayStyle            = ToolStripItemDisplayStyle.Text;
            this.ChangeItemBtn.Image                   = (Image)componentResourceManager.GetObject("ChangeItemBtn.Image");
            this.ChangeItemBtn.ImageTransparentColor   = Color.Magenta;
            this.ChangeItemBtn.Name                    = "ChangeItemBtn";
            this.ChangeItemBtn.Size                    = new System.Drawing.Size(115, 22);
            this.ChangeItemBtn.Text                    = "Change Magic Item";
            this.ChangeItemBtn.Click                  += new EventHandler(this.ChangeItemBtn_Click);
            this.StatBlockBtn.DisplayStyle             = ToolStripItemDisplayStyle.Text;
            this.StatBlockBtn.Image                    = (Image)componentResourceManager.GetObject("StatBlockBtn.Image");
            this.StatBlockBtn.ImageTransparentColor    = Color.Magenta;
            this.StatBlockBtn.Name                     = "StatBlockBtn";
            this.StatBlockBtn.Size                     = new System.Drawing.Size(63, 22);
            this.StatBlockBtn.Text                     = "Stat Block";
            this.StatBlockBtn.Click                   += new EventHandler(this.StatBlockBtn_Click);
            this.toolStripSeparator1.Name              = "toolStripSeparator1";
            this.toolStripSeparator1.Size              = new System.Drawing.Size(6, 25);
            this.RandomiseAllBtn.DisplayStyle          = ToolStripItemDisplayStyle.Text;
            this.RandomiseAllBtn.Image                 = (Image)componentResourceManager.GetObject("RandomiseAllBtn.Image");
            this.RandomiseAllBtn.ImageTransparentColor = Color.Magenta;
            this.RandomiseAllBtn.Name                  = "RandomiseAllBtn";
            this.RandomiseAllBtn.Size                  = new System.Drawing.Size(87, 22);
            this.RandomiseAllBtn.Text                  = "Randomise All";
            this.RandomiseAllBtn.Click                += new EventHandler(this.RandomiseAllBtn_Click);
            this.RandomiseBtn.DisplayStyle             = ToolStripItemDisplayStyle.Text;
            this.RandomiseBtn.Image                    = (Image)componentResourceManager.GetObject("RandomiseBtn.Image");
            this.RandomiseBtn.ImageTransparentColor    = Color.Magenta;
            this.RandomiseBtn.Name                     = "RandomiseBtn";
            this.RandomiseBtn.Size                     = new System.Drawing.Size(70, 22);
            this.RandomiseBtn.Text                     = "Randomise";
            this.RandomiseBtn.Click                   += new EventHandler(this.RandomiseBtn_Click);
            base.AcceptButton                          = this.OKBtn;
            base.AutoScaleDimensions                   = new SizeF(6f, 13f);
            base.AutoScaleMode                         = System.Windows.Forms.AutoScaleMode.Font;
            base.CancelButton                          = this.CancelBtn;
            base.ClientSize = new System.Drawing.Size(486, 383);
            base.Controls.Add(this.ListPanel);
            base.Controls.Add(this.CancelBtn);
            base.Controls.Add(this.OKBtn);
            base.MaximizeBox   = false;
            base.MinimizeBox   = false;
            base.Name          = "ParcelSelectForm";
            base.ShowIcon      = false;
            base.ShowInTaskbar = false;
            base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
            base.StartPosition = FormStartPosition.CenterParent;
            this.Text          = "Select a Treasure Parcel";
            base.FormClosed   += new FormClosedEventHandler(this.ParcelSelectForm_FormClosed);
            this.ListPanel.ResumeLayout(false);
            this.ListPanel.PerformLayout();
            this.Toolbar.ResumeLayout(false);
            this.Toolbar.PerformLayout();
            base.ResumeLayout(false);
        }