예제 #1
0
 private void fg_DoubleClick(object sender, EventArgs e)
 {
     if (m_bIsLoadFromCV)
     {
         m_iID_LoaiCV = 0;
         int.TryParse(fg.GetDataDisplay(fg.Row, "ID_LoaiCV").ToString(), out m_iID_LoaiCV);
         m_sTen_LoaiCV = fg.GetDataDisplay(fg.Row, "Ten_LoaiCV").ToString();
         Visible       = false;
     }
     else
     {
         if (fg.Row < fg.Rows.Fixed || fg.Row > fg.Rows.Count)
         {
             return;
         }
         else
         {
             frmLoaiCongViec frm;
             if (fg.Row < fg.Rows.Fixed || fg.Row > fg.Rows.Count)
             {
                 return;
             }
             int iID_LoaiCV = int.Parse(fg.Rows[fg.Row]["ID_LoaiCV"].ToString());
             frm = new frmLoaiCongViec(iID_LoaiCV, true);
             frm.frmDM_LoaiCongViec = this;
             frm.ShowDialog();
         }
     }
 }
예제 #2
0
        private void Insert_LoaiCongViec()
        {
            frmLoaiCongViec frm;

            if (fg.Row < fg.Rows.Fixed || fg.Row > fg.Rows.Count)
            {
                frm = new frmLoaiCongViec();
                frm.frmDM_LoaiCongViec = this;
                frm.ShowDialog();
            }
            else
            {
                int iID_Nhom = int.Parse(fg.Rows[fg.Row]["ID_LoaiCV"].ToString());
                frm = new frmLoaiCongViec(iID_Nhom);
                frm.frmDM_LoaiCongViec = this;
                frm.ShowDialog();
            }
        }
예제 #3
0
 private void btnSua_Click(object sender, EventArgs e)
 {
     if (fg.Row < fg.Rows.Fixed || fg.Row > fg.Rows.Count)
     {
         return;
     }
     else
     {
         frmLoaiCongViec frm;
         if (fg.Row < fg.Rows.Fixed || fg.Row > fg.Rows.Count)
         {
             return;
         }
         int iID_LoaiCV = int.Parse(fg.Rows[fg.Row]["ID_LoaiCV"].ToString());
         frm = new frmLoaiCongViec(iID_LoaiCV, true);
         frm.frmDM_LoaiCongViec = this;
         frm.ShowDialog();
     }
 }