using System; using System.Reflection; using System.Windows.Forms; using System.ComponentModel; using System.Data; using System.IO; using System.Collections.Generic; using System.Xml; using System.Text; using System.Drawing; using Advanced_Combat_Tracker; [assembly: AssemblyTitle("Parse by Category or # of Players")] [assembly: AssemblyDescription("Display the Top Performers in a Selected Set of Categories Back-To-Back")] [assembly: AssemblyVersion("3.0.1.0")] /* * Version - Date.Time - Notes * ======== =============== ========================================================== * 1.0.0.0 04.19.08.00.00 Initial Release * 2.0.0.0 04.30.08.11.10 Major Changes. Fixed Save to file location. All * Functionality is working, however if some parts are * somewhat buggy due to lack of complete testing/coding. * * 2.0.1.0 04.30.08.13.30 Commented Some of the Code * 3.0.0.0 05.05.08.11.10 DataColumn Specification so Sort occurs as appropriate * (Integer instead of String) * 3.0.1.0 05.20.08.15.20 Fixed Formatting for HPS/Exthps * */ namespace ZeroSum_ACT_Plugins { public class ByCategoryOrPlayerCount_ACT_Plugin : IActPluginV1 { Label lblStatus; //Default label used for tracing the status of the plugin TabPage tpScreen; // Page tab for the Plugin string xmlFileName = Application.StartupPath + "\\Config\\ParseByCategoryNumberofPlayers.config.xml"; // XML File to use for Configuration will be saved in the ACT Program's Config Directory string LastSelectedSection = ""; // Last Section Selected is the last selected item selection (Section 1, section 2, etc) string mocException = ""; // Fake Exception String to avoid "ex Not Used" error TextBox txtPopped_frmPop; // Textbox Used for Form Pop-Up private bool AllowLoad = true; // Booleans to determine if a section was used once to keep it from being used repeatedly private bool AllowSave = true; // Booleans to determine if a section was used once to keep it from being used repeatedly private bool AllowValueChanged = true; // Booleans to determine if a section was used once to keep it from being used repeatedly private bool AllowLostFocus = true; // Booleans to determine if a section was used once to keep it from being used repeatedly private bool AllowTextChanged = true; // Booleans to determine if a section was used once to keep it from being used repeatedly private bool AllowCheckedChanged = true; // Booleans to determine if a section was used once to keep it from being used repeatedly #region UI components // UI Components used by the main Part of the Plugin private System.Windows.Forms.Panel pnlMain; #region Form Components private System.Windows.Forms.GroupBox gbSection2; private System.Windows.Forms.Label lblSection2_MaxPlayers; private System.Windows.Forms.NumericUpDown nudSection2_MaxPlayers; private System.Windows.Forms.Label lblSection2_SortBy; private System.Windows.Forms.Label lblSection2_PerPlayer; private System.Windows.Forms.Label lblSection2_Header; private System.Windows.Forms.TextBox txtSection2_PerPlayer; private System.Windows.Forms.TextBox txtSection2_Header; private System.Windows.Forms.CheckBox chkSection2_Unlimited; private System.Windows.Forms.CheckBox chkSection2_Enabled; private System.Windows.Forms.ComboBox cboxSection2_SortBy; private System.Windows.Forms.Button btnSection2_Delete; private System.Windows.Forms.Button btnSection2_MoveUp; private System.Windows.Forms.Button btnSection2_MoveDown; private System.Windows.Forms.Button btnAddNewSection; private System.Windows.Forms.Label lblSections; private System.Windows.Forms.TreeView tvSections; private System.Windows.Forms.TextBox txtSection2_ID; private System.Windows.Forms.GroupBox gbExportSettings; private System.Windows.Forms.Label lblExportToFile; private System.Windows.Forms.TextBox txtExportToFile; private System.Windows.Forms.ComboBox cboxSection2_PrefixLine; private System.Windows.Forms.Label lblSection2_PrefixLine; private System.Windows.Forms.GroupBox gbSection1; private System.Windows.Forms.ComboBox cboxSection1_PrefixLine; private System.Windows.Forms.Label lblSection1_PrefixLine; private System.Windows.Forms.TextBox txtSection1_ID; private System.Windows.Forms.Button btnSection1_Delete; private System.Windows.Forms.Button btnSection1_MoveUp; private System.Windows.Forms.Button btnSection1_MoveDown; private System.Windows.Forms.ComboBox cboxSection1_SortBy; private System.Windows.Forms.CheckBox chkSection1_Enabled; private System.Windows.Forms.Label lblSection1_MaxPlayers; private System.Windows.Forms.NumericUpDown nudSection1_MaxPlayers; private System.Windows.Forms.Label lblSection1_SortBy; private System.Windows.Forms.Label lblSection1_PerPlayer; private System.Windows.Forms.Label lblSection1_Header; private System.Windows.Forms.TextBox txtSection1_PerPlayer; private System.Windows.Forms.TextBox txtSection1_Header; private System.Windows.Forms.CheckBox chkSection1_Unlimited; private System.Windows.Forms.GroupBox gbSection3; private System.Windows.Forms.ComboBox cboxSection3_PrefixLine; private System.Windows.Forms.Label lblSection3_PrefixLine; private System.Windows.Forms.TextBox txtSection3_ID; private System.Windows.Forms.Button btnSection3_Delete; private System.Windows.Forms.Button btnSection3_MoveUp; private System.Windows.Forms.Button btnSection3_MoveDown; private System.Windows.Forms.ComboBox cboxSection3_SortBy; private System.Windows.Forms.CheckBox chkSection3_Enabled; private System.Windows.Forms.Label lblSection3_MaxPlayers; private System.Windows.Forms.NumericUpDown nudSection3_MaxPlayers; private System.Windows.Forms.Label lblSection3_SortBy; private System.Windows.Forms.Label lblSection3_PerPlayer; private System.Windows.Forms.Label lblSection3_Header; private System.Windows.Forms.TextBox txtSection3_PerPlayer; private System.Windows.Forms.TextBox txtSection3_Header; private System.Windows.Forms.CheckBox chkSection3_Unlimited; private System.Windows.Forms.CheckBox chkSection1_AlliesOnly; private System.Windows.Forms.CheckBox chkSection2_AlliesOnly; private System.Windows.Forms.CheckBox chkSection3_AlliesOnly; private System.Windows.Forms.ToolTip oToolTip; #endregion //Form Components private void InitUI() { this.pnlMain = new System.Windows.Forms.Panel(); this.oToolTip = new System.Windows.Forms.ToolTip(); #region This (Panel) Components From Creator this.gbSection2 = new System.Windows.Forms.GroupBox(); this.cboxSection2_PrefixLine = new System.Windows.Forms.ComboBox(); this.lblSection2_PrefixLine = new System.Windows.Forms.Label(); this.txtSection2_ID = new System.Windows.Forms.TextBox(); this.btnSection2_Delete = new System.Windows.Forms.Button(); this.btnSection2_MoveUp = new System.Windows.Forms.Button(); this.btnSection2_MoveDown = new System.Windows.Forms.Button(); this.cboxSection2_SortBy = new System.Windows.Forms.ComboBox(); this.chkSection2_Enabled = new System.Windows.Forms.CheckBox(); this.lblSection2_MaxPlayers = new System.Windows.Forms.Label(); this.nudSection2_MaxPlayers = new System.Windows.Forms.NumericUpDown(); this.lblSection2_SortBy = new System.Windows.Forms.Label(); this.lblSection2_PerPlayer = new System.Windows.Forms.Label(); this.lblSection2_Header = new System.Windows.Forms.Label(); this.txtSection2_PerPlayer = new System.Windows.Forms.TextBox(); this.txtSection2_Header = new System.Windows.Forms.TextBox(); this.chkSection2_Unlimited = new System.Windows.Forms.CheckBox(); this.tvSections = new System.Windows.Forms.TreeView(); this.btnAddNewSection = new System.Windows.Forms.Button(); this.lblSections = new System.Windows.Forms.Label(); this.gbExportSettings = new System.Windows.Forms.GroupBox(); this.lblExportToFile = new System.Windows.Forms.Label(); this.txtExportToFile = new System.Windows.Forms.TextBox(); this.gbSection1 = new System.Windows.Forms.GroupBox(); this.cboxSection1_PrefixLine = new System.Windows.Forms.ComboBox(); this.lblSection1_PrefixLine = new System.Windows.Forms.Label(); this.txtSection1_ID = new System.Windows.Forms.TextBox(); this.btnSection1_Delete = new System.Windows.Forms.Button(); this.btnSection1_MoveUp = new System.Windows.Forms.Button(); this.btnSection1_MoveDown = new System.Windows.Forms.Button(); this.cboxSection1_SortBy = new System.Windows.Forms.ComboBox(); this.chkSection1_Enabled = new System.Windows.Forms.CheckBox(); this.lblSection1_MaxPlayers = new System.Windows.Forms.Label(); this.nudSection1_MaxPlayers = new System.Windows.Forms.NumericUpDown(); this.lblSection1_SortBy = new System.Windows.Forms.Label(); this.lblSection1_PerPlayer = new System.Windows.Forms.Label(); this.lblSection1_Header = new System.Windows.Forms.Label(); this.txtSection1_PerPlayer = new System.Windows.Forms.TextBox(); this.txtSection1_Header = new System.Windows.Forms.TextBox(); this.chkSection1_Unlimited = new System.Windows.Forms.CheckBox(); this.gbSection3 = new System.Windows.Forms.GroupBox(); this.cboxSection3_PrefixLine = new System.Windows.Forms.ComboBox(); this.lblSection3_PrefixLine = new System.Windows.Forms.Label(); this.txtSection3_ID = new System.Windows.Forms.TextBox(); this.btnSection3_Delete = new System.Windows.Forms.Button(); this.btnSection3_MoveUp = new System.Windows.Forms.Button(); this.btnSection3_MoveDown = new System.Windows.Forms.Button(); this.cboxSection3_SortBy = new System.Windows.Forms.ComboBox(); this.chkSection3_Enabled = new System.Windows.Forms.CheckBox(); this.lblSection3_MaxPlayers = new System.Windows.Forms.Label(); this.nudSection3_MaxPlayers = new System.Windows.Forms.NumericUpDown(); this.lblSection3_SortBy = new System.Windows.Forms.Label(); this.lblSection3_PerPlayer = new System.Windows.Forms.Label(); this.lblSection3_Header = new System.Windows.Forms.Label(); this.txtSection3_PerPlayer = new System.Windows.Forms.TextBox(); this.txtSection3_Header = new System.Windows.Forms.TextBox(); this.chkSection3_Unlimited = new System.Windows.Forms.CheckBox(); this.gbSection2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.nudSection2_MaxPlayers)).BeginInit(); this.gbExportSettings.SuspendLayout(); this.gbSection1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.nudSection1_MaxPlayers)).BeginInit(); this.gbSection3.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.nudSection3_MaxPlayers)).BeginInit(); this.chkSection1_AlliesOnly = new System.Windows.Forms.CheckBox(); this.chkSection2_AlliesOnly = new System.Windows.Forms.CheckBox(); this.chkSection3_AlliesOnly = new System.Windows.Forms.CheckBox(); #endregion //This (Panel) Components this.pnlMain.SuspendLayout(); tpScreen.SuspendLayout(); // Create the ToolTip and set initial values. this.oToolTip.AutoPopDelay = 5000; this.oToolTip.InitialDelay = 500; this.oToolTip.OwnerDraw = true; this.oToolTip.ReshowDelay = 10; this.oToolTip.Draw += new DrawToolTipEventHandler(this.oToolTip_Draw); #region ControlConfiguration From Creator // // gbSection2 // this.gbSection2.Controls.Add(this.chkSection2_AlliesOnly); this.gbSection2.Controls.Add(this.cboxSection2_PrefixLine); this.gbSection2.Controls.Add(this.lblSection2_PrefixLine); this.gbSection2.Controls.Add(this.txtSection2_ID); this.gbSection2.Controls.Add(this.btnSection2_Delete); this.gbSection2.Controls.Add(this.btnSection2_MoveUp); this.gbSection2.Controls.Add(this.btnSection2_MoveDown); this.gbSection2.Controls.Add(this.cboxSection2_SortBy); this.gbSection2.Controls.Add(this.chkSection2_Enabled); this.gbSection2.Controls.Add(this.lblSection2_MaxPlayers); this.gbSection2.Controls.Add(this.nudSection2_MaxPlayers); this.gbSection2.Controls.Add(this.lblSection2_SortBy); this.gbSection2.Controls.Add(this.lblSection2_PerPlayer); this.gbSection2.Controls.Add(this.lblSection2_Header); this.gbSection2.Controls.Add(this.txtSection2_PerPlayer); this.gbSection2.Controls.Add(this.txtSection2_Header); this.gbSection2.Controls.Add(this.chkSection2_Unlimited); this.gbSection2.Location = new System.Drawing.Point(3, 118); this.gbSection2.Name = "gbSection2"; this.gbSection2.Size = new System.Drawing.Size(535, 100); this.gbSection2.TabIndex = 1; this.gbSection2.TabStop = false; this.gbSection2.Text = "Section 2"; this.gbSection2.Visible = false; // // cboxSection2_PrefixLine // this.cboxSection2_PrefixLine.FormattingEnabled = true; this.cboxSection2_PrefixLine.Items.AddRange(new object[] { "Group", "Say", "Raid", "Guild", "Channel 1", "Channel 2", "Channel 3", "Channel 4", "Channel 5", "Channel 6", "Channel 7", "Channel 8", "Channel 9", "Channel 10", "Channel 11", "Channel 12", "Channel 13", "Channel 14", "Channel 15", "Channel 16", "Channel 17", "Channel 18", "Channel 19", "Channel 20", "tell {name}", "tell Player"}); this.cboxSection2_PrefixLine.Location = new System.Drawing.Point(361, 43); this.cboxSection2_PrefixLine.Name = "cboxSection2_PrefixLine"; this.cboxSection2_PrefixLine.Size = new System.Drawing.Size(138, 21); this.cboxSection2_PrefixLine.TabIndex = 22; // // lblSection2_PrefixLine // this.lblSection2_PrefixLine.AutoSize = true; this.lblSection2_PrefixLine.Location = new System.Drawing.Point(354, 31); this.lblSection2_PrefixLine.Name = "lblSection2_PrefixLine"; this.lblSection2_PrefixLine.Size = new System.Drawing.Size(88, 13); this.lblSection2_PrefixLine.TabIndex = 21; this.lblSection2_PrefixLine.Text = "Chat Destination:"; // // txtSection2_ID // this.txtSection2_ID.Location = new System.Drawing.Point(6, 46); this.txtSection2_ID.Name = "txtSection2_ID"; this.txtSection2_ID.Size = new System.Drawing.Size(16, 20); this.txtSection2_ID.TabIndex = 20; this.txtSection2_ID.Visible = false; // // btnSection2_Delete // this.btnSection2_Delete.Location = new System.Drawing.Point(505, 10); this.btnSection2_Delete.Name = "btnSection2_Delete"; this.btnSection2_Delete.Size = new System.Drawing.Size(25, 25); this.btnSection2_Delete.TabIndex = 18; this.btnSection2_Delete.Text = "X"; this.btnSection2_Delete.UseVisualStyleBackColor = true; // // btnSection2_MoveUp // this.btnSection2_MoveUp.Location = new System.Drawing.Point(505, 36); this.btnSection2_MoveUp.Name = "btnSection2_MoveUp"; this.btnSection2_MoveUp.Size = new System.Drawing.Size(26, 23); this.btnSection2_MoveUp.TabIndex = 17; this.btnSection2_MoveUp.Text = "▲"; this.btnSection2_MoveUp.UseVisualStyleBackColor = true; // // btnSection2_MoveDown // this.btnSection2_MoveDown.Location = new System.Drawing.Point(505, 62); this.btnSection2_MoveDown.Margin = new System.Windows.Forms.Padding(1); this.btnSection2_MoveDown.Name = "btnSection2_MoveDown"; this.btnSection2_MoveDown.Size = new System.Drawing.Size(26, 23); this.btnSection2_MoveDown.TabIndex = 16; this.btnSection2_MoveDown.Text = "▼"; this.btnSection2_MoveDown.UseVisualStyleBackColor = true; // // cboxSection2_SortBy // this.cboxSection2_SortBy.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cboxSection2_SortBy.FormattingEnabled = true; this.cboxSection2_SortBy.Location = new System.Drawing.Point(301, 68); this.cboxSection2_SortBy.Name = "cboxSection2_SortBy"; this.cboxSection2_SortBy.Size = new System.Drawing.Size(198, 21); this.cboxSection2_SortBy.TabIndex = 15; this.cboxSection2_SortBy.Items.AddRange(new object[] { "{name}", "===Damage===", "{damage}", "{damage%}", "{dps}", "{DPS}", "{extdps}", "{EXTDPS}", "===Healed===", "{healed}", "{healed%}", "{exthps}", "{EXTHPS}", "{critheals}", "{heals}", "{maxheal}", "{MAXHEAL}", "{maxhealward}", "{MAXHEALWARD}", "===Hits===", "{hits}", "{crithits}", "{misses}", "{hitfailed}", "{swings}", "{tohit}", "{TOHIT}", "{maxhit}", "{MAXHIT}", "===Misc===", "{healstaken}", "{powerdrain}", "{kills}", "{deaths}", "{date}", "{time}", "{datetime}", "===Name===", "{NAME3}", "{NAME4}", "{NAME5}", "{NAME6}", "{NAME7}", "{NAME8}", "{NAME9}", "{NAME10}", "{NAME11}", "{NAME12}", "{NAME13}", "{NAME14}", "{NAME15}"}); // // chkSection2_Enabled // this.chkSection2_Enabled.AutoSize = true; this.chkSection2_Enabled.Location = new System.Drawing.Point(434, 15); this.chkSection2_Enabled.Name = "chkSection2_Enabled"; this.chkSection2_Enabled.Size = new System.Drawing.Size(65, 17); this.chkSection2_Enabled.TabIndex = 14; this.chkSection2_Enabled.Text = "Enabled"; this.chkSection2_Enabled.UseVisualStyleBackColor = true; // // lblSection2_MaxPlayers // this.lblSection2_MaxPlayers.AutoSize = true; this.lblSection2_MaxPlayers.Location = new System.Drawing.Point(28, 72); this.lblSection2_MaxPlayers.Name = "lblSection2_MaxPlayers"; this.lblSection2_MaxPlayers.Size = new System.Drawing.Size(77, 13); this.lblSection2_MaxPlayers.TabIndex = 9; this.lblSection2_MaxPlayers.Text = "Max # Players:"; // // nudSection2_MaxPlayers // this.nudSection2_MaxPlayers.Location = new System.Drawing.Point(111, 69); this.nudSection2_MaxPlayers.Maximum = new decimal(new int[] { 24, 0, 0, 0}); this.nudSection2_MaxPlayers.Minimum = new decimal(new int[] { 1, 0, 0, 0}); this.nudSection2_MaxPlayers.Name = "nudSection2_MaxPlayers"; this.nudSection2_MaxPlayers.Size = new System.Drawing.Size(37, 20); this.nudSection2_MaxPlayers.TabIndex = 8; this.nudSection2_MaxPlayers.Value = new decimal(new int[] { 10, 0, 0, 0}); // // lblSection2_SortBy // this.lblSection2_SortBy.AutoSize = true; this.lblSection2_SortBy.Location = new System.Drawing.Point(251, 72); this.lblSection2_SortBy.Name = "lblSection2_SortBy"; this.lblSection2_SortBy.Size = new System.Drawing.Size(44, 13); this.lblSection2_SortBy.TabIndex = 7; this.lblSection2_SortBy.Text = "Sort By:"; // // lblSection2_PerPlayer // this.lblSection2_PerPlayer.AutoSize = true; this.lblSection2_PerPlayer.Location = new System.Drawing.Point(27, 44); this.lblSection2_PerPlayer.Name = "lblSection2_PerPlayer"; this.lblSection2_PerPlayer.Size = new System.Drawing.Size(58, 13); this.lblSection2_PerPlayer.TabIndex = 6; this.lblSection2_PerPlayer.Text = "Per Player:"; // // lblSection2_Header // this.lblSection2_Header.AutoSize = true; this.lblSection2_Header.Location = new System.Drawing.Point(6, 23); this.lblSection2_Header.Name = "lblSection2_Header"; this.lblSection2_Header.Size = new System.Drawing.Size(84, 13); this.lblSection2_Header.TabIndex = 5; this.lblSection2_Header.Text = "Section Header:"; // // txtSection2_PerPlayer // this.txtSection2_PerPlayer.Location = new System.Drawing.Point(91, 44); this.txtSection2_PerPlayer.Name = "txtSection2_PerPlayer"; this.txtSection2_PerPlayer.Size = new System.Drawing.Size(254, 20); this.txtSection2_PerPlayer.TabIndex = 3; // // txtSection2_Header // this.txtSection2_Header.Location = new System.Drawing.Point(92, 20); this.txtSection2_Header.Name = "txtSection2_Header"; this.txtSection2_Header.Size = new System.Drawing.Size(253, 20); this.txtSection2_Header.TabIndex = 2; // // chkSection2_Unlimited // this.chkSection2_Unlimited.AutoSize = true; this.chkSection2_Unlimited.Location = new System.Drawing.Point(154, 70); this.chkSection2_Unlimited.Name = "chkSection2_Unlimited"; this.chkSection2_Unlimited.Size = new System.Drawing.Size(69, 17); this.chkSection2_Unlimited.TabIndex = 1; this.chkSection2_Unlimited.Text = "Unlimited"; this.chkSection2_Unlimited.UseVisualStyleBackColor = true; // // tvSections // this.tvSections.AllowDrop = true; this.tvSections.Location = new System.Drawing.Point(551, 36); this.tvSections.Name = "tvSections"; this.tvSections.Size = new System.Drawing.Size(206, 250); this.tvSections.TabIndex = 2; // // btnAddNewSection // this.btnAddNewSection.Location = new System.Drawing.Point(614, 296); this.btnAddNewSection.Name = "btnAddNewSection"; this.btnAddNewSection.Size = new System.Drawing.Size(143, 23); this.btnAddNewSection.TabIndex = 4; this.btnAddNewSection.Text = "Add/Insert New Section"; this.btnAddNewSection.UseVisualStyleBackColor = true; // // lblSections // this.lblSections.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.lblSections.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblSections.Location = new System.Drawing.Point(551, 12); this.lblSections.Name = "lblSections"; this.lblSections.Size = new System.Drawing.Size(206, 21); this.lblSections.TabIndex = 5; this.lblSections.Text = "Sections"; this.lblSections.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // gbExportSettings // this.gbExportSettings.Controls.Add(this.lblExportToFile); this.gbExportSettings.Controls.Add(this.txtExportToFile); this.gbExportSettings.Location = new System.Drawing.Point(9, 329); this.gbExportSettings.Name = "gbExportSettings"; this.gbExportSettings.Size = new System.Drawing.Size(748, 46); this.gbExportSettings.TabIndex = 10; this.gbExportSettings.TabStop = false; this.gbExportSettings.Text = "Export Settings"; // // lblExportToFile // this.lblExportToFile.AutoSize = true; this.lblExportToFile.Location = new System.Drawing.Point(9, 20); this.lblExportToFile.Name = "lblExportToFile"; this.lblExportToFile.Size = new System.Drawing.Size(71, 13); this.lblExportToFile.TabIndex = 11; this.lblExportToFile.Text = "Export to File:"; // // txtExportToFile // this.txtExportToFile.Location = new System.Drawing.Point(86, 17); this.txtExportToFile.Name = "txtExportToFile"; this.txtExportToFile.Size = new System.Drawing.Size(533, 20); this.txtExportToFile.TabIndex = 10; // // gbSection1 // this.gbSection1.Controls.Add(this.chkSection1_AlliesOnly); this.gbSection1.Controls.Add(this.cboxSection1_PrefixLine); this.gbSection1.Controls.Add(this.lblSection1_PrefixLine); this.gbSection1.Controls.Add(this.txtSection1_ID); this.gbSection1.Controls.Add(this.btnSection1_Delete); this.gbSection1.Controls.Add(this.btnSection1_MoveUp); this.gbSection1.Controls.Add(this.btnSection1_MoveDown); this.gbSection1.Controls.Add(this.cboxSection1_SortBy); this.gbSection1.Controls.Add(this.chkSection1_Enabled); this.gbSection1.Controls.Add(this.lblSection1_MaxPlayers); this.gbSection1.Controls.Add(this.nudSection1_MaxPlayers); this.gbSection1.Controls.Add(this.lblSection1_SortBy); this.gbSection1.Controls.Add(this.lblSection1_PerPlayer); this.gbSection1.Controls.Add(this.lblSection1_Header); this.gbSection1.Controls.Add(this.txtSection1_PerPlayer); this.gbSection1.Controls.Add(this.txtSection1_Header); this.gbSection1.Controls.Add(this.chkSection1_Unlimited); this.gbSection1.Location = new System.Drawing.Point(3, 12); this.gbSection1.Name = "gbSection1"; this.gbSection1.Size = new System.Drawing.Size(535, 100); this.gbSection1.TabIndex = 11; this.gbSection1.TabStop = false; this.gbSection1.Text = "Section 1"; this.gbSection1.Visible = false; // // cboxSection1_PrefixLine // this.cboxSection1_PrefixLine.FormattingEnabled = true; this.cboxSection1_PrefixLine.Items.AddRange(new object[] { "Group", "Say", "Raid", "Guild", "Channel 1", "Channel 2", "Channel 3", "Channel 4", "Channel 5", "Channel 6", "Channel 7", "Channel 8", "Channel 9", "Channel 10", "Channel 11", "Channel 12", "Channel 13", "Channel 14", "Channel 15", "Channel 16", "Channel 17", "Channel 18", "Channel 19", "Channel 20", "tell {name}", "tell Player"}); this.cboxSection1_PrefixLine.Location = new System.Drawing.Point(361, 43); this.cboxSection1_PrefixLine.Name = "cboxSection1_PrefixLine"; this.cboxSection1_PrefixLine.Size = new System.Drawing.Size(138, 21); this.cboxSection1_PrefixLine.TabIndex = 22; // // lblSection1_PrefixLine // this.lblSection1_PrefixLine.AutoSize = true; this.lblSection1_PrefixLine.Location = new System.Drawing.Point(354, 31); this.lblSection1_PrefixLine.Name = "lblSection1_PrefixLine"; this.lblSection1_PrefixLine.Size = new System.Drawing.Size(88, 13); this.lblSection1_PrefixLine.TabIndex = 21; this.lblSection1_PrefixLine.Text = "Chat Destination:"; // // txtSection1_ID // this.txtSection1_ID.Location = new System.Drawing.Point(6, 46); this.txtSection1_ID.Name = "txtSection1_ID"; this.txtSection1_ID.Size = new System.Drawing.Size(16, 20); this.txtSection1_ID.TabIndex = 20; this.txtSection1_ID.Visible = false; // // btnSection1_Delete // this.btnSection1_Delete.Location = new System.Drawing.Point(505, 10); this.btnSection1_Delete.Name = "btnSection1_Delete"; this.btnSection1_Delete.Size = new System.Drawing.Size(25, 25); this.btnSection1_Delete.TabIndex = 18; this.btnSection1_Delete.Text = "X"; this.btnSection1_Delete.UseVisualStyleBackColor = true; // // btnSection1_MoveUp // this.btnSection1_MoveUp.Location = new System.Drawing.Point(505, 36); this.btnSection1_MoveUp.Name = "btnSection1_MoveUp"; this.btnSection1_MoveUp.Size = new System.Drawing.Size(26, 23); this.btnSection1_MoveUp.TabIndex = 17; this.btnSection1_MoveUp.Text = "▲"; this.btnSection1_MoveUp.UseVisualStyleBackColor = true; // // btnSection1_MoveDown // this.btnSection1_MoveDown.Location = new System.Drawing.Point(505, 62); this.btnSection1_MoveDown.Margin = new System.Windows.Forms.Padding(1); this.btnSection1_MoveDown.Name = "btnSection1_MoveDown"; this.btnSection1_MoveDown.Size = new System.Drawing.Size(26, 23); this.btnSection1_MoveDown.TabIndex = 16; this.btnSection1_MoveDown.Text = "▼"; this.btnSection1_MoveDown.UseVisualStyleBackColor = true; // // cboxSection1_SortBy // this.cboxSection1_SortBy.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cboxSection1_SortBy.FormattingEnabled = true; this.cboxSection1_SortBy.Location = new System.Drawing.Point(301, 68); this.cboxSection1_SortBy.Name = "cboxSection1_SortBy"; this.cboxSection1_SortBy.Size = new System.Drawing.Size(198, 21); this.cboxSection1_SortBy.TabIndex = 15; this.cboxSection1_SortBy.Items.AddRange(new object[] { "{name}", "===Damage===", "{damage}", "{damage%}", "{dps}", "{DPS}", "{extdps}", "{EXTDPS}", "===Healed===", "{healed}", "{healed%}", "{exthps}", "{EXTHPS}", "{critheals}", "{heals}", "{maxheal}", "{MAXHEAL}", "{maxhealward}", "{MAXHEALWARD}", "===Hits===", "{hits}", "{crithits}", "{misses}", "{hitfailed}", "{swings}", "{tohit}", "{TOHIT}", "{maxhit}", "{MAXHIT}", "===Misc===", "{healstaken}", "{powerdrain}", "{kills}", "{deaths}", "===Name===", "{NAME3}", "{NAME4}", "{NAME5}", "{NAME6}", "{NAME7}", "{NAME8}", "{NAME9}", "{NAME10}", "{NAME11}", "{NAME12}", "{NAME13}", "{NAME14}", "{NAME15}"}); // // chkSection1_Enabled // this.chkSection1_Enabled.AutoSize = true; this.chkSection1_Enabled.Location = new System.Drawing.Point(434, 15); this.chkSection1_Enabled.Name = "chkSection1_Enabled"; this.chkSection1_Enabled.Size = new System.Drawing.Size(65, 17); this.chkSection1_Enabled.TabIndex = 14; this.chkSection1_Enabled.Text = "Enabled"; this.chkSection1_Enabled.UseVisualStyleBackColor = true; // // lblSection1_MaxPlayers // this.lblSection1_MaxPlayers.AutoSize = true; this.lblSection1_MaxPlayers.Location = new System.Drawing.Point(28, 72); this.lblSection1_MaxPlayers.Name = "lblSection1_MaxPlayers"; this.lblSection1_MaxPlayers.Size = new System.Drawing.Size(77, 13); this.lblSection1_MaxPlayers.TabIndex = 9; this.lblSection1_MaxPlayers.Text = "Max # Players:"; // // nudSection1_MaxPlayers // this.nudSection1_MaxPlayers.Location = new System.Drawing.Point(111, 69); this.nudSection1_MaxPlayers.Maximum = new decimal(new int[] { 24, 0, 0, 0}); this.nudSection1_MaxPlayers.Minimum = new decimal(new int[] { 1, 0, 0, 0}); this.nudSection1_MaxPlayers.Name = "nudSection1_MaxPlayers"; this.nudSection1_MaxPlayers.Size = new System.Drawing.Size(37, 20); this.nudSection1_MaxPlayers.TabIndex = 8; this.nudSection1_MaxPlayers.Value = new decimal(new int[] { 10, 0, 0, 0}); // // lblSection1_SortBy // this.lblSection1_SortBy.AutoSize = true; this.lblSection1_SortBy.Location = new System.Drawing.Point(251, 72); this.lblSection1_SortBy.Name = "lblSection1_SortBy"; this.lblSection1_SortBy.Size = new System.Drawing.Size(44, 13); this.lblSection1_SortBy.TabIndex = 7; this.lblSection1_SortBy.Text = "Sort By:"; // // lblSection1_PerPlayer // this.lblSection1_PerPlayer.AutoSize = true; this.lblSection1_PerPlayer.Location = new System.Drawing.Point(27, 44); this.lblSection1_PerPlayer.Name = "lblSection1_PerPlayer"; this.lblSection1_PerPlayer.Size = new System.Drawing.Size(58, 13); this.lblSection1_PerPlayer.TabIndex = 6; this.lblSection1_PerPlayer.Text = "Per Player:"; // // lblSection1_Header // this.lblSection1_Header.AutoSize = true; this.lblSection1_Header.Location = new System.Drawing.Point(6, 23); this.lblSection1_Header.Name = "lblSection1_Header"; this.lblSection1_Header.Size = new System.Drawing.Size(84, 13); this.lblSection1_Header.TabIndex = 5; this.lblSection1_Header.Text = "Section Header:"; // // txtSection1_PerPlayer // this.txtSection1_PerPlayer.Location = new System.Drawing.Point(91, 44); this.txtSection1_PerPlayer.Name = "txtSection1_PerPlayer"; this.txtSection1_PerPlayer.Size = new System.Drawing.Size(254, 20); this.txtSection1_PerPlayer.TabIndex = 3; // // txtSection1_Header // this.txtSection1_Header.Location = new System.Drawing.Point(92, 20); this.txtSection1_Header.Name = "txtSection1_Header"; this.txtSection1_Header.Size = new System.Drawing.Size(253, 20); this.txtSection1_Header.TabIndex = 2; // // chkSection1_Unlimited // this.chkSection1_Unlimited.AutoSize = true; this.chkSection1_Unlimited.Location = new System.Drawing.Point(154, 70); this.chkSection1_Unlimited.Name = "chkSection1_Unlimited"; this.chkSection1_Unlimited.Size = new System.Drawing.Size(69, 17); this.chkSection1_Unlimited.TabIndex = 1; this.chkSection1_Unlimited.Text = "Unlimited"; this.chkSection1_Unlimited.UseVisualStyleBackColor = true; // // gbSection3 // this.gbSection3.Controls.Add(this.chkSection3_AlliesOnly); this.gbSection3.Controls.Add(this.cboxSection3_PrefixLine); this.gbSection3.Controls.Add(this.lblSection3_PrefixLine); this.gbSection3.Controls.Add(this.txtSection3_ID); this.gbSection3.Controls.Add(this.btnSection3_Delete); this.gbSection3.Controls.Add(this.btnSection3_MoveUp); this.gbSection3.Controls.Add(this.btnSection3_MoveDown); this.gbSection3.Controls.Add(this.cboxSection3_SortBy); this.gbSection3.Controls.Add(this.chkSection3_Enabled); this.gbSection3.Controls.Add(this.lblSection3_MaxPlayers); this.gbSection3.Controls.Add(this.nudSection3_MaxPlayers); this.gbSection3.Controls.Add(this.lblSection3_SortBy); this.gbSection3.Controls.Add(this.lblSection3_PerPlayer); this.gbSection3.Controls.Add(this.lblSection3_Header); this.gbSection3.Controls.Add(this.txtSection3_PerPlayer); this.gbSection3.Controls.Add(this.txtSection3_Header); this.gbSection3.Controls.Add(this.chkSection3_Unlimited); this.gbSection3.Location = new System.Drawing.Point(3, 223); this.gbSection3.Name = "gbSection3"; this.gbSection3.Size = new System.Drawing.Size(535, 100); this.gbSection3.TabIndex = 23; this.gbSection3.TabStop = false; this.gbSection3.Text = "Section 3"; this.gbSection3.Visible = false; // // cboxSection3_PrefixLine // this.cboxSection3_PrefixLine.FormattingEnabled = true; this.cboxSection3_PrefixLine.Items.AddRange(new object[] { "Group", "Say", "Raid", "Guild", "Channel 1", "Channel 2", "Channel 3", "Channel 4", "Channel 5", "Channel 6", "Channel 7", "Channel 8", "Channel 9", "Channel 10", "Channel 11", "Channel 12", "Channel 13", "Channel 14", "Channel 15", "Channel 16", "Channel 17", "Channel 18", "Channel 19", "Channel 20", "tell {name}", "tell Player"}); this.cboxSection3_PrefixLine.Location = new System.Drawing.Point(361, 43); this.cboxSection3_PrefixLine.Name = "cboxSection3_PrefixLine"; this.cboxSection3_PrefixLine.Size = new System.Drawing.Size(138, 21); this.cboxSection3_PrefixLine.TabIndex = 22; // // lblSection3_PrefixLine // this.lblSection3_PrefixLine.AutoSize = true; this.lblSection3_PrefixLine.Location = new System.Drawing.Point(354, 31); this.lblSection3_PrefixLine.Name = "lblSection3_PrefixLine"; this.lblSection3_PrefixLine.Size = new System.Drawing.Size(88, 13); this.lblSection3_PrefixLine.TabIndex = 21; this.lblSection3_PrefixLine.Text = "Chat Destination:"; // // txtSection3_ID // this.txtSection3_ID.Location = new System.Drawing.Point(6, 46); this.txtSection3_ID.Name = "txtSection3_ID"; this.txtSection3_ID.Size = new System.Drawing.Size(16, 20); this.txtSection3_ID.TabIndex = 20; this.txtSection3_ID.Visible = false; // // btnSection3_Delete // this.btnSection3_Delete.Location = new System.Drawing.Point(505, 10); this.btnSection3_Delete.Name = "btnSection3_Delete"; this.btnSection3_Delete.Size = new System.Drawing.Size(25, 25); this.btnSection3_Delete.TabIndex = 18; this.btnSection3_Delete.Text = "X"; this.btnSection3_Delete.UseVisualStyleBackColor = true; // // btnSection3_MoveUp // this.btnSection3_MoveUp.Location = new System.Drawing.Point(505, 36); this.btnSection3_MoveUp.Name = "btnSection3_MoveUp"; this.btnSection3_MoveUp.Size = new System.Drawing.Size(26, 23); this.btnSection3_MoveUp.TabIndex = 17; this.btnSection3_MoveUp.Text = "▲"; this.btnSection3_MoveUp.UseVisualStyleBackColor = true; // // btnSection3_MoveDown // this.btnSection3_MoveDown.Location = new System.Drawing.Point(505, 62); this.btnSection3_MoveDown.Margin = new System.Windows.Forms.Padding(1); this.btnSection3_MoveDown.Name = "btnSection3_MoveDown"; this.btnSection3_MoveDown.Size = new System.Drawing.Size(26, 23); this.btnSection3_MoveDown.TabIndex = 16; this.btnSection3_MoveDown.Text = "▼"; this.btnSection3_MoveDown.UseVisualStyleBackColor = true; // // cboxSection3_SortBy // this.cboxSection3_SortBy.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cboxSection3_SortBy.FormattingEnabled = true; this.cboxSection3_SortBy.Location = new System.Drawing.Point(301, 68); this.cboxSection3_SortBy.Name = "cboxSection3_SortBy"; this.cboxSection3_SortBy.Size = new System.Drawing.Size(198, 21); this.cboxSection3_SortBy.TabIndex = 15; this.cboxSection3_SortBy.Items.AddRange(new object[] { "{name}", "===Damage===", "{damage}", "{damage%}", "{dps}", "{DPS}", "{extdps}", "{EXTDPS}", "===Healed===", "{healed}", "{healed%}", "{exthps}", "{EXTHPS}", "{critheals}", "{heals}", "{maxheal}", "{MAXHEAL}", "{maxhealward}", "{MAXHEALWARD}", "===Hits===", "{hits}", "{crithits}", "{misses}", "{hitfailed}", "{swings}", "{tohit}", "{TOHIT}", "{maxhit}", "{MAXHIT}", "===Misc===", "{healstaken}", "{powerdrain}", "{kills}", "{deaths}", "===Name===", "{NAME3}", "{NAME4}", "{NAME5}", "{NAME6}", "{NAME7}", "{NAME8}", "{NAME9}", "{NAME10}", "{NAME11}", "{NAME12}", "{NAME13}", "{NAME14}", "{NAME15}"}); // // chkSection3_Enabled // this.chkSection3_Enabled.AutoSize = true; this.chkSection3_Enabled.Location = new System.Drawing.Point(434, 15); this.chkSection3_Enabled.Name = "chkSection3_Enabled"; this.chkSection3_Enabled.Size = new System.Drawing.Size(65, 17); this.chkSection3_Enabled.TabIndex = 14; this.chkSection3_Enabled.Text = "Enabled"; this.chkSection3_Enabled.UseVisualStyleBackColor = true; // // lblSection3_MaxPlayers // this.lblSection3_MaxPlayers.AutoSize = true; this.lblSection3_MaxPlayers.Location = new System.Drawing.Point(28, 72); this.lblSection3_MaxPlayers.Name = "lblSection3_MaxPlayers"; this.lblSection3_MaxPlayers.Size = new System.Drawing.Size(77, 13); this.lblSection3_MaxPlayers.TabIndex = 9; this.lblSection3_MaxPlayers.Text = "Max # Players:"; // // nudSection3_MaxPlayers // this.nudSection3_MaxPlayers.Location = new System.Drawing.Point(111, 69); this.nudSection3_MaxPlayers.Maximum = new decimal(new int[] { 24, 0, 0, 0}); this.nudSection3_MaxPlayers.Minimum = new decimal(new int[] { 1, 0, 0, 0}); this.nudSection3_MaxPlayers.Name = "nudSection3_MaxPlayers"; this.nudSection3_MaxPlayers.Size = new System.Drawing.Size(37, 20); this.nudSection3_MaxPlayers.TabIndex = 8; this.nudSection3_MaxPlayers.Value = new decimal(new int[] { 10, 0, 0, 0}); // // lblSection3_SortBy // this.lblSection3_SortBy.AutoSize = true; this.lblSection3_SortBy.Location = new System.Drawing.Point(251, 72); this.lblSection3_SortBy.Name = "lblSection3_SortBy"; this.lblSection3_SortBy.Size = new System.Drawing.Size(44, 13); this.lblSection3_SortBy.TabIndex = 7; this.lblSection3_SortBy.Text = "Sort By:"; // // lblSection3_PerPlayer // this.lblSection3_PerPlayer.AutoSize = true; this.lblSection3_PerPlayer.Location = new System.Drawing.Point(27, 44); this.lblSection3_PerPlayer.Name = "lblSection3_PerPlayer"; this.lblSection3_PerPlayer.Size = new System.Drawing.Size(58, 13); this.lblSection3_PerPlayer.TabIndex = 6; this.lblSection3_PerPlayer.Text = "Per Player:"; // // lblSection3_Header // this.lblSection3_Header.AutoSize = true; this.lblSection3_Header.Location = new System.Drawing.Point(6, 23); this.lblSection3_Header.Name = "lblSection3_Header"; this.lblSection3_Header.Size = new System.Drawing.Size(84, 13); this.lblSection3_Header.TabIndex = 5; this.lblSection3_Header.Text = "Section Header:"; // // txtSection3_PerPlayer // this.txtSection3_PerPlayer.Location = new System.Drawing.Point(91, 44); this.txtSection3_PerPlayer.Name = "txtSection3_PerPlayer"; this.txtSection3_PerPlayer.Size = new System.Drawing.Size(254, 20); this.txtSection3_PerPlayer.TabIndex = 3; // // txtSection3_Header // this.txtSection3_Header.Location = new System.Drawing.Point(92, 20); this.txtSection3_Header.Name = "txtSection3_Header"; this.txtSection3_Header.Size = new System.Drawing.Size(253, 20); this.txtSection3_Header.TabIndex = 2; // // chkSection3_Unlimited // this.chkSection3_Unlimited.AutoSize = true; this.chkSection3_Unlimited.Location = new System.Drawing.Point(154, 70); this.chkSection3_Unlimited.Name = "chkSection3_Unlimited"; this.chkSection3_Unlimited.Size = new System.Drawing.Size(69, 17); this.chkSection3_Unlimited.TabIndex = 1; this.chkSection3_Unlimited.Text = "Unlimited"; this.chkSection3_Unlimited.UseVisualStyleBackColor = true; // // chkSection1_AlliesOnly // this.chkSection1_AlliesOnly.AutoSize = true; this.chkSection1_AlliesOnly.Location = new System.Drawing.Point(351, 15); this.chkSection1_AlliesOnly.Name = "chkSection1_AlliesOnly"; this.chkSection1_AlliesOnly.Size = new System.Drawing.Size(74, 17); this.chkSection1_AlliesOnly.TabIndex = 23; this.chkSection1_AlliesOnly.Text = "Allies Only"; this.chkSection1_AlliesOnly.UseVisualStyleBackColor = true; // // chkSection2_AlliesOnly // this.chkSection2_AlliesOnly.AutoSize = true; this.chkSection2_AlliesOnly.Location = new System.Drawing.Point(351, 15); this.chkSection2_AlliesOnly.Name = "chkSection2_AlliesOnly"; this.chkSection2_AlliesOnly.Size = new System.Drawing.Size(74, 17); this.chkSection2_AlliesOnly.TabIndex = 24; this.chkSection2_AlliesOnly.Text = "Allies Only"; this.chkSection2_AlliesOnly.UseVisualStyleBackColor = true; // // chkSection3_AlliesOnly // this.chkSection3_AlliesOnly.AutoSize = true; this.chkSection3_AlliesOnly.Location = new System.Drawing.Point(351, 15); this.chkSection3_AlliesOnly.Name = "chkSection3_AlliesOnly"; this.chkSection3_AlliesOnly.Size = new System.Drawing.Size(74, 17); this.chkSection3_AlliesOnly.TabIndex = 24; this.chkSection3_AlliesOnly.Text = "Allies Only"; this.chkSection3_AlliesOnly.UseVisualStyleBackColor = true; #endregion //ControlConfiguration #region Tooltips this.oToolTip.SetToolTip(this.btnSection1_Delete, "Delete this Section"); this.oToolTip.SetToolTip(this.btnSection1_MoveUp, "Move this Section Up one Level"); this.oToolTip.SetToolTip(this.btnSection1_MoveDown, "Move this Section Down one Level"); this.oToolTip.SetToolTip(this.chkSection1_Enabled, "Click to Enable / Disable Section"); this.oToolTip.SetToolTip(this.nudSection1_MaxPlayers, "Max Number of Players to Display in this Section"); this.oToolTip.SetToolTip(this.btnSection2_Delete, "Delete this Section"); this.oToolTip.SetToolTip(this.btnSection2_MoveUp, "Move this Section Up one Level"); this.oToolTip.SetToolTip(this.btnSection2_MoveDown, "Move this Section Down one Level"); this.oToolTip.SetToolTip(this.chkSection2_Enabled, "Click to Enable / Disable Section"); this.oToolTip.SetToolTip(this.nudSection2_MaxPlayers, "Max Number of Players to Display in this Section"); this.oToolTip.SetToolTip(this.btnSection3_Delete, "Delete this Section"); this.oToolTip.SetToolTip(this.btnSection3_MoveUp, "Move this Section Up one Level"); this.oToolTip.SetToolTip(this.btnSection3_MoveDown, "Move this Section Down one Level"); this.oToolTip.SetToolTip(this.chkSection3_Enabled, "Click to Enable / Disable Section"); this.oToolTip.SetToolTip(this.nudSection3_MaxPlayers, "Max Number of Players to Display in this Section"); this.oToolTip.SetToolTip(this.tvSections, "Click a Section to Select and Display"); this.oToolTip.SetToolTip(this.btnSection1_Delete, "Add New Section"); this.oToolTip.SetToolTip(this.txtSection1_PerPlayer, "Double Click for Parse Generator"); this.oToolTip.SetToolTip(this.txtSection2_PerPlayer, "Double Click for Parse Generator"); this.oToolTip.SetToolTip(this.txtSection3_PerPlayer, "Double Click for Parse Generator"); this.oToolTip.SetToolTip(this.txtSection1_Header, "Double Click for Parse Generator"); this.oToolTip.SetToolTip(this.txtSection2_Header, "Double Click for Parse Generator"); this.oToolTip.SetToolTip(this.txtSection3_Header, "Double Click for Parse Generator"); this.oToolTip.SetToolTip(this.cboxSection1_PrefixLine, "Chat To Send Data to (Prefix each line). For example: /g for group, /gu for guild, /tell Cedric, /tell funkmasterp"); this.oToolTip.SetToolTip(this.cboxSection2_PrefixLine, "Chat To Send Data to (Prefix each line). For example: /g for group, /gu for guild, /tell Cedric, /tell funkmasterp"); this.oToolTip.SetToolTip(this.cboxSection3_PrefixLine, "Chat To Send Data to (Prefix each line). For example: /g for group, /gu for guild, /tell Cedric, /tell funkmasterp"); #endregion //Tooltips #region Add Event Handlers this.nudSection1_MaxPlayers.ValueChanged += new System.EventHandler(this.Section_MaxPlayers_ValueChanged); this.nudSection1_MaxPlayers.LostFocus += new System.EventHandler(this.Section_LostFocus); this.txtSection1_PerPlayer.LostFocus += new System.EventHandler(this.Section_LostFocus); this.txtSection1_Header.LostFocus += new System.EventHandler(this.Section_LostFocus); this.nudSection1_MaxPlayers.TextChanged += new System.EventHandler(this.Section_TextChanged); this.txtSection1_PerPlayer.TextChanged += new System.EventHandler(this.Section_TextChanged); this.txtSection1_Header.TextChanged += new System.EventHandler(this.Section_TextChanged); this.chkSection1_Enabled.CheckedChanged += new System.EventHandler(this.Section_CheckedChanged); this.chkSection1_Unlimited.CheckedChanged += new System.EventHandler(this.Section_CheckedChanged); this.btnSection1_Delete.Click += new System.EventHandler(this.btnSection_Delete_Click); this.btnSection1_MoveUp.Click += new System.EventHandler(this.btnSection_MoveUp_Click); this.btnSection1_MoveDown.Click += new System.EventHandler(this.btnSection_MoveDown_Click); this.nudSection2_MaxPlayers.ValueChanged += new System.EventHandler(this.Section_MaxPlayers_ValueChanged); this.nudSection2_MaxPlayers.LostFocus += new System.EventHandler(this.Section_LostFocus); this.txtSection2_PerPlayer.LostFocus += new System.EventHandler(this.Section_LostFocus); this.txtSection2_Header.LostFocus += new System.EventHandler(this.Section_LostFocus); this.nudSection2_MaxPlayers.TextChanged += new System.EventHandler(this.Section_TextChanged); this.txtSection2_PerPlayer.TextChanged += new System.EventHandler(this.Section_TextChanged); this.txtSection2_Header.TextChanged += new System.EventHandler(this.Section_TextChanged); this.chkSection2_Enabled.CheckedChanged += new System.EventHandler(this.Section_CheckedChanged); this.chkSection2_Unlimited.CheckedChanged += new System.EventHandler(this.Section_CheckedChanged); this.btnSection2_Delete.Click += new System.EventHandler(this.btnSection_Delete_Click); this.btnSection2_MoveUp.Click += new System.EventHandler(this.btnSection_MoveUp_Click); this.btnSection2_MoveDown.Click += new System.EventHandler(this.btnSection_MoveDown_Click); this.nudSection3_MaxPlayers.ValueChanged += new System.EventHandler(this.Section_MaxPlayers_ValueChanged); this.nudSection3_MaxPlayers.LostFocus += new System.EventHandler(this.Section_LostFocus); this.txtSection3_PerPlayer.LostFocus += new System.EventHandler(this.Section_LostFocus); this.txtSection3_Header.LostFocus += new System.EventHandler(this.Section_LostFocus); this.nudSection3_MaxPlayers.TextChanged += new System.EventHandler(this.Section_TextChanged); this.txtSection3_PerPlayer.TextChanged += new System.EventHandler(this.Section_TextChanged); this.txtSection3_Header.TextChanged += new System.EventHandler(this.Section_TextChanged); this.chkSection3_Enabled.CheckedChanged += new System.EventHandler(this.Section_CheckedChanged); this.chkSection3_Unlimited.CheckedChanged += new System.EventHandler(this.Section_CheckedChanged); this.btnSection3_Delete.Click += new System.EventHandler(this.btnSection_Delete_Click); this.btnSection3_MoveUp.Click += new System.EventHandler(this.btnSection_MoveUp_Click); this.btnSection3_MoveDown.Click += new System.EventHandler(this.btnSection_MoveDown_Click); this.txtSection1_PerPlayer.DoubleClick += new System.EventHandler(this.Section_PerPlayer_dblClick); this.txtSection2_PerPlayer.DoubleClick += new System.EventHandler(this.Section_PerPlayer_dblClick); this.txtSection3_PerPlayer.DoubleClick += new System.EventHandler(this.Section_PerPlayer_dblClick); this.txtSection1_Header.DoubleClick += new System.EventHandler(this.Section_Header_dblClick); this.txtSection2_Header.DoubleClick += new System.EventHandler(this.Section_Header_dblClick); this.txtSection3_Header.DoubleClick += new System.EventHandler(this.Section_Header_dblClick); this.cboxSection1_SortBy.LostFocus += new System.EventHandler(this.Section_cBox_LostFocus); this.cboxSection1_PrefixLine.LostFocus += new System.EventHandler(this.Section_cBox_LostFocus); this.cboxSection2_SortBy.LostFocus += new System.EventHandler(this.Section_cBox_LostFocus); this.cboxSection2_PrefixLine.LostFocus += new System.EventHandler(this.Section_cBox_LostFocus); this.cboxSection3_SortBy.LostFocus += new System.EventHandler(this.Section_cBox_LostFocus); this.cboxSection3_PrefixLine.LostFocus += new System.EventHandler(this.Section_cBox_LostFocus); this.chkSection1_AlliesOnly.CheckedChanged += new System.EventHandler(this.Section_CheckedChanged); this.chkSection2_AlliesOnly.CheckedChanged += new System.EventHandler(this.Section_CheckedChanged); this.chkSection3_AlliesOnly.CheckedChanged += new System.EventHandler(this.Section_CheckedChanged); this.tvSections.MouseDown += new MouseEventHandler(this.tvSections_MouseDown); this.btnAddNewSection.Click += new System.EventHandler(this.btnAddNewSection_Click); this.txtExportToFile.LostFocus += new System.EventHandler(this.ExportToFile_LostFocus); #endregion //Add Event Handlers this.gbSection1.Visible = false; this.gbSection2.Visible = false; this.gbSection3.Visible = false; this.pnlMain.Controls.Add(this.gbSection3); this.pnlMain.Controls.Add(this.gbSection1); this.pnlMain.Controls.Add(this.gbExportSettings); this.pnlMain.Controls.Add(this.lblSections); this.pnlMain.Controls.Add(this.btnAddNewSection); this.pnlMain.Controls.Add(this.tvSections); this.pnlMain.Controls.Add(this.gbSection2); ((System.ComponentModel.ISupportInitialize)(this.nudSection2_MaxPlayers)).EndInit(); this.gbExportSettings.ResumeLayout(false); this.gbExportSettings.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.nudSection1_MaxPlayers)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.nudSection3_MaxPlayers)).EndInit(); this.pnlMain.Location = new System.Drawing.Point(16, 9); this.pnlMain.Dock = DockStyle.Fill; tpScreen.Controls.Add(this.pnlMain); this.gbSection1.ResumeLayout(false); this.gbSection1.PerformLayout(); this.gbSection2.ResumeLayout(false); this.gbSection2.PerformLayout(); this.gbSection3.ResumeLayout(false); this.gbSection3.PerformLayout(); this.pnlMain.ResumeLayout(false); tpScreen.ResumeLayout(false); } #endregion //UI components #region IActPluginV1 Members public void InitPlugin(TabPage pluginScreenSpace, Label pluginStatusText) { AllowSave = false; lblStatus = pluginStatusText; tpScreen = pluginScreenSpace; InitUI(); tpScreen.Controls.Add(pnlMain); lblStatus.Text = "Plugin started"; #region Act Event Handlers Attachment ActGlobals.oFormActMain.AfterCombatAction += new CombatActionDelegate(oFormActMain_AfterCombatAction); ActGlobals.oFormActMain.OnCombatEnd += new CombatToggleEventDelegate(oFormActMain_OnCombatEnd); #endregion //Act Event Handlers Attachment LoadXmlSettings(); AllowSave = true; } public void DeInitPlugin() { #region Act Event Handlers Detachment ActGlobals.oFormActMain.AfterCombatAction -= oFormActMain_AfterCombatAction; ActGlobals.oFormActMain.OnCombatEnd -= oFormActMain_OnCombatEnd; #endregion //Act Event Handlers Detachment SaveXmlSettings(); lblStatus.Text = "Plugin exited"; } #endregion //IActPluginV1 Members #region Functions And Events private void Allow_ValueLostTextCheck_Changed(bool isAllowed) { AllowValueChanged = isAllowed; AllowLostFocus = isAllowed; AllowTextChanged = isAllowed; AllowCheckedChanged = isAllowed; } #region ControlEvents private void Section_MaxPlayers_ValueChanged(object sender, EventArgs e) { if (AllowValueChanged == false) return; Allow_ValueLostTextCheck_Changed(false); SaveXmlSettings(); LoadXmlSettings(); Allow_ValueLostTextCheck_Changed(true); } private void Section_cBox_LostFocus(object sender, EventArgs e) { if (AllowLostFocus == false) return; Allow_ValueLostTextCheck_Changed(false); SaveXmlSettings(); LoadXmlSettings(); Allow_ValueLostTextCheck_Changed(true); } private void ExportToFile_LostFocus(object sender, EventArgs e) { SaveXmlSettings(); TextBox_LostFocus(sender, e); } private void Section_LostFocus(object sender, EventArgs e) { TextBox_LostFocus(sender, e); } private void TextBox_LostFocus(object sender, EventArgs e) { if (AllowLostFocus == false) return; Allow_ValueLostTextCheck_Changed(false); LoadXmlSettings(); Allow_ValueLostTextCheck_Changed(true); } private void Section_TextChanged(object sender, EventArgs e) {