private void MenuItemNewRemoveGroup_Click(Object sender, EventArgs e)//Right cick menu button clicked { client.DeleteGroup(profileId, (lbAllGroups.SelectedItem as Group).ActivityId); groupId = 0; BtnCreate.Text = "Create new group"; txtUserName.Enabled = false; BtnAddUser.Enabled = false; ButtonRefresh_Click(null, null); }
/// <summary>Snippet for DeleteGroup</summary> public void DeleteGroup() { // Snippet: DeleteGroup(GroupName,CallSettings) // Create client GroupServiceClient groupServiceClient = GroupServiceClient.Create(); // Initialize request argument(s) GroupName name = new GroupName("[PROJECT]", "[GROUP]"); // Make the request groupServiceClient.DeleteGroup(name); // End snippet }
public void DeleteGroup() { // Snippet: DeleteGroup(string,CallSettings) // Create client GroupServiceClient groupServiceClient = GroupServiceClient.Create(); // Initialize request argument(s) string formattedName = GroupServiceClient.FormatGroupName("[PROJECT]", "[GROUP]"); // Make the request groupServiceClient.DeleteGroup(formattedName); // End snippet }
/// <summary>Snippet for DeleteGroup</summary> public void DeleteGroup_RequestObject() { // Snippet: DeleteGroup(DeleteGroupRequest,CallSettings) // Create client GroupServiceClient groupServiceClient = GroupServiceClient.Create(); // Initialize request argument(s) DeleteGroupRequest request = new DeleteGroupRequest { GroupName = new GroupName("[PROJECT]", "[GROUP]"), }; // Make the request groupServiceClient.DeleteGroup(request); // End snippet }