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

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