private void btnViewDifferences_Click(object sender, EventArgs e) { if (cmbBranch.EditValue == null) { return; } frmViewItems obj = new frmViewItems(new CountingRepository().GetStockCountingDiff( cmbBranch.EditValue)); obj.ShowInTaskbar = false; obj.StartPosition = FormStartPosition.CenterScreen; obj.ShowDialog(); }
private void btnViewItems_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { if (gvStockCounting.FocusedRowHandle < 0) { return; } frmViewItems obj = new frmViewItems(new CountingRepository().GetStockCountingDetail( gvStockCounting.GetFocusedRowCellValue("STOCKCOUNTINGID"))); obj.ShowInTaskbar = false; obj.StartPosition = FormStartPosition.CenterScreen; obj.ShowDialog(); }