コード例 #1
0
        public override void New(object sender, EventArgs e)
        {
            CategoryInsUp popup = new CategoryInsUp(CategoryInsUp.EditMode.Insert, null);

            if (popup.ShowDialog() == DialogResult.OK)
            {
                frm.NoticeMessage      = Resources.AddDone;
                dgvCategory.DataSource = null;
                LoadGridView();
            }
        }
コード例 #2
0
 public override void Modify(object sender, EventArgs e)
 {
     if (dgvCategory.SelectedRows.Count < 1)
     {
         frm.NoticeMessage = Resources.ModEmpty;
     }
     else
     {
         CategoryInsUp popup = new CategoryInsUp(CategoryInsUp.EditMode.Update, item);
         if (popup.ShowDialog() == DialogResult.OK)
         {
             frm.NoticeMessage      = Resources.ModDone;
             dgvCategory.DataSource = null;
             LoadGridView();
         }
     }
 }