/// <summary> /// 添加角色信息 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void SysRoleClient_SysRoleInfoAddCompleted(object sender, SysRoleInfoAddCompletedEventArgs e) { if (!e.Cancelled) { if (e.Result == "") { Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("ADDSUCCESSEDSYSROLE")); FormType = FormTypes.Edit; RefreshUI(action); } else { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Result.ToString()); return; } } }
/// <summary> /// 添加角色信息 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void SysRoleClient_SysRoleInfoAddCompleted(object sender, SysRoleInfoAddCompletedEventArgs e) { if (!e.Cancelled) { if (e.Result == "") { Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("ADDSUCCESSEDSYSROLE")); FormType = FormTypes.Edit; RefreshUI(action); } else { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Result.ToString()); return; } } }