private void btnSave_Click(object sender, RoutedEventArgs e) { BizObject bizObject = new BizObject(); if (Object == null) { Object = new ObjectDTO(); } Object.ObjectName = txtObjectName.Text; Object.Category = txtCategory.Text; Object.NeedsExplicitPermission = chkNeedsExplicitPermission.IsChecked == true; bizObject.SaveObject(Object); if (ObjectSaved != null) { ObjectSavedArg arg = new ObjectSavedArg(); arg.Object = Object; ObjectSaved(this, arg); } }
void ucObjectEdit_ObjectSaved(object sender, ObjectSavedArg e) { ucObjectList.ShowObjects(e.Object.ParentID); }