Пример #1
0
 //Nội dung hiển thị khi click nút "Thêm mới"
 private void BbiNew_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     using (Form_M0003_Line_Detail formDetail = new Form_M0003_Line_Detail(AddNew, _systemDAL))
     {
         formDetail.ShowDialog();
         formDetail.StartPosition = FormStartPosition.CenterParent;
         Setting_Init_Form();
     }
 }
Пример #2
0
 //Nội dung hiển thị khi click nút "Sửa"
 private void BbiEdit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     using (Form_M0003_Line_Detail formDetail = new Form_M0003_Line_Detail(gridView.GetFocusedDataRow(), _systemDAL))
     {
         formDetail.ShowDialog();
         formDetail.StartPosition = FormStartPosition.CenterParent;
         Setting_Init_Form();
     }
 }
Пример #3
0
 //Nội dung hiển thị khi double click trên lưới
 private void GridControl_DoubleClick(object sender, EventArgs e)
 {
     using (Form_M0003_Line_Detail formDetail = new Form_M0003_Line_Detail(gridView.GetFocusedDataRow(), _systemDAL))
     {
         formDetail.ShowDialog();
         formDetail.StartPosition = FormStartPosition.CenterParent;
         Setting_Init_Form();
     }
 }