示例#1
0
        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;
            }
        }
示例#2
0
        public InputValueForm(InputValueFormModes Mode)
        {
            InputValueFormSettings sets = new InputValueFormSettings(0, 9999, 0);

            CreateBody(Mode, sets);
        }
示例#3
0
 public InputValueForm(InputValueFormModes Mode, InputValueFormSettings ShowSettings, string Titl = "")
 {
     CreateBody(Mode, ShowSettings);
     TitlString = Titl;
 }