Ejemplo n.º 1
0
        private void btnExport_Click(object sender, EventArgs e)
        {
            frmNhapKho f = new frmNhapKho();

            f.MdiParent = this.MdiParent;
            f.Show();
            this.Dispose();
        }
Ejemplo n.º 2
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            //kiêm tra form trước khi save
            string strError = string.Empty;

            if (!isValidateForm(out strError))
            {
                MessageBox.Show(strError, "Cảnh báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            else
            {
                Save();
                frmNhapKho f = new frmNhapKho();
                f.MdiParent = this.MdiParent;
                f.Show();
                this.Dispose();
            }
        }