void AddNewUser() { ActionHelper.Execute(delegate { var ssoAdminSdkService = this.GetServiceGateway(); var server = _serverDto; var frm = new NewSolutionUserForm(ssoAdminSdkService, server, _tenantName); frm.ShowDialog(); if (frm.SolutionUserDto != null) { MMCDlgHelper.ShowMessage(string.Format("Solution User {0} created successfully", frm.SolutionUserDto.Name)); SolutionUsersControl.RefreshUsers(string.Empty); } }, null); }
void AddNewUser() { ActionHelper.Execute(delegate { var service = ScopeNodeExtensions.GetServiceGateway(_serverDto.ServerName); var server = _serverDto; var userForm = new NewSolutionUserForm(service, server, _tenantName); var context = this.GetApplicationContext(); var dataContext = context.NavigationController.NavigateToView(this, userForm); if (dataContext != null) { var userDto = (SolutionUserDto)dataContext; if (userDto != null) { MMCDlgHelper.ShowMessage(string.Format("Solution User {0} created successfully", userDto.Name)); SolutionUsersControl.RefreshUsers(string.Empty); } } }, null); }