Beispiel #1
0
 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());
     }
 }
Beispiel #2
0
        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);
        }