protected override void OnAddRow()
        {
            int count = Count - 1;

            Elements[count].Add(CBInputs.CreateInput(Count, 1, 0));
            Elements[count].Add(Button("Edit", EditAI, "#CCCCCC", Count, Count, 2));
            ToolAI toolAi = new ToolAI();

            toolAi.Priority             = 10;
            toolAi.Quantity             = 0;
            toolAi.HPLow                = 0;
            toolAi.HPHigh               = 100;
            toolAi.SPLow                = 0;
            toolAi.SPHigh               = 100;
            toolAi.ActiveState1         = 0;
            toolAi.ActiveState2         = 0;
            toolAi.InactiveState1       = 0;
            toolAi.InactiveState2       = 0;
            toolAi.AllyCondition        = 0;
            toolAi.FoeCondition         = 0;
            toolAi.UserCondition        = 2;
            toolAi.TargetElementRate    = "0_0_3";
            toolAi.TargetStateRates     = "0_0_3_0_0_3";
            toolAi.TargetStatConditions = "0_0_0_0_0_0";
            toolAi.TargetToolElement    = 0;
            ToolAIs.Add(toolAi);
        }
 protected override void OnAddRow()
 {
     Elements[Count - 1].Add(TargetTableData.CreateInput(Count, 1, 0));
     if (isDual())
     {
         AddSecondInput("100");
     }
 }