Пример #1
0
        private void btnEditMask_Click(object sender, EventArgs e)
        {
            MaskEditor win    = new MaskEditor(_dataProcessor.DataMask);
            var        result = win.ShowDialog(this);

            if (DialogResult.OK == result)
            {
                _dataProcessor.DataMask = win.GetMask();
            }
        }
Пример #2
0
        private void btnEditIdMask_Click(object sender, EventArgs e)
        {
            if (!_dataProcessor.IsIdSelected)
            {
                return;
            }

            MaskEditor win    = new MaskEditor(_dataProcessor.SelectedIdDataMask);
            var        result = win.ShowDialog(this);

            if (DialogResult.OK == result)
            {
                _dataProcessor.SelectedIdDataMask = win.GetMask();
            }
        }