예제 #1
0
파일: Form2.cs 프로젝트: mertayaar/ajanda
        private void button4_Click(object sender, EventArgs e)
        {
            Notlar not = new Notlar();

            not.temizle();
            griddoldur();
            list.notgetir();
        }
예제 #2
0
파일: Form2.cs 프로젝트: mertayaar/ajanda
        private void button5_Click(object sender, EventArgs e)
        {
            DateTime goodDateHolder = Convert.ToDateTime(DateTime.Now.ToShortDateString());


            Notlar not = new Notlar();

            not.tarih = goodDateHolder.ToString("yyyy-MM-dd");
            not.gecmistemizle();
            griddoldur();
            list.notgetir();
        }
예제 #3
0
파일: Form2.cs 프로젝트: mertayaar/ajanda
 private void button3_Click(object sender, EventArgs e)
 {
     if (textBox1.Text != "" && richTextBox1.Text != "")
     {
         Notlar not = new Notlar();
         not.notbaslik = textBox1.Text.ToString();
         not.not       = richTextBox1.Text.ToString();
         not.tarih     = dateTimePicker1.Value.ToString("yyyy-MM-dd");
         not.guncelle();
         list.notgetir();
         griddoldur();
     }
     else
     {
         MessageBox.Show("Tüm Alanları Doldurun");
     }
 }
예제 #4
0
파일: Form2.cs 프로젝트: mertayaar/ajanda
 private void button2_Click(object sender, EventArgs e)
 {
     if (textBox1.Text != "")
     {
         Notlar not = new Notlar();
         not.notbaslik = textBox1.Text.ToString();
         not.notsil();
         griddoldur();
         textBox1.Clear();
         richTextBox1.Clear();
         list.notgetir();
     }
     else
     {
         MessageBox.Show("Lütfen Sileceğiniz Not Başlığını Doldurun");
     }
 }