void OnAction(ActionEventArgs args) { if (Action != null) Action(this, args); }
/// <summary> /// Events raised from the user specific user controls to the parent /// </summary> /// <param name="sender">The object sending the event</param> /// <param name="args">Arguments sent from the parent</param> void EditUserAction(object sender, ActionEventArgs args) { switch (args.Trigger) { case ActionTriggers.Save: if (UserId != Guid.Empty) { var user = UserManager.GetUser(UserId); litUserTitleName.Text = UserManager.GetUserDisplayName(user.UserName); } break; } }