Пример #1
0
 public static void MovePointToNewColumn(TabPage page, ref Point current)
 {
     // Force buttons onto new column.
     while (page.Controls.Count % Defs.ROWS != 0)
     {
         page.Controls.Add(new Label()
         {
             Location = UiHelper.IncrementPoint(ref current, page.Controls.Count, Ui_Element.Label)
         });
     }
 }
Пример #2
0
        public static ProgressBar GetRandomizerProgressBar(ref Point controlPoint, int max)
        {
            var bar = new ProgressBar();

            bar.Size     = new Size(Defs.LABEL_WIDTH, Defs.LABEL_HEIGHT);
            bar.Location = UiHelper.IncrementPoint(ref controlPoint, 0, Ui_Element.Label);
            bar.Visible  = true;
            bar.Minimum  = 0;
            bar.Maximum  = max;
            bar.Value    = bar.Minimum;
            bar.Step     = 1;

            return(bar);
        }