Exemplo n.º 1
0
        public LabeledInputBox(MandelbrotForm form, string name, string text)
        {
            label           = new Label();
            label.Name      = "label_" + name;
            label.Text      = text;
            label.TextAlign = ContentAlignment.MiddleRight;
            label.Location  = new Point(OFFSET, (PREVIOUS?.Bottom ?? 0) + OFFSET);
            label.Width     = LABEL_WIDTH;

            PREVIOUS = label;

            form.Controls.Add(label);
        }
Exemplo n.º 2
0
        public BaseInputBox(MandelbrotForm form, string name, string text, R value)
            : base(form, name, text)
        {
            box          = new B();
            box.Location = new Point(OFFSET + LABEL_WIDTH, label.Top + 2);
            box.Name     = "input_" + name;

            label.Height = box.Height;

            Value = value;

            form.Controls.Add(label);
            form.Controls.Add(box);
        }