Пример #1
0
    public override bool doTool()
    {
        bool         deleted = false;
        CustomButton button  = new CustomButton(action, type, null);

        for (int i = 0; i < adventureData.getButtons().Count; i++)
        {
            CustomButton cb = adventureData.getButtons()[i];
            if (cb.Equals(button))
            {
                cursorDeleted = adventureData.getButtons()[i];
                adventureData.getButtons().RemoveAt(i);
                index   = i;
                deleted = true;
                break;
            }
        }
        return(deleted);
    }