Beispiel #1
0
        // Quan ly Nha cung cap
        public void ShowQLNhaCungCap()
        {
            fmChonNCC fm = new fmChonNCC(false);

            fm.StartPosition  = FormStartPosition.CenterParent;
            fm.ctrlData       = ctrlData;
            fm.ctrlNhaCungCap = new ControlNhaCungCap(ctrlData);
            fm.ShowDialog();
        }
        private void butNCC_Click(object sender, EventArgs e)
        {
            fmChonNCC fm = new fmChonNCC(true);

            fm.StartPosition = FormStartPosition.CenterParent;
            fm.ctrlData      = ctrlData;
            if (fm.ShowDialog(this) == DialogResult.OK)
            {
                nhacc       = fm.result_nhacc;
                txtNCC.Text = nhacc.Ten;
            }
        }