Esempio n. 1
0
        private void btnThem_Click(object sender, EventArgs e)
        {
            var frm = new BangGiaForm(this.LoaiBangGia, FormStateS.New);
            frm.MinimizeBox = false;
            frm.MaximizeBox = false;
            frm.Text = "[Thêm mới]";
            frm.StartPosition = FormStartPosition.CenterParent;
            frm.ShowDialog();
            if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
                LoadBangGia();

        }
Esempio n. 2
0
 private void btnSua_Click(object sender, EventArgs e)
 {
     if (this.IdBangGiaChon <= 0)
         return;
     //
     var frm = new BangGiaForm(this.LoaiBangGia, FormStateS.Edit, this.IdBangGiaChon);
     frm.MinimizeBox = false;
     frm.MaximizeBox = false;
     frm.Text = "[Sửa]";
     frm.StartPosition = FormStartPosition.CenterParent;
     frm.ShowDialog();
     if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
         LoadBangGia();
 }
Esempio n. 3
0
        private void btnXemBangGiaKem_Click(object sender, EventArgs e)
        {
            if (this.IdBangGia <= 0)
            {
                return;
            }
            //
            var frm = new BangGiaForm(this.LoaiBangGia, FormStateS.View, this.IdBangGia);

            frm.MinimizeBox   = false;
            frm.MaximizeBox   = false;
            frm.Text          = "[Xem]";
            frm.StartPosition = FormStartPosition.CenterParent;
            frm.ShowDialog();
        }