Exemplo 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();
        }
Exemplo n.º 2
0
 private void MainFormLoad(object sender, EventArgs e)
 {
     // Defaults
     TableComboBox.Items.AddRange(SearchGuids.GetSupportedTableNames().Cast <object>().ToArray());
     TableComboBox.SelectedIndex = 0;
 }