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 simpleButton2_Click(object sender, EventArgs e) { frmUcGoster SatisGoster = new frmUcGoster(3, "0"); SatisGoster.ShowDialog(); }