コード例 #1
0
        public void InitPlugin(TabPage pluginScreenSpace, Label pluginStatusText)
        {
            lblStatus = pluginStatusText;           // Hand the status label's reference to our local var
            pluginScreenSpace.Controls.Add(this);   // Add this UserControl to the tab ACT provides
            this.Dock = DockStyle.Fill;             // Expand the UserControl to fill the tab's client space

            // Create some sort of parsing event handler.  After the "+=" hit TAB twice and the code will be generated for you.
            ActGlobals.oFormActMain.AfterCombatAction += new CombatActionDelegate(oFormActMain_AfterCombatAction);

            lblStatus.Text = "Plugin Started";
            Dictionary <int, string> zones = FFLogsHelper.GetZones();
            int i = 0;

            foreach (int id in zones.Keys)
            {
                if (!FFLogsHelper.IsZoneFrozen(id))
                {
                    comboBoxZone.Items.Add(zones[id]);
                    this.comboBoxZoneToID[i++] = id;
                }
            }
            comboBoxZone.SelectedIndex = 0;
            InitJobs();
            comboBoxZone_SelectedIndexChanged(comboBoxZone, null);
        }
コード例 #2
0
 private bool UpdateRawLogData()
 {
     RawLogData = FFLogsHelper.GetParses(CharacterName, ServerName, ServerRegion, Zone, Encounter);
     if (RawLogData == null || RawLogData == "")
     {
         return(false);
     }
     return(true);
 }
コード例 #3
0
                #pragma warning disable IDE1006 // Naming Styles
        private void comboBoxZone_SelectedIndexChanged(object sender, EventArgs e)
                #pragma warning restore IDE1006 // Naming Styles
        {
            ComboBox comboBox = (ComboBox)sender;

            if (this.comboBoxZoneToID.ContainsKey(comboBox.SelectedIndex))
            {
                comboBoxEncounter.Items.Clear();
                int i = 0;
                Dictionary <int, string> encounters = FFLogsHelper.GetEncounters(this.comboBoxZoneToID[comboBox.SelectedIndex]);
                foreach (int id in encounters.Keys)
                {
                    comboBoxEncounter.Items.Add(encounters[id]);
                    this.comboBoxEncounterToID[i++] = id;
                }
            }
            comboBoxEncounter.SelectedIndex = 0;
        }