Example #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (dateTimePicker1.Value < DateTime.Today.Date)
     {
         MessageBox.Show("Seçilen Son tarih bugünden küçük olamaz !!");
     }
     else
     {
         ToDoWriter.todo_writer(textBox1.Text, Convert.ToDateTime(dateTimePicker1.Value));
         dataGridView1.Rows.Clear();
         ToDoReader.todo_reader();
         fillDateTable();
         textBox1.Clear();
     }
 }
Example #2
0
 private void DataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         Globals.selected_To_Do_ID = Convert.ToInt32(dataGridView1.SelectedCells[0].Value.ToString());
         Globals.dgwID             = Convert.ToInt32(dataGridView1.CurrentCell.RowIndex);
         EditTo_Do editTo_Do = new EditTo_Do();
         editTo_Do.ShowDialog();
         dataGridView1.Rows.Clear();
         ToDoReader.todo_reader();
         fillDateTable();
     }
     catch (Exception)
     {
         MessageBox.Show("Double-Click eventinde Hata !");
     }
 }
Example #3
0
 public Form1()
 {
     CheckForIllegalCrossThreadCalls = false; // Birden fazla thread kullanıcam. Sıkıntı çıkarma demekmiş :D
     InitializeComponent();
     ToDoReader.todo_reader();                // verileri okudum.
 }