private void CreateBody(InputValueFormModes Mode, InputValueFormSettings ShowSettings) { InitializeComponent(); this.Size = FormSize; StartPosition = FormStartPosition.CenterParent; valueLabel.Text = "0"; SetFonts(); this.TopMost = true; this.Location = FormLocation; this.Size = FormSize; this.SecretMode = false; this.FloatCount = ShowSettings.DigitCount; this.FloatPossible = (ShowSettings.DigitCount != 0); this.SignPossible = ShowSettings.SignPossible; this.MinValue = ShowSettings.Min; this.MaxValue = ShowSettings.Max; if (Mode == InputValueFormModes.SecretMode) { SecretMode = true; } }
public InputValueForm(InputValueFormModes Mode) { InputValueFormSettings sets = new InputValueFormSettings(0, 9999, 0); CreateBody(Mode, sets); }
public InputValueForm(InputValueFormModes Mode, InputValueFormSettings ShowSettings, string Titl = "") { CreateBody(Mode, ShowSettings); TitlString = Titl; }