public override int Add() { FormEditDict form = new FormEditDict("新增数据", FishEntity.DataTypeEnum.SYSTEM, null); form.ShowInTaskbar = false; form.RefreshEvent += form_RefreshEvent; form.ShowDialog(); return(0); }
public override int Modify() { if (dataGridView1.CurrentRow == null) { MessageBox.Show("请选择要编辑的行"); return(0); } FishEntity.DictEntity entity = dataGridView1.CurrentRow.DataBoundItem as FishEntity.DictEntity; if (entity == null) { MessageBox.Show("请选择要编辑的行"); return(0); } FormEditDict form = new FormEditDict("编辑数据", FishEntity.DataTypeEnum.BUSINESS, entity); form.ShowInTaskbar = false; form.RefreshEvent += form_RefreshEvent; form.ShowDialog(); return(0); }