예제 #1
0
        private void GoButtonClick(object sender, EventArgs e)
        {
            var options = new SearchGuids.Options
            {
                ConnectionString = _connectionString,
                Consecutive      = consecutiveCheckBox.Checked,
                Count            = (int)GuidCountUpDown.Value,
                Minimum          = (int)minNumericUpDown.Value,
                Table            = TableComboBox.Text
            };

            IEnumerable <int> guids;

            try
            {
                guids = SearchGuids.Search(options);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                return;
            }

            var resultForm = new ResultForm(guids);

            resultForm.Show();
        }
예제 #2
0
        private void GoButtonClick(object sender, EventArgs e)
        {
            var options = new SearchGuids.Options
            {
                ConnectionString = _connectionString,
                Consecutive = consecutiveCheckBox.Checked,
                Count = (int) GuidCountUpDown.Value,
                Minimum = (int) minNumericUpDown.Value,
                Table = TableComboBox.Text
            };

            IEnumerable<int> guids;

            try
            {
                guids = SearchGuids.Search(options);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                return;
            }

            var resultForm = new ResultForm(guids);
            resultForm.Show();
        }