示例#1
0
        private void btnSipariseGonder_Click(object sender, EventArgs e)
        {
            Siparis = new Siparis.frmSiparisDetay(clsTablolar.Siparis.csSiparis.SiparisTip.VerilenSiparis, -1);

            Siparis.MdiParent = this.MdiParent;
            Siparis.Show();
            for (int i = 0; i < gridView4.RowCount; i++)
            {
                decimal SiparisMiktari = Convert.ToDecimal(gridView4.GetRowCellValue(i, "OlmasiGerekenMiktar")) - Convert.ToDecimal(gridView4.GetRowCellValue(i, "Miktar1"));
                Siparis.StokEkle((int)(gridView4.GetRowCellValue(i, "StokID")), SiparisMiktari);
            }
        }
示例#2
0
        private void btnKaydiAc_Click(object sender, EventArgs e)
        {
            //aslında gridde seçili satır yoksa işlem yapmasın demek için "FocusedRowHandle" yeterdi ama
            //elimizde farklı kod olsun diye "SelectedRowsCount" u da yazdık. :)
            if (gvSiparis.FocusedRowHandle < 0 || gvSiparis.SelectedRowsCount <= 0)
            {
                return;
            }

            Siparis.frmSiparisDetay SiparisKarti = new Siparis.frmSiparisDetay(Convert.ToInt32(gvSiparis.GetFocusedRowCellValue("SiparisID")));
            SiparisKarti.MdiParent = this.MdiParent;
            SiparisKarti.Show();
        }
 private void dockPanel2_CustomButtonClick(object sender, DevExpress.XtraBars.Docking2010.ButtonEventArgs e)
 {
     if (e.Button.Properties.Caption == "Yenile")
     {
         AlinanSiparisleri();
     }
     else if (e.Button.Properties.Caption == "Kaydı Aç")
     {
         if (gvAlinanSiparisler.RowCount > 0)
         {
             SipDetay           = new Siparis.frmSiparisDetay((int)gvAlinanSiparisler.GetFocusedRowCellValue("SiparisID"));
             SipDetay.MdiParent = this.MdiParent;
             SipDetay.Show();
         }
     }
     else if (e.Button.Properties.Caption == "Görüntü Al")
     {
         Bitmap   Screenshot = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height);
         Graphics GFX        = Graphics.FromImage(Screenshot);
         GFX.CopyFromScreen(Screen.PrimaryScreen.Bounds.X, Screen.PrimaryScreen.Bounds.Y, 0, 0, Screen.PrimaryScreen.Bounds.Size);
     }
 }