예제 #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);
         }
     }
 }
예제 #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);
     }
 }
예제 #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);
         }
     }
 }
예제 #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);
     }
 }