Пример #1
0
        private void OnAddGiaVonDichVu()
        {
            dlgAddGiaVonDichVu dlg = new dlgAddGiaVonDichVu();

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                DisplayAsThread();
            }
        }
Пример #2
0
        private void OnEditGiaVonDichVu()
        {
            if (dgGiaVonDichVu.SelectedRows == null || dgGiaVonDichVu.SelectedRows.Count <= 0)
            {
                MsgBox.Show(Application.ProductName, "Vui lòng chọn 1 giá vốn dịch vụ.", IconType.Information);
                return;
            }

            DataRow drGiaVonDichVu = (dgGiaVonDichVu.SelectedRows[0].DataBoundItem as DataRowView).Row;

            if (drGiaVonDichVu == null)
            {
                return;
            }
            dlgAddGiaVonDichVu dlg = new dlgAddGiaVonDichVu(drGiaVonDichVu);

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                DisplayAsThread();
            }
        }