Пример #1
0
        public GroupInvite(METAboltInstance instance, Group group, Dictionary <UUID, GroupRole> roles)
            : base(instance)
        {
            InitializeComponent();
            Disposed        += new EventHandler(GroupInvite_Disposed);
            AutoSavePosition = true;

            this.instance = instance;
            this.roles    = roles;
            this.group    = group;
            this.netcom   = instance.Netcom;

            picker = new AvatarPicker(instance)
            {
                Dock = DockStyle.Fill
            };
            Controls.Add(picker);
            picker.SelectionChaged += new EventHandler(picker_SelectionChaged);
            picker.BringToFront();

            netcom.ClientDisconnected += new EventHandler <DisconnectedEventArgs>(Netcom_ClientDisconnected);

            cmbRoles.Items.Add(roles[UUID.Zero]);
            cmbRoles.SelectedIndex = 0;

            foreach (KeyValuePair <UUID, GroupRole> role in roles)
            {
                if (role.Key != UUID.Zero)
                {
                    cmbRoles.Items.Add(role.Value);
                }
            }
        }
Пример #2
0
 void GroupInvite_Disposed(object sender, EventArgs e)
 {
     netcom.ClientDisconnected -= new EventHandler <DisconnectedEventArgs>(Netcom_ClientDisconnected);
     netcom   = null;
     instance = null;
     picker.Dispose();
     Logger.DebugLog("Group picker disposed");
 }
Пример #3
0
        public MuteResidentForm(METAboltInstance instance)
            : base(instance)
        {
            InitializeComponent();
            Disposed        += new EventHandler(MuteResidentForm_Disposed);
            AutoSavePosition = true;

            this.instance = instance;
            this.netcom   = instance.Netcom;

            picker = new AvatarPicker(instance)
            {
                Dock = DockStyle.Fill
            };
            Controls.Add(picker);
            picker.SelectionChaged += new EventHandler(picker_SelectionChaged);
            picker.BringToFront();

            netcom.ClientDisconnected += new EventHandler <DisconnectedEventArgs>(Netcom_ClientDisconnected);
        }
Пример #4
0
        public BanGroupMember(METAboltInstance instance, Group group, GroupDetails parent)
            : base(instance)
        {
            InitializeComponent();
            Disposed        += new EventHandler(GroupInvite_Disposed);
            AutoSavePosition = true;

            this.instance = instance;
            this.group    = group;
            this.netcom   = instance.Netcom;
            this.parent   = parent;

            picker = new AvatarPicker(instance)
            {
                Dock = DockStyle.Fill
            };
            Controls.Add(picker);
            picker.SelectionChaged += new EventHandler(picker_SelectionChaged);
            picker.BringToFront();

            netcom.ClientDisconnected += new EventHandler <DisconnectedEventArgs>(Netcom_ClientDisconnected);
        }