private void düzenleToolStripMenuItem_Click(object sender, EventArgs e)
        {
            int i = gridView1.FocusedRowHandle;

            if (i < 0)
            {
                return;
            }

            DataRow dr           = gridView1.GetDataRow(gridView1.FocusedRowHandle);
            string  fkfirma      = dr["fkFirma"].ToString();
            string  pkHatirlatma = dr["pkHatirlatma"].ToString();

            DB.pkHatirlatma = int.Parse(pkHatirlatma);
            if (fkfirma == "")
            {
                return;
            }

            frmHatirlatma h = new frmHatirlatma(DateTime.Today, DateTime.Today, int.Parse(fkfirma));

            h.ShowDialog();

            GunlukHatirlatmalar();

            gridView1.FocusedRowHandle = i;
        }
        void item_Click_RandevuAc(object sender, EventArgs e)
        {
            DevExpress.XtraScheduler.Appointment apt = null;
            for (int i = 0; i < schedulerControl1.SelectedAppointments.Count; i++)
            {
                apt = schedulerControl1.SelectedAppointments[i];
            }

            if (apt == null)
            {
                formislemleri.Mesajform("Randevu Seçiniz", "K", 150);
                return;
            }

            string id = apt.CustomFields["pkHatirlatma"].ToString();

            DB.pkHatirlatma = int.Parse(id);
            //DataTable dt = DB.GetData("select * from Hatirlatma with(nolock) where pkHatirlatma=" + id);

            DateTime secilentarih = schedulerControl1.Start;

            frmHatirlatma Hatirlat = new frmHatirlatma(secilentarih, secilentarih, 0);

            Hatirlat.ShowDialog();

            GorunumluHatirlatmalariGetir();

            schedulerControl1.Start = secilentarih;
        }
        private void gridView1_DoubleClick(object sender, EventArgs e)
        {
            if (gridView1.FocusedRowHandle < 0)
            {
                return;
            }

            DataRow dr = gridView1.GetDataRow(gridView1.FocusedRowHandle);

            string HT = dr["HT"].ToString();

            if (HT == "H")
            {
                frmHatirlatma Hatirlat     = new frmHatirlatma(DateTime.Now, DateTime.Now, 0);
                string        pkHatirlatma = dr["pkHatirlatma"].ToString();
                DB.pkHatirlatma = int.Parse(pkHatirlatma);
                Hatirlat.ShowDialog();
            }
            else if (HT == "T")
            {
                frmUcGoster SatisGoster = new frmUcGoster(2, "0");
                SatisGoster.ShowDialog();
                //string pkHatirlatma = dr["pkHatirlatma"].ToString();
                //DB.pkHatirlatma = int.Parse(pkHatirlatma);
            }

            //DB.ExecuteSQL("update Hatirlatma set Uyar=1 where pkHatirlatma=" + pkHatirlatma);
            GunlukHatirlatmalar();
        }
        private void yeniHatırlatmaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmHatirlatma Hatirlat = new frmHatirlatma(DateTime.Now, DateTime.Now, 0);

            DB.pkHatirlatma = 0;
            Hatirlat.ShowDialog();

            GunlukHatirlatmalar();
        }
        void item_Click_OzelRandevuEkle(object sender, EventArgs e)
        {
            DateTime secilentarih = schedulerControl1.Start;

            DB.pkHatirlatma = 0;
            frmHatirlatma Hatirlat = new frmHatirlatma(schedulerControl1.SelectedInterval.Start, schedulerControl1.SelectedInterval.End, 0);

            Hatirlat.ShowDialog();

            GorunumluHatirlatmalariGetir();

            schedulerControl1.Start = secilentarih;
        }
        private void düzenleToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (gridView1.FocusedRowHandle < 0)
            {
                return;
            }

            DataRow dr = gridView1.GetDataRow(gridView1.FocusedRowHandle);

            frmHatirlatma Hatirlat     = new frmHatirlatma(DateTime.Now, DateTime.Now, 0);
            string        pkHatirlatma = dr["pkHatirlatma"].ToString();

            DB.pkHatirlatma = int.Parse(pkHatirlatma);
            Hatirlat.ShowDialog();
            //DB.ExecuteSQL("update Hatirlatma set Uyar=1 where pkHatirlatma=" + pkHatirlatma);
            GunlukHatirlatmalar();
        }