public void ListViewGroupCollection_AddRange_NullGroups_ThrowsArgumentNullException() { using var listView = new ListView(); ListViewGroupCollection collection = listView.Groups; Assert.Throws <ArgumentNullException>("groups", () => collection.AddRange((ListViewGroup[])null)); Assert.Throws <ArgumentNullException>("groups", () => collection.AddRange((ListViewGroupCollection)null)); }
public void ListViewGroupCollection_AddRange_NullValueInGroups_ThrowsArgumentNullException() { using var listView = new ListView(); ListViewGroupCollection collection = listView.Groups; var group = new ListViewGroup(); Assert.Throws <ArgumentNullException>("group", () => collection.AddRange(new ListViewGroup[] { group, null })); Assert.Same(group, Assert.Single(collection.Cast <ListViewGroup>())); }
public void ListViewGroupCollection_AddRange_ListViewGroupArray_Success() { using var listView = new ListView(); ListViewGroupCollection collection = listView.Groups; var group1 = new ListViewGroup(); var group2 = new ListViewGroup(); var items = new ListViewGroup[] { group1, group2 }; collection.AddRange(items); Assert.Equal(2, collection.Count); Assert.Same(group1, collection[0]); Assert.Same(group2, collection[1]); }
public void ListViewGroupCollection_AddRange_ListViewGroupCollection_Success() { var listView = new ListView(); ListViewGroupCollection collection = listView.Groups; var otherListView = new ListView(); ListViewGroupCollection otherCollection = listView.Groups; var group1 = new ListViewGroup(); var group2 = new ListViewGroup(); otherCollection.Add(group1); otherCollection.Add(group2); collection.AddRange(otherCollection); Assert.Equal(2, collection.Count); Assert.Same(group1, collection[0]); Assert.Same(group2, collection[1]); Assert.Equal(2, otherCollection.Count); Assert.Same(group1, otherCollection[0]); Assert.Same(group2, otherCollection[1]); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { ListViewGroup listViewGroup = new ListViewGroup("Info", HorizontalAlignment.Left); ListViewGroup listViewGroup1 = new ListViewGroup("Primary Skills", HorizontalAlignment.Left); ListViewGroup listViewGroup2 = new ListViewGroup("Other Skills", HorizontalAlignment.Left); ListViewGroup listViewGroup3 = new ListViewGroup("Automatic Failure", HorizontalAlignment.Left); this.Toolbar = new ToolStrip(); this.toolStripSeparator1 = new ToolStripSeparator(); this.SkillList = new ListView(); this.InfoHdr = new ColumnHeader(); this.toolStripSeparator2 = new ToolStripSeparator(); this.EditBtn = new ToolStripButton(); this.LocationBtn = new ToolStripButton(); this.ChooseBtn = new ToolStripButton(); this.AddLibraryBtn = new ToolStripButton(); this.Toolbar.SuspendLayout(); base.SuspendLayout(); ToolStripItemCollection items = this.Toolbar.Items; ToolStripItem[] editBtn = new ToolStripItem[] { this.EditBtn, this.LocationBtn, this.toolStripSeparator1, this.ChooseBtn, this.toolStripSeparator2, this.AddLibraryBtn }; items.AddRange(editBtn); this.Toolbar.Location = new Point(0, 0); this.Toolbar.Name = "Toolbar"; this.Toolbar.Size = new System.Drawing.Size(520, 25); this.Toolbar.TabIndex = 0; this.Toolbar.Text = "toolStrip1"; this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25); this.SkillList.Columns.AddRange(new ColumnHeader[] { this.InfoHdr }); this.SkillList.Dock = DockStyle.Fill; this.SkillList.FullRowSelect = true; listViewGroup.Header = "Info"; listViewGroup.Name = "InfoHdr"; listViewGroup1.Header = "Primary Skills"; listViewGroup1.Name = "PrimaryHdr"; listViewGroup2.Header = "Other Skills"; listViewGroup2.Name = "SecondaryHdr"; listViewGroup3.Header = "Automatic Failure"; listViewGroup3.Name = "listViewGroup1"; ListViewGroupCollection groups = this.SkillList.Groups; ListViewGroup[] listViewGroupArray = new ListViewGroup[] { listViewGroup, listViewGroup1, listViewGroup2, listViewGroup3 }; groups.AddRange(listViewGroupArray); this.SkillList.HeaderStyle = ColumnHeaderStyle.Nonclickable; this.SkillList.HideSelection = false; this.SkillList.Location = new Point(0, 25); this.SkillList.MultiSelect = false; this.SkillList.Name = "SkillList"; this.SkillList.Size = new System.Drawing.Size(520, 155); this.SkillList.TabIndex = 1; this.SkillList.UseCompatibleStateImageBehavior = false; this.SkillList.View = View.Details; this.SkillList.DoubleClick += new EventHandler(this.SkillList_DoubleClick); this.InfoHdr.Text = "Info"; this.InfoHdr.Width = 445; this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25); this.EditBtn.DisplayStyle = ToolStripItemDisplayStyle.Text; this.EditBtn.ImageTransparentColor = Color.Magenta; this.EditBtn.Name = "EditBtn"; this.EditBtn.Size = new System.Drawing.Size(128, 22); this.EditBtn.Text = "Skill Challenge Builder"; this.EditBtn.Click += new EventHandler(this.EditBtn_Click); this.LocationBtn.DisplayStyle = ToolStripItemDisplayStyle.Text; this.LocationBtn.ImageTransparentColor = Color.Magenta; this.LocationBtn.Name = "LocationBtn"; this.LocationBtn.Size = new System.Drawing.Size(103, 22); this.LocationBtn.Text = "Set Map Location"; this.LocationBtn.Click += new EventHandler(this.LocationBtn_Click); this.ChooseBtn.DisplayStyle = ToolStripItemDisplayStyle.Text; this.ChooseBtn.ImageTransparentColor = Color.Magenta; this.ChooseBtn.Name = "ChooseBtn"; this.ChooseBtn.Size = new System.Drawing.Size(136, 22); this.ChooseBtn.Text = "Use Standard Challenge"; this.ChooseBtn.Click += new EventHandler(this.ChooseBtn_Click); this.AddLibraryBtn.DisplayStyle = ToolStripItemDisplayStyle.Text; this.AddLibraryBtn.ImageTransparentColor = Color.Magenta; this.AddLibraryBtn.Name = "AddLibraryBtn"; this.AddLibraryBtn.Size = new System.Drawing.Size(86, 22); this.AddLibraryBtn.Text = "Add to Library"; this.AddLibraryBtn.Click += new EventHandler(this.AddLibraryBtn_Click); base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; base.Controls.Add(this.SkillList); base.Controls.Add(this.Toolbar); base.Name = "SkillChallengePanel"; base.Size = new System.Drawing.Size(520, 180); this.Toolbar.ResumeLayout(false); this.Toolbar.PerformLayout(); base.ResumeLayout(false); base.PerformLayout(); }
private void InitializeComponent() { ListViewGroup listViewGroup = new ListViewGroup("Class Features", HorizontalAlignment.Left); ListViewGroup listViewGroup1 = new ListViewGroup("Heroic Tier", HorizontalAlignment.Left); ListViewGroup listViewGroup2 = new ListViewGroup("Paragon Tier", HorizontalAlignment.Left); ListViewGroup listViewGroup3 = new ListViewGroup("Epic Tier", HorizontalAlignment.Left); ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(OptionClassForm)); this.OKBtn = new Button(); this.CancelBtn = new Button(); this.NameLbl = new Label(); this.NameBox = new TextBox(); this.RoleLbl = new Label(); this.RoleBox = new TextBox(); this.PowerSourceLbl = new Label(); this.PowerSourceBox = new TextBox(); this.Pages = new TabControl(); this.GeneralPage = new TabPage(); this.SurgeBox = new NumericUpDown(); this.SurgeLbl = new Label(); this.HPSubsequentBox = new NumericUpDown(); this.HPSubsequentLbl = new Label(); this.HPFirstBox = new NumericUpDown(); this.HPFirstLbl = new Label(); this.KeyAbilityBox = new TextBox(); this.KeyAbilityLbl = new Label(); this.ProficiencyPage = new TabPage(); this.SkillBox = new TextBox(); this.SkillLbl = new Label(); this.DefencesBox = new TextBox(); this.DefencesLbl = new Label(); this.ImplementBox = new TextBox(); this.ImplementLbl = new Label(); this.WeaponBox = new TextBox(); this.WeaponLbl = new Label(); this.ArmourBox = new TextBox(); this.ArmourLbl = new Label(); this.DescriptionPage = new TabPage(); this.QuoteBox = new TextBox(); this.QuoteLbl = new Label(); this.DescBox = new TextBox(); this.OverviewPage = new TabPage(); this.RacesBox = new TextBox(); this.RacesLbl = new Label(); this.ReligionBox = new TextBox(); this.ReligionLbl = new Label(); this.CharacteristicsBox = new TextBox(); this.CharacteristicsLbl = new Label(); this.LevelPage = new TabPage(); this.LevelList = new ListView(); this.LevelHdr = new ColumnHeader(); this.LevelToolbar = new ToolStrip(); this.EditBtn = new ToolStripButton(); this.Pages.SuspendLayout(); this.GeneralPage.SuspendLayout(); ((ISupportInitialize)this.SurgeBox).BeginInit(); ((ISupportInitialize)this.HPSubsequentBox).BeginInit(); ((ISupportInitialize)this.HPFirstBox).BeginInit(); this.ProficiencyPage.SuspendLayout(); this.DescriptionPage.SuspendLayout(); this.OverviewPage.SuspendLayout(); this.LevelPage.SuspendLayout(); this.LevelToolbar.SuspendLayout(); base.SuspendLayout(); this.OKBtn.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; this.OKBtn.DialogResult = System.Windows.Forms.DialogResult.OK; this.OKBtn.Location = new Point(205, 300); 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(286, 300); 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.NameLbl.AutoSize = true; this.NameLbl.Location = new Point(6, 9); 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, 6); this.NameBox.Name = "NameBox"; this.NameBox.Size = new System.Drawing.Size(224, 20); this.NameBox.TabIndex = 1; this.RoleLbl.AutoSize = true; this.RoleLbl.Location = new Point(6, 35); this.RoleLbl.Name = "RoleLbl"; this.RoleLbl.Size = new System.Drawing.Size(32, 13); this.RoleLbl.TabIndex = 2; this.RoleLbl.Text = "Role:"; this.RoleBox.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; this.RoleBox.Location = new Point(94, 32); this.RoleBox.Multiline = true; this.RoleBox.Name = "RoleBox"; this.RoleBox.ScrollBars = ScrollBars.Vertical; this.RoleBox.Size = new System.Drawing.Size(224, 51); this.RoleBox.TabIndex = 3; this.PowerSourceLbl.AutoSize = true; this.PowerSourceLbl.Location = new Point(6, 92); this.PowerSourceLbl.Name = "PowerSourceLbl"; this.PowerSourceLbl.Size = new System.Drawing.Size(77, 13); this.PowerSourceLbl.TabIndex = 4; this.PowerSourceLbl.Text = "Power Source:"; this.PowerSourceBox.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; this.PowerSourceBox.Location = new Point(94, 89); this.PowerSourceBox.Multiline = true; this.PowerSourceBox.Name = "PowerSourceBox"; this.PowerSourceBox.ScrollBars = ScrollBars.Vertical; this.PowerSourceBox.Size = new System.Drawing.Size(224, 51); this.PowerSourceBox.TabIndex = 5; this.Pages.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; this.Pages.Controls.Add(this.GeneralPage); this.Pages.Controls.Add(this.ProficiencyPage); this.Pages.Controls.Add(this.DescriptionPage); this.Pages.Controls.Add(this.OverviewPage); this.Pages.Controls.Add(this.LevelPage); this.Pages.Location = new Point(12, 12); this.Pages.Name = "Pages"; this.Pages.SelectedIndex = 0; this.Pages.Size = new System.Drawing.Size(349, 282); this.Pages.TabIndex = 0; this.GeneralPage.Controls.Add(this.SurgeBox); this.GeneralPage.Controls.Add(this.SurgeLbl); this.GeneralPage.Controls.Add(this.HPSubsequentBox); this.GeneralPage.Controls.Add(this.HPSubsequentLbl); this.GeneralPage.Controls.Add(this.HPFirstBox); this.GeneralPage.Controls.Add(this.HPFirstLbl); this.GeneralPage.Controls.Add(this.KeyAbilityBox); this.GeneralPage.Controls.Add(this.KeyAbilityLbl); this.GeneralPage.Controls.Add(this.PowerSourceBox); this.GeneralPage.Controls.Add(this.PowerSourceLbl); this.GeneralPage.Controls.Add(this.RoleBox); this.GeneralPage.Controls.Add(this.RoleLbl); this.GeneralPage.Controls.Add(this.NameBox); this.GeneralPage.Controls.Add(this.NameLbl); this.GeneralPage.Location = new Point(4, 22); this.GeneralPage.Name = "GeneralPage"; this.GeneralPage.Padding = new System.Windows.Forms.Padding(3); this.GeneralPage.Size = new System.Drawing.Size(341, 256); this.GeneralPage.TabIndex = 0; this.GeneralPage.Text = "General"; this.GeneralPage.UseVisualStyleBackColor = true; this.SurgeBox.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; this.SurgeBox.Location = new Point(94, 224); this.SurgeBox.Name = "SurgeBox"; this.SurgeBox.Size = new System.Drawing.Size(224, 20); this.SurgeBox.TabIndex = 13; this.SurgeLbl.AutoSize = true; this.SurgeLbl.Location = new Point(6, 226); this.SurgeLbl.Name = "SurgeLbl"; this.SurgeLbl.Size = new System.Drawing.Size(82, 13); this.SurgeLbl.TabIndex = 12; this.SurgeLbl.Text = "Healing Surges:"; this.HPSubsequentBox.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; this.HPSubsequentBox.Location = new Point(94, 198); this.HPSubsequentBox.Name = "HPSubsequentBox"; this.HPSubsequentBox.Size = new System.Drawing.Size(224, 20); this.HPSubsequentBox.TabIndex = 11; this.HPSubsequentLbl.AutoSize = true; this.HPSubsequentLbl.Location = new Point(6, 200); this.HPSubsequentLbl.Name = "HPSubsequentLbl"; this.HPSubsequentLbl.Size = new System.Drawing.Size(74, 13); this.HPSubsequentLbl.TabIndex = 10; this.HPSubsequentLbl.Text = "HP (per level):"; this.HPFirstBox.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; this.HPFirstBox.Location = new Point(94, 172); this.HPFirstBox.Name = "HPFirstBox"; this.HPFirstBox.Size = new System.Drawing.Size(224, 20); this.HPFirstBox.TabIndex = 9; this.HPFirstLbl.AutoSize = true; this.HPFirstLbl.Location = new Point(6, 174); this.HPFirstLbl.Name = "HPFirstLbl"; this.HPFirstLbl.Size = new System.Drawing.Size(75, 13); this.HPFirstLbl.TabIndex = 8; this.HPFirstLbl.Text = "HP (first level):"; this.KeyAbilityBox.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; this.KeyAbilityBox.Location = new Point(94, 146); this.KeyAbilityBox.Name = "KeyAbilityBox"; this.KeyAbilityBox.Size = new System.Drawing.Size(224, 20); this.KeyAbilityBox.TabIndex = 7; this.KeyAbilityLbl.AutoSize = true; this.KeyAbilityLbl.Location = new Point(6, 149); this.KeyAbilityLbl.Name = "KeyAbilityLbl"; this.KeyAbilityLbl.Size = new System.Drawing.Size(66, 13); this.KeyAbilityLbl.TabIndex = 6; this.KeyAbilityLbl.Text = "Key Abilities:"; this.ProficiencyPage.Controls.Add(this.SkillBox); this.ProficiencyPage.Controls.Add(this.SkillLbl); this.ProficiencyPage.Controls.Add(this.DefencesBox); this.ProficiencyPage.Controls.Add(this.DefencesLbl); this.ProficiencyPage.Controls.Add(this.ImplementBox); this.ProficiencyPage.Controls.Add(this.ImplementLbl); this.ProficiencyPage.Controls.Add(this.WeaponBox); this.ProficiencyPage.Controls.Add(this.WeaponLbl); this.ProficiencyPage.Controls.Add(this.ArmourBox); this.ProficiencyPage.Controls.Add(this.ArmourLbl); this.ProficiencyPage.Location = new Point(4, 22); this.ProficiencyPage.Name = "ProficiencyPage"; this.ProficiencyPage.Padding = new System.Windows.Forms.Padding(3); this.ProficiencyPage.Size = new System.Drawing.Size(341, 256); this.ProficiencyPage.TabIndex = 1; this.ProficiencyPage.Text = "Proficiencies"; this.ProficiencyPage.UseVisualStyleBackColor = true; this.SkillBox.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; this.SkillBox.Location = new Point(91, 185); this.SkillBox.Multiline = true; this.SkillBox.Name = "SkillBox"; this.SkillBox.ScrollBars = ScrollBars.Vertical; this.SkillBox.Size = new System.Drawing.Size(237, 65); this.SkillBox.TabIndex = 9; this.SkillLbl.Location = new Point(6, 188); this.SkillLbl.Name = "SkillLbl"; this.SkillLbl.Size = new System.Drawing.Size(79, 62); this.SkillLbl.TabIndex = 8; this.SkillLbl.Text = "Trained Skills:"; this.DefencesBox.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; this.DefencesBox.Location = new Point(91, 159); this.DefencesBox.Name = "DefencesBox"; this.DefencesBox.Size = new System.Drawing.Size(237, 20); this.DefencesBox.TabIndex = 7; this.DefencesLbl.AutoSize = true; this.DefencesLbl.Location = new Point(6, 162); this.DefencesLbl.Name = "DefencesLbl"; this.DefencesLbl.Size = new System.Drawing.Size(56, 13); this.DefencesLbl.TabIndex = 6; this.DefencesLbl.Text = "Defences:"; this.ImplementBox.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; this.ImplementBox.Location = new Point(91, 108); this.ImplementBox.Multiline = true; this.ImplementBox.Name = "ImplementBox"; this.ImplementBox.ScrollBars = ScrollBars.Vertical; this.ImplementBox.Size = new System.Drawing.Size(237, 45); this.ImplementBox.TabIndex = 5; this.ImplementLbl.Location = new Point(6, 111); this.ImplementLbl.Name = "ImplementLbl"; this.ImplementLbl.Size = new System.Drawing.Size(79, 42); this.ImplementLbl.TabIndex = 4; this.ImplementLbl.Text = "Implements:"; this.WeaponBox.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; this.WeaponBox.Location = new Point(91, 57); this.WeaponBox.Multiline = true; this.WeaponBox.Name = "WeaponBox"; this.WeaponBox.ScrollBars = ScrollBars.Vertical; this.WeaponBox.Size = new System.Drawing.Size(237, 45); this.WeaponBox.TabIndex = 3; this.WeaponLbl.Location = new Point(6, 60); this.WeaponLbl.Name = "WeaponLbl"; this.WeaponLbl.Size = new System.Drawing.Size(79, 42); this.WeaponLbl.TabIndex = 2; this.WeaponLbl.Text = "Weapon Proficiencies:"; this.ArmourBox.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; this.ArmourBox.Location = new Point(91, 6); this.ArmourBox.Multiline = true; this.ArmourBox.Name = "ArmourBox"; this.ArmourBox.ScrollBars = ScrollBars.Vertical; this.ArmourBox.Size = new System.Drawing.Size(237, 45); this.ArmourBox.TabIndex = 1; this.ArmourLbl.Location = new Point(6, 9); this.ArmourLbl.Name = "ArmourLbl"; this.ArmourLbl.Size = new System.Drawing.Size(79, 42); this.ArmourLbl.TabIndex = 0; this.ArmourLbl.Text = "Armour Proficiencies:"; this.DescriptionPage.Controls.Add(this.QuoteBox); this.DescriptionPage.Controls.Add(this.QuoteLbl); this.DescriptionPage.Controls.Add(this.DescBox); this.DescriptionPage.Location = new Point(4, 22); this.DescriptionPage.Name = "DescriptionPage"; this.DescriptionPage.Padding = new System.Windows.Forms.Padding(3); this.DescriptionPage.Size = new System.Drawing.Size(341, 256); this.DescriptionPage.TabIndex = 2; this.DescriptionPage.Text = "Description"; this.DescriptionPage.UseVisualStyleBackColor = true; this.QuoteBox.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; this.QuoteBox.Location = new Point(51, 230); this.QuoteBox.Name = "QuoteBox"; this.QuoteBox.Size = new System.Drawing.Size(284, 20); this.QuoteBox.TabIndex = 5; this.QuoteLbl.Anchor = AnchorStyles.Bottom | AnchorStyles.Left; this.QuoteLbl.AutoSize = true; this.QuoteLbl.Location = new Point(6, 233); this.QuoteLbl.Name = "QuoteLbl"; this.QuoteLbl.Size = new System.Drawing.Size(39, 13); this.QuoteLbl.TabIndex = 4; this.QuoteLbl.Text = "Quote:"; this.DescBox.AcceptsReturn = true; this.DescBox.AcceptsTab = true; this.DescBox.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; this.DescBox.Location = new Point(6, 6); this.DescBox.Multiline = true; this.DescBox.Name = "DescBox"; this.DescBox.ScrollBars = ScrollBars.Vertical; this.DescBox.Size = new System.Drawing.Size(329, 218); this.DescBox.TabIndex = 3; this.OverviewPage.Controls.Add(this.RacesBox); this.OverviewPage.Controls.Add(this.RacesLbl); this.OverviewPage.Controls.Add(this.ReligionBox); this.OverviewPage.Controls.Add(this.ReligionLbl); this.OverviewPage.Controls.Add(this.CharacteristicsBox); this.OverviewPage.Controls.Add(this.CharacteristicsLbl); 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(341, 256); this.OverviewPage.TabIndex = 3; this.OverviewPage.Text = "Overview"; this.OverviewPage.UseVisualStyleBackColor = true; this.RacesBox.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; this.RacesBox.Location = new Point(91, 199); this.RacesBox.Multiline = true; this.RacesBox.Name = "RacesBox"; this.RacesBox.ScrollBars = ScrollBars.Vertical; this.RacesBox.Size = new System.Drawing.Size(237, 51); this.RacesBox.TabIndex = 5; this.RacesLbl.Anchor = AnchorStyles.Bottom | AnchorStyles.Left; this.RacesLbl.AutoSize = true; this.RacesLbl.Location = new Point(6, 202); this.RacesLbl.Name = "RacesLbl"; this.RacesLbl.Size = new System.Drawing.Size(41, 13); this.RacesLbl.TabIndex = 4; this.RacesLbl.Text = "Races:"; this.ReligionBox.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; this.ReligionBox.Location = new Point(91, 142); this.ReligionBox.Multiline = true; this.ReligionBox.Name = "ReligionBox"; this.ReligionBox.ScrollBars = ScrollBars.Vertical; this.ReligionBox.Size = new System.Drawing.Size(237, 51); this.ReligionBox.TabIndex = 3; this.ReligionLbl.Anchor = AnchorStyles.Bottom | AnchorStyles.Left; this.ReligionLbl.AutoSize = true; this.ReligionLbl.Location = new Point(6, 145); this.ReligionLbl.Name = "ReligionLbl"; this.ReligionLbl.Size = new System.Drawing.Size(48, 13); this.ReligionLbl.TabIndex = 2; this.ReligionLbl.Text = "Religion:"; this.CharacteristicsBox.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; this.CharacteristicsBox.Location = new Point(91, 6); this.CharacteristicsBox.Multiline = true; this.CharacteristicsBox.Name = "CharacteristicsBox"; this.CharacteristicsBox.ScrollBars = ScrollBars.Vertical; this.CharacteristicsBox.Size = new System.Drawing.Size(237, 130); this.CharacteristicsBox.TabIndex = 1; this.CharacteristicsLbl.AutoSize = true; this.CharacteristicsLbl.Location = new Point(6, 9); this.CharacteristicsLbl.Name = "CharacteristicsLbl"; this.CharacteristicsLbl.Size = new System.Drawing.Size(79, 13); this.CharacteristicsLbl.TabIndex = 0; this.CharacteristicsLbl.Text = "Characteristics:"; this.LevelPage.Controls.Add(this.LevelList); this.LevelPage.Controls.Add(this.LevelToolbar); this.LevelPage.Location = new Point(4, 22); this.LevelPage.Name = "LevelPage"; this.LevelPage.Padding = new System.Windows.Forms.Padding(3); this.LevelPage.Size = new System.Drawing.Size(341, 256); this.LevelPage.TabIndex = 4; this.LevelPage.Text = "Levels"; this.LevelPage.UseVisualStyleBackColor = true; this.LevelList.Columns.AddRange(new ColumnHeader[] { this.LevelHdr }); this.LevelList.Dock = DockStyle.Fill; this.LevelList.FullRowSelect = true; listViewGroup.Header = "Class Features"; listViewGroup.Name = "listViewGroup1"; listViewGroup1.Header = "Heroic Tier"; listViewGroup1.Name = "listViewGroup2"; listViewGroup2.Header = "Paragon Tier"; listViewGroup2.Name = "listViewGroup3"; listViewGroup3.Header = "Epic Tier"; listViewGroup3.Name = "listViewGroup4"; ListViewGroupCollection groups = this.LevelList.Groups; ListViewGroup[] listViewGroupArray = new ListViewGroup[] { listViewGroup, listViewGroup1, listViewGroup2, listViewGroup3 }; groups.AddRange(listViewGroupArray); this.LevelList.HeaderStyle = ColumnHeaderStyle.Nonclickable; this.LevelList.HideSelection = false; this.LevelList.Location = new Point(3, 28); this.LevelList.MultiSelect = false; this.LevelList.Name = "LevelList"; this.LevelList.Size = new System.Drawing.Size(335, 225); this.LevelList.TabIndex = 1; this.LevelList.UseCompatibleStateImageBehavior = false; this.LevelList.View = View.Details; this.LevelList.DoubleClick += new EventHandler(this.EditBtn_Click); this.LevelHdr.Text = "Level"; this.LevelHdr.Width = 300; this.LevelToolbar.Items.AddRange(new ToolStripItem[] { this.EditBtn }); this.LevelToolbar.Location = new Point(3, 3); this.LevelToolbar.Name = "LevelToolbar"; this.LevelToolbar.Size = new System.Drawing.Size(335, 25); this.LevelToolbar.TabIndex = 0; this.LevelToolbar.Text = "toolStrip1"; 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); 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(373, 335); base.Controls.Add(this.Pages); base.Controls.Add(this.CancelBtn); base.Controls.Add(this.OKBtn); base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "OptionClassForm"; base.ShowIcon = false; base.ShowInTaskbar = false; base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; base.StartPosition = FormStartPosition.CenterParent; this.Text = "Class"; this.Pages.ResumeLayout(false); this.GeneralPage.ResumeLayout(false); this.GeneralPage.PerformLayout(); ((ISupportInitialize)this.SurgeBox).EndInit(); ((ISupportInitialize)this.HPSubsequentBox).EndInit(); ((ISupportInitialize)this.HPFirstBox).EndInit(); this.ProficiencyPage.ResumeLayout(false); this.ProficiencyPage.PerformLayout(); this.DescriptionPage.ResumeLayout(false); this.DescriptionPage.PerformLayout(); this.OverviewPage.ResumeLayout(false); this.OverviewPage.PerformLayout(); this.LevelPage.ResumeLayout(false); this.LevelPage.PerformLayout(); this.LevelToolbar.ResumeLayout(false); this.LevelToolbar.PerformLayout(); 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; ListViewGroup listViewGroup = new ListViewGroup("Skill DCs", HorizontalAlignment.Left); ListViewGroup listViewGroup1 = new ListViewGroup("Aid Another", HorizontalAlignment.Left); ListViewGroup listViewGroup2 = new ListViewGroup("Damage Expressions", HorizontalAlignment.Left); ListViewGroup listViewGroup3 = new ListViewGroup("Monster Knowledge", HorizontalAlignment.Left); this.LevelBox = new NumericUpDown(); this.LevelLbl = new Label(); this.SkillList = new ListView(); this.DiffHdr = new ColumnHeader(); this.DCHdr = new ColumnHeader(); ((ISupportInitialize)this.LevelBox).BeginInit(); base.SuspendLayout(); this.LevelBox.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; this.LevelBox.Location = new Point(45, 3); 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(214, 20); this.LevelBox.TabIndex = 10; 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(3, 5); this.LevelLbl.Name = "LevelLbl"; this.LevelLbl.Size = new System.Drawing.Size(36, 13); this.LevelLbl.TabIndex = 9; this.LevelLbl.Text = "Level:"; 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; listViewGroup.Header = "Skill DCs"; listViewGroup.Name = "listViewGroup1"; listViewGroup1.Header = "Aid Another"; listViewGroup1.Name = "listViewGroup2"; listViewGroup2.Header = "Damage Expressions"; listViewGroup2.Name = "listViewGroup3"; listViewGroup3.Header = "Monster Knowledge"; listViewGroup3.Name = "listViewGroup4"; ListViewGroupCollection groups = this.SkillList.Groups; ListViewGroup[] listViewGroupArray = new ListViewGroup[] { listViewGroup, listViewGroup1, listViewGroup2, listViewGroup3 }; groups.AddRange(listViewGroupArray); this.SkillList.HeaderStyle = ColumnHeaderStyle.Nonclickable; this.SkillList.HideSelection = false; this.SkillList.Location = new Point(3, 29); this.SkillList.MultiSelect = false; this.SkillList.Name = "SkillList"; this.SkillList.Size = new System.Drawing.Size(256, 252); this.SkillList.TabIndex = 0; this.SkillList.UseCompatibleStateImageBehavior = false; this.SkillList.View = View.Details; this.SkillList.DoubleClick += new EventHandler(this.DamageList_DoubleClick); this.DiffHdr.Text = "Information"; this.DiffHdr.Width = 135; this.DCHdr.Text = "Value"; this.DCHdr.TextAlign = HorizontalAlignment.Right; this.DCHdr.Width = 94; base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; base.Controls.Add(this.SkillList); base.Controls.Add(this.LevelBox); base.Controls.Add(this.LevelLbl); base.Name = "InfoPanel"; base.Size = new System.Drawing.Size(262, 284); ((ISupportInitialize)this.LevelBox).EndInit(); base.ResumeLayout(false); base.PerformLayout(); }