コード例 #1
0
        /// <summary>
        /// Sets the max shows.
        /// </summary>
        /// <param name="sender">Sender object.</param>
        /// <param name="e">Event arguments.</param>
        private void SetMaxShowsToolStripMenuItemClick(object sender, EventArgs e)
        {
            // New MaxCountForm instance
            SetNumericValueForm numericValueForm = new SetNumericValueForm("Set max. shows:", this.maxCount, this.maxCountMaximum);

            // Show it as dialog
            DialogResult dialogResult = numericValueForm.ShowDialog(this);

            // Get value
            if (dialogResult == DialogResult.OK)
            {
                // Assign maxCount
                this.maxCount = numericValueForm.GetNumericValueField;
            }

            // Update
            this.UpdateRoutine();
        }
コード例 #2
0
        /// <summary>
        /// Sets jump back spins.
        /// </summary>
        /// <param name="sender">Sender object.</param>
        /// <param name="e">Event arguments.</param>
        private void SetJumpBackSpinsToolStripMenuItemClick(object sender, EventArgs e)
        {
            // New MaxCountForm instance
            SetNumericValueForm numericValueForm = new SetNumericValueForm("Set jump back spins:", this.jumpBackValue, 1000);

            // Show it as dialog
            DialogResult dialogResult = numericValueForm.ShowDialog(this);

            // Get value
            if (dialogResult == DialogResult.OK)
            {
                // Assign maxCount
                this.jumpBackValue = numericValueForm.GetNumericValueField;
            }

            // Update
            this.UpdateRoutine();
        }