void button3_Click (object sender, EventArgs e) { using (var dialog = new AddQuery()) { dialog.editType = 1; if (dialog.ShowDialog() == DialogResult.OK) { FillQueryCombo(); cbQuery.SelectedIndex = cbQuery.FindString(dialog.query.Subject); } } }
private void button2_Click(object sender, EventArgs e) { TimerReset(); using (var dialog = new AddQuery()) { dialog.editType = 2; Query selectedquery = (Query)cbQuery.SelectedItem; dialog.query = selectedquery; if (dialog.ShowDialog() != DialogResult.OK) { return; } FillQueryCombo(); cbQuery.SelectedIndex = cbQuery.FindString(selectedquery.Subject); } }
private void button3_Click(object sender, EventArgs e) { using (var dialog = new AddQuery()) { dialog.editType = 1; if (dialog.ShowDialog() == DialogResult.OK) { FillQueryCombo(); cbQuery.SelectedIndex = cbQuery.FindString(dialog.query.Subject); } } }
private void button2_Click(object sender, EventArgs e) { TimerReset(); using (var dialog = new AddQuery()) { dialog.editType = 2; Query selectedquery = (Query) cbQuery.SelectedItem; dialog.query = selectedquery; if (dialog.ShowDialog() != DialogResult.OK) return; FillQueryCombo(); cbQuery.SelectedIndex = cbQuery.FindString(selectedquery.Subject); } }