Exemplo n.º 1
0
        public override void New(object sender, EventArgs e)
        {
            CompanyInsUp popup = new CompanyInsUp(CompanyInsUp.EditMode.Insert, null);

            if (popup.ShowDialog() == DialogResult.OK)
            {
                frm.NoticeMessage     = Resources.AddDone;
                dgvCompany.DataSource = null;
                LoadGridView();
            }
        }
Exemplo n.º 2
0
 public override void Modify(object sender, EventArgs e)
 {
     if (dgvCompany.SelectedRows.Count < 1)
     {
         frm.NoticeMessage = Resources.ModEmpty;
     }
     else
     {
         CompanyInsUp popup = new CompanyInsUp(CompanyInsUp.EditMode.Update, item);
         if (popup.ShowDialog() == DialogResult.OK)
         {
             frm.NoticeMessage     = Resources.ModDone;
             dgvCompany.DataSource = null;
             LoadGridView();
         }
     }
 }