Esempio n. 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);
        }
Esempio n. 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");
 }
Esempio n. 3
0
        public MuteResidentForm(RadegastInstance instance)
            : base(instance)
        {
            InitializeComponent();
            Disposed        += new EventHandler(MuteResidentForm_Disposed);
            AutoSavePosition = true;

            this.instance = instance;
            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);

            GUI.GuiHelpers.ApplyGuiFixes(this);
        }
Esempio n. 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;
            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);

            GUI.GuiHelpers.ApplyGuiFixes(this);
        }