private void button4_Click(object sender, EventArgs e)
 {
     if (comboBox3.SelectedIndex < 0)
     {
         MessageBox.Show("Select Reminder");
     }
     else
     {
         UserSer     userS    = new UserSer();
         int         viewerID = userS.GetUserIdByEmail(comboBox2.SelectedItem.ToString());
         CategorySer cg       = new CategorySer();
         int         catID    = cg.GetCategoryID(comboBox3.SelectedItem.ToString(), LogIn.user_ID);
         userS = new UserSer();
         userS.Delete(viewerID, LogIn.user_ID, catID);
         comboBox3.Items.Remove(comboBox3.SelectedItem);
         comboBox3.Text = "";
     }
 }
 private void button2_Click(object sender, EventArgs e)
 {
     if (comboBox2.SelectedIndex < 0)
     {
         MessageBox.Show("Select Reminder");
     }
     else
     {
         UserSer userS    = new UserSer();
         int     viewerID = userS.GetUserIdByEmail(comboBox2.SelectedItem.ToString());
         userS = new UserSer();
         userS.Delete(viewerID, LogIn.user_ID);
         ShareTaskSer uS = new ShareTaskSer();
         uS.Delete(viewerID);
         comboBox2.Items.Remove(comboBox2.SelectedItem);
         comboBox2.Text = "";
     }
 }