private void btAddProduct_Click(object sender, EventArgs e) { FormAddProduct formAddProduct = new FormAddProduct(); formAddProduct.Show(); this.Hide(); }
private void navBarItemAddProduct_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e) { _waitDialog.CreateWaitDialog(); _waitDialog.SetWaitDialogCaption("Chương trình đang tải dữ liệu.\n Vui lòng chờ trong giây lát!"); var addProduct = new FormAddProduct(); _waitDialog.CloseWait(); addProduct.ShowDialog(); }
private void gridLookUpEditProduct_ButtonPressed(object sender, ButtonPressedEventArgs e) { if (e.Button.Index == 1) { var showAddProduct = new FormAddProduct(); showAddProduct.ShowDialog(); LoadGirdLookUpProducts(); } }