public void AddCertificateChain (object sender, EventArgs e) { var tenantName = GetTenant (); var form = new AddNewTenantController () {UpdateCredentials = true, TenantDto = new TenantDto {Name = tenantName}}; var result = NSApplication.SharedApplication.RunModalForWindow (form.Window); if (result == VMIdentityConstants.DIALOGOK) { var rp = AddNewCertificate(form.TenantDto); if (rp) { UIErrorHelper.ShowAlert ("Certificate chain added successfully", "Information"); Refresh (sender, e); } } }
public void OnAddNewTenant (object sender, EventArgs e) { var form = new AddNewTenantController (); var result = NSApplication.SharedApplication.RunModalForWindow (form.Window); if (result == VMIdentityConstants.DIALOGOK) { var rp = AddTenant (form.TenantDto); if (rp != null) { UIErrorHelper.ShowAlert ("Tenant " + rp.Name + " created successfully", "Information"); } } }