Beispiel #1
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            var scanSetting = _currentListViewItem.Tag as ScanSetting;

            using (var form = new ScanSettingForm())
            {
                form.BindToControls(scanSetting);

                if (form.ShowDialog() == DialogResult.OK)
                {
                    RefreshListView();
                }
            }
        }
Beispiel #2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            var scanSetting = new ScanSetting();

            using (var form = new ScanSettingForm())
            {
                form.BindToControls(scanSetting);

                if (form.ShowDialog() == DialogResult.OK)
                {
                    _settingsManager.Add(scanSetting);

                    RefreshListView();
                }
            }
        }