using System;
using MyGUI.Sharp;

namespace TestApp.Sharp
{
    public class Test_Button
    {
        public static void Test()
        {
            Button button = Gui.Instance.CreateWidget<Button>("Button", new IntCoord(10, 10, 100, 100), Align.Default, "Main");

            /*uint index = uint.MaxValue;
            index = button.ImageIndex;
            button.ImageIndex = uint.MaxValue;
            index = button.ImageIndex;
            button.ImageIndex = 0;
            index = button.ImageIndex;*/

            /*bool value = false;
            value = button.StateCheck;
            button.StateCheck = false;
            value = button.StateCheck;
            button.StateCheck = true;
            value = button.StateCheck;*/

            bool value = false;
            value = button.StateSelected;
            button.StateSelected = false;
            value = button.StateSelected;
            button.StateSelected = true;
            value = button.StateSelected;

            //StaticImage image = button.GetStaticImage();
        }
    }
}
