Ejemplo n.º 1
0
 private void addSidToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (AddSidForm form = new AddSidForm())
     {
         if (form.ShowDialog(this) == DialogResult.OK)
         {
             UserGroup group = new UserGroup(form.Sid, GroupFlags.None);
             PopulateGroupList(listViewRestrictedSids, new UserGroup[] { group });
         }
     }
 }
        private void addSidToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ListView listView = GetListViewOwner(sender);

            if (listView != null)
            {
                using (AddSidForm form = new AddSidForm())
                {
                    if (form.ShowDialog(this) == DialogResult.OK)
                    {
                        UserGroup group = new UserGroup(new Sid(form.Sid), GroupAttributes.None);
                        PopulateGroupList(listView, new UserGroup[] { group });
                    }
                }
            }
        }
 private void addSidToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (AddSidForm form = new AddSidForm())
     {
         if (form.ShowDialog(this) == DialogResult.OK)
         {
             UserGroup group = new UserGroup(form.Sid, GroupFlags.None);
             PopulateGroupList(listViewRestrictedSids, new UserGroup[] { group });
         }
     }
 }