Ejemplo n.º 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();
        }
Ejemplo n.º 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();
        }