Example #1
0
        private void button_add_Click(object sender, EventArgs e)
        {
            if (textBox_name.Text.Equals("") || textBox_assaignedto.Text.Equals(""))
            {
                MessageBox.Show("Please Insert To DO Name or Assaigned Person!!!");
            }

            else
            {
                To_Do_List td = new To_Do_List();
                td.addAssaignedWork(username, name, textBox_name.Text, dateTimePicker_date.Text, info[0]);
            }
        }
Example #2
0
 private void button_edit_Click(object sender, EventArgs e)
 {
     To_Do_List td = new To_Do_List();
     if (checkBox_complete.Checked)
     {
         status = "true";
     }
     else
     {
         status = "false";
     }
     //MessageBox.Show(username+" "+name+" "+status);
     td.editToDo(username, name, textBox_name.Text, dateTimePicker_date.Value.ToString(), status, info[0],work);
 }