Exemplo n.º 1
0
        /// <summary>
        /// Обработчик события кнопки.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnApply_Click(object sender, EventArgs e)
        {
            var textBoxes = new TextBox[] { txbFireCabinets, txbExtinguishers };

            if (!HelperControl.CorrectSample(textBoxes))
            {
                return;
            }

            FillListView(lastType);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Обработчик события кнопки.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnSaveSettings_Click(object sender, EventArgs e)
        {
            var textBoxes = new TextBox[] { txbFireCabinets, txbExtinguishers, txbHoses, txbHydrants };

            if (!HelperControl.CorrectSample(textBoxes))
            {
                return;
            }
            SetSampleName(textBoxes);

            prevAbsoluteIconsSize      = scrIconSize.Value;
            Sett.Default.RatioIconSize = InverseIconSize(prevAbsoluteIconsSize);
            Sett.Default.Save();
            ChangeIconSize?.Invoke();
            Close();
        }