//button bán hàng private void btnSell_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Form f = IsActive(typeof(frmSell)); if (f == null) { Form fSell = new frmSell(); fSell.MdiParent = this; fSell.Show(); } else { f.Activate(); } }
private void tsbSell_Click(object sender, EventArgs e) { if (m_frmSell == null || m_frmSell.IsDisposed) { m_frmSell = new frmSell(_SystemUser); m_frmSell.MdiParent = this; } this._SearchGood = m_frmSell.ISearchGood; m_frmSell.Visible = false; m_frmSell.Activate(); m_frmSell.WindowState = FormWindowState.Maximized; m_frmSell.Show(); this.tsslCurrent.Text = "当前操作:销售管理"; m_iOutput = m_frmSell.IOutput; }
private void BtnSell_ItemClick(object sender, ItemClickEventArgs e) { Form f = IsActive(typeof(frmSell)); VaiTro_ChucNangDTO phanquyenBH = btnBanHang.Tag as VaiTro_ChucNangDTO; if (f == null) { frmSell fSell = new frmSell(phanquyenBH, username); fSell.ThemNhatKyHeThong += ThemNhatKy_Main; fSell.MdiParent = this; fSell.Show(); } else { f.Activate(); } }