コード例 #1
0
ファイル: GroupForm.cs プロジェクト: bubriks/Turakas
 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);
 }
コード例 #2
0
        /// <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
        }
コード例 #3
0
        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
        }
コード例 #4
0
        /// <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
        }