Пример #1
0
        public GroupInvite(RadegastInstance 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;
            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);
                }
            }

            GUI.GuiHelpers.ApplyGuiFixes(this);
        }
Пример #2
0
        public GroupInvite(RadegastInstance 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);
        }
Пример #3
0
        public MuteResidentForm(RadegastInstance 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(RadegastInstance 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);
        }
Пример #5
0
        public MuteResidentForm(RadegastInstance 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);
        }
Пример #6
0
        public BanGroupMember(RadegastInstance 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);
        }