BKI_DichVuMatDat.CONFIRM.msg003_hien_thi_danh_sach.Display C# (CSharp) Method

Display() public method

public Display ( string ipFormText, string ipContentCaption, string ipContent ) : void
ipFormText string
ipContentCaption string
ipContent string
return void
        public void Display(string ipFormText, string ipContentCaption, string ipContent)
        {
            Text = ipFormText;
            m_lbl_content.Text = ipContentCaption;
            m_memo_content.Text = ipContent;
            ShowDialog();
        }

Usage Example

 private bool check_du_lieu()
 {
     var v_i_row_count = m_grv_main.RowCount;
     for(int v_i_row = 0; v_i_row < v_i_row_count; v_i_row++)
     {
         var v_dr = m_grv_main.GetDataRow(v_i_row);
         if(v_dr["MA_NV"] == DBNull.Value)
         {
             XtraMessageBox.Show("Dữ liệu tại dòng thứ " + v_i_row + 2 + " cột MA_NV bị trống!", "LỖI DỮ LIỆU", MessageBoxButtons.OK, MessageBoxIcon.Warning);
             return false;
         }
         if(v_dr["SO_TIEN"] == DBNull.Value)
         {
             XtraMessageBox.Show("Dữ liệu tại dòng thứ " + v_i_row + 2 + " cột SO_TIEN bị trống!", "LỖI DỮ LIỆU", MessageBoxButtons.OK, MessageBoxIcon.Warning);
             return false;
         }
     }
     if(!kiem_tra_du_lieu_ma_nhan_vien_truoc_khi_luu())
     {
         msg003_hien_thi_danh_sach v_msg = new msg003_hien_thi_danh_sach();
         v_msg.Display("THÔNG BÁO", "Các mã nhân viên sau chưa có trong dữ liệu phần mềm", convert_list_to_string(m_lst_nhan_vien_khong_ton_tai));
         return false;
     }
     return true;
 }