Ejemplo n.º 1
0
        private void Gems_Click(object sender, int row, int col)
        {
            try
            {
                if (!row.Equals(0))
                {
                    HudStaticText gemToDelete = (HudStaticText)Gems[row][0];
                    Gems.RemoveRow(row);

                    for (int i = 0; i < Parent.Machine.Utility.BotSettings.GemSettings.Count; i++)
                    {
                        if (Parent.Machine.Utility.BotSettings.GemSettings[i].Name.Equals(gemToDelete.Text))
                        {
                            Parent.Machine.Utility.BotSettings.GemSettings.RemoveAt(i);
                            break;
                        }
                    }

                    Parent.Machine.Utility.SaveBotSettings();
                    gemToDelete.Dispose();
                }
            }
            catch (Exception ex) { Debug.LogException(ex); }
        }