Example #1
0
        private void bYEMAILToolStripMenuItem_Click(object sender, EventArgs e)
        {
            fillmaildelegate f = new fillmaildelegate(fill_students);

            filling_students = true;
            IAsyncResult ira = f.BeginInvoke(2, null, null);
        }
Example #2
0
 private void txtsearch_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         if (filling_students)
         {
             filling_students = false;
         }
         else
         {
             fillmaildelegate f = new fillmaildelegate(fill_students);
             filling_students = true;
             IAsyncResult ira = f.BeginInvoke(1, null, null);
         }
         txtsearch.SelectAll();
         lvstudents.Focus();
     }
 }
Example #3
0
 public Form1()
 {
     InitializeComponent();
     fm = new fillmaildelegate(update_emails);
 }