Ejemplo n.º 1
0
        private async Task <bool[]> GetActiveBuffs()
        {
            return(await Task.Run(() =>
            {
                bool[] result = new bool[Buffs.Items.Count];
                for (int i = 0; i < result.Length; i++)
                {
                    if (Buffs.GetItemCheckState(i) == CheckState.Checked)
                    {
                        result[i] = true;
                    }
                    else
                    {
                        result[i] = false;
                    }
                }

                return result;
            }));
        }