private void m_pGetUserOrGroup_Click(object sender, EventArgs e)
        {
            SelectUserOrGroupForm selectUserOrGroupForm = new SelectUserOrGroupForm(this.m_pVirtualServer, true, false);

            if (selectUserOrGroupForm.ShowDialog(this) == DialogResult.OK)
            {
                this.m_pMember.Text = selectUserOrGroupForm.SelectedUserOrGroup;
            }
        }
 private void m_pTab_General_Toolbar_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
 {
     if (e.ClickedItem.Tag == null)
     {
         return;
     }
     if (e.ClickedItem.Tag.ToString() == "add")
     {
         if (this.m_pTab_General_Name.Text == "")
         {
             MessageBox.Show(this, "Please fill Group name !", "Error:", MessageBoxButtons.OK, MessageBoxIcon.Hand);
             return;
         }
         if (this.m_pGroup == null)
         {
             this.m_pGroup = this.m_pVirtualServer.Groups.Add(this.m_pTab_General_Name.Text, this.m_pTab_General_Description.Text, this.m_pTab_General_Enabled.Checked);
         }
         List <string> list = new List <string>();
         list.Add(this.m_pTab_General_Name.Text.ToLower());
         foreach (ListViewItem listViewItem in this.m_pTab_General_GroupMembers.Items)
         {
             list.Add(listViewItem.Text.ToLower());
         }
         SelectUserOrGroupForm selectUserOrGroupForm = new SelectUserOrGroupForm(this.m_pVirtualServer, true, false, list);
         if (selectUserOrGroupForm.ShowDialog(this) == DialogResult.OK)
         {
             this.m_pGroup.Members.Add(selectUserOrGroupForm.SelectedUserOrGroup);
             this.m_pTab_General_GroupMembers.SelectedItems.Clear();
             ListViewItem listViewItem2 = new ListViewItem(selectUserOrGroupForm.SelectedUserOrGroup);
             listViewItem2.Selected = true;
             if (this.m_pVirtualServer.Groups.Contains(selectUserOrGroupForm.SelectedUserOrGroup))
             {
                 listViewItem2.ImageIndex = 0;
             }
             else
             {
                 listViewItem2.ImageIndex = 1;
             }
             this.m_pTab_General_GroupMembers.Items.Add(listViewItem2);
             return;
         }
     }
     else if (e.ClickedItem.Tag.ToString() == "delete")
     {
         this.m_pGroup.Members.Remove(this.m_pTab_General_GroupMembers.SelectedItems[0].Text);
         this.m_pTab_General_GroupMembers.SelectedItems[0].Remove();
     }
 }
        private void m_pAccess_Add_Click(object sender, EventArgs e)
        {
            List <string> list = new List <string>();

            foreach (ListViewItem listViewItem in this.m_pAccess.Items)
            {
                list.Add(listViewItem.Text.ToLower());
            }
            SelectUserOrGroupForm selectUserOrGroupForm = new SelectUserOrGroupForm(this.m_pVirtualServer, true, true, true, list);

            if (selectUserOrGroupForm.ShowDialog(this) == DialogResult.OK)
            {
                this.m_pMailingList.ACL.Add(selectUserOrGroupForm.SelectedUserOrGroup);
                this.LoadAccess(selectUserOrGroupForm.SelectedUserOrGroup);
            }
        }