using System;
using MyGUI.Sharp;

namespace TestApp.Sharp
{
    public class Test_ProgressBar
    {
        public static void Test()
        {
            ProgressBar progress = Gui.Instance.CreateWidget<ProgressBar>("Progress", new IntCoord(620, 220, 200, 16), Align.Default, "Main");

            Align align = progress.ProgressStartPoint;
            progress.ProgressStartPoint = Align.Right;

            progress.ProgressRange = 100;
            progress.ProgressRange = progress.ProgressRange + 100;

            progress.ProgressPosition = 50;
            progress.ProgressPosition = progress.ProgressPosition + 1;

            progress.ProgressAutoTrack = !progress.ProgressAutoTrack;
        }
    }
}
