public override void EventHandler(object sender, System.EventArgs e) { if (IApp != null) { CatEditer catEdit = new CatEditer(); catEdit.CallBackHandler = new AmonHandler<Cat>(IApp.AppendCat); catEdit.Show(IApp.Form, new Cat()); } }
public override void EventHandler(object sender, System.EventArgs e) { if (IApp == null) { return; } var cat = IApp.SelectedCat; if (cat == null || cat.Id == CPwd.DEF_CAT_ID) { return; } CatEditer catEdit = new CatEditer(); catEdit.CallBackHandler = new AmonHandler<Cat>(IApp.UpdateCat); catEdit.Show(IApp.Form, cat); }