Ejemplo n.º 1
0
            public ParameterGUI_Int(SimulationParameterInt p)
            {
                TextBox box = new TextBox();

                box.Width = TEXTBOX_WIDTH;
                box.Text  = Convert.ToString(p.Default);
                box.Top   = 0;
                box.Left  = LAYOUT_PAD;

                Label l = new Label();

                l.AutoSize  = true;
                l.Text      = p.Name;
                l.TextAlign = ContentAlignment.MiddleLeft;
                l.Top       = (box.Height / 2) - (l.Height / 2);
                l.Left      = box.Right + LAYOUT_PAD;

                m_Controls.Add(l);
                m_Controls.Add(box);

                m_Box   = box;
                m_Param = p;
            }
Ejemplo n.º 2
0
            public ParameterGUI_Int(SimulationParameterInt p)
            {
                TextBox box = new TextBox();
                box.Width = TEXTBOX_WIDTH;
                box.Text = Convert.ToString(p.Default);
                box.Top  = 0;
                box.Left = LAYOUT_PAD;

                Label l = new Label();
                l.AutoSize = true;
                l.Text = p.Name;
                l.TextAlign = ContentAlignment.MiddleLeft;
                l.Top  = (box.Height/2) - (l.Height / 2);
                l.Left = box.Right + LAYOUT_PAD;

                m_Controls.Add(l);
                m_Controls.Add(box);

                m_Box = box;
                m_Param = p;
            }