コード例 #1
0
        private void btnTaoMoi_Click(object sender, EventArgs e)
        {
            frmLoaiSach newform = new frmLoaiSach();

            newform.Show();
            this.Dispose(false);
            //int dem = dtrwLoaiSach.Rows.Count;
            //for (int i = 0; i < dem; i++)
            //    dtrwLoaiSach.Rows.RemoveAt(0);
            //////dtrwLoaiSach.DataSource = null;
            //////dtrwLoaiSach.Rows.Clear();
            ////dtrwLoaiSach.Refresh();
            //loadDuLieuDataGLoaiSach();
            ////fixsize();
            ////vohieuhoatxt();
            ////vohieuhoabtn();
            ////dtrwLoaiSach.ReadOnly = true;
            ////dtrwLoaiSach.AllowUserToAddRows = false;
        }
コード例 #2
0
        private void loaisachToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmLoaiSach formls = new frmLoaiSach();

            formls.Show();
        }