private void btnHareketEkle_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { int baglantiid = Convert.ToInt32(gvBaglanti.GetFocusedRowCellValue("ID")); BaglantiHareketiKarti frm = new BaglantiHareketiKarti(-1, baglantiid); frm.ShowDialog(); if (frm.DialogResult == DialogResult.OK) { gvBaglanti_FocusedRowChanged(null, null); } }
//private void lblHareketler_Click(object sender, EventArgs e) //{ // //xtraTabControl1.SelectedTabPage = tabHareketler; // //lblHareketler.Font = new Font(lblHareketler.Font.FontFamily, 11, FontStyle.Bold); // //lblHareketler.Width = lblHareketler.Width + 10; // if (!formyuklendi) // return; // //lblSatisSiparis.Font = new Font(lblSatisSiparis.Font.FontFamily, 11); // //lblSatisSiparis.Width = lblSatisSiparis.Width - 20; //} //private void lblSatisSiparis_Click(object sender, EventArgs e) //{ // lblHareketler.Font = new Font(lblHareketler.Font.FontFamily, 11); // lblHareketler.Width = lblHareketler.Width - 10; // xtraTabControl1.SelectedTabPage = tabSatisSiparis; // lblSatisSiparis.Font = new Font(lblSatisSiparis.Font.FontFamily, 11, FontStyle.Bold); // lblSatisSiparis.Width = lblSatisSiparis.Width + 20; //} private void advBandedGridView1_DoubleClick(object sender, EventArgs e) { tabPane1.SelectedPageIndex = 0; int baglantiid = Convert.ToInt32(gvBaglanti.GetFocusedRowCellValue("ID")); int id = Convert.ToInt32(gvHareketler.GetFocusedRowCellValue("ID")); int rowhandle = gvHareketler.FocusedRowHandle; BaglantiHareketiKarti frm = new BaglantiHareketiKarti(id, baglantiid); frm.ShowDialog(); if (frm.DialogResult == DialogResult.OK) { gvBaglanti_FocusedRowChanged(null, null); } gvHareketler.FocusedRowHandle = rowhandle; }