public ParameterGUI_Double(SimulationParameterDouble 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; }
public ParameterGUI_Double( SimulationParameterDouble 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; }