Пример #1
0
        private void btnTimSach_Click(object sender, EventArgs e)
        {
            FormTimSach form = new FormTimSach();

            form.Show();
            this.Visible   = false;
            form.Disposed += FormTimSach_Disposed;
        }
Пример #2
0
        private void FormTimSach_Disposed(object sender, EventArgs e)
        {
            FormTimSach form = sender as FormTimSach;

            this.Visible = true;
            idSach       = form.IdSachChon;
            if (idSach != -1)
            {
                LoadSach();
            }
            else
            {
                txtIDSach.Text    = "";
                txtTenSach.Text   = "";
                txtTinhTrang.Text = "";
            }
        }