private void btnCashReceiptVoucher_Click(object sender, EventArgs e) { frmCashReceiptVoucher _frmCashReceiptVoucher = new frmCashReceiptVoucher(lkCustomerName.EditValue.ToString(), decimal.Parse(grdvDeliveryBook.Columns["ThanhTien"].SummaryItem.SummaryValue.ToString())); _frmCashReceiptVoucher.ShowDialog(); }
private void btnCashReceiptVoucher_Click(object sender, EventArgs e) { try { m_enableCashReceiptVoucher = false; frmCashReceiptVoucher _frmCashDeliveryVoucher = new frmCashReceiptVoucher(lkCustomerName.EditValue.ToString(), decimal.Parse(grdvDeliveryBook.Columns["ThanhTien"].SummaryItem.SummaryValue.ToString())); _frmCashDeliveryVoucher.ShowDialog(); } catch (System.Exception) { } }
private void bbtnReceipts_ItemClick(object sender, ItemClickEventArgs e) { if (!xtraTabbedMdiManagerMenu.FloatForms.Contains(m_CashReceiptVoucherFormObject)) { m_CashReceiptVoucherFormObject = new frmCashReceiptVoucher(); xtraTabbedMdiManagerMenu.FloatForms.Add(m_CashReceiptVoucherFormObject); m_CashReceiptVoucherFormObject.MdiParent = this; //m_CashReceiptVoucherFormObject.MaximumSize = new System.Drawing.Size(1000,900); m_CashReceiptVoucherFormObject.Dock = DockStyle.Fill; m_CashReceiptVoucherFormObject.Show(); } else { m_CashReceiptVoucherFormObject.Activate(); } }