コード例 #1
0
        public override void AddNew()
        {
            GoodsEditForm goods = new GoodsEditForm();

            if (goods.ShowDialog() == DialogResult.OK)
            {
                Query();
            }
        }
コード例 #2
0
 public override void Modify()
 {
     if (gridView1.FocusedRowHandle >= 0)
     {
         Guid          Id    = Guid.Parse(gridView1.GetFocusedRowCellValue("Id").ToString());
         var           model = manager.GetOneModel(Id);
         GoodsEditForm sub   = new GoodsEditForm(model);
         if (sub.ShowDialog() == DialogResult.OK)
         {
             Query();
         }
     }
 }