Beispiel #1
0
 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);
         }
     }
 }
Beispiel #2
0
 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);
     }
 }
Beispiel #3
0
 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);
         }
     }
 }
Beispiel #4
0
 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);
     }
 }