private void barButtonItem6_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { kontrol(); if (path == "" || path == null) { MessageBox.Show(dkdkod + " dokümanı henüz sisteme yüklenmemiştir!", "Oooppss!!", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); } else { kontrol(); DokumanGoruntule.yol = path; DokumanGoruntule.ad = ad; DokumanGoruntule dg = new DokumanGoruntule(); dg.Show(); } }
private void barButtonItem6_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { SqlCommand komut21 = new SqlCommand("Select * from DokumanMaster where ID = N'" + dID + "' ", bgl.baglanti()); SqlDataReader dr21 = komut21.ExecuteReader(); while (dr21.Read()) { dyol = dr21["Path"].ToString(); dadi = dr21["Ad"].ToString(); } bgl.baglanti().Close(); if (dyol == "" || dyol == null) { MessageBox.Show("Bu doküman henüz sisteme yüklenmemiştir!", "Ooppss!", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); } else { DokumanGoruntule.yol = dyol; DokumanGoruntule.ad = dadi; DokumanGoruntule dg = new DokumanGoruntule(); dg.Show(); } }