コード例 #1
0
ファイル: GroupInvite.cs プロジェクト: CasperTech/radegast
        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
ファイル: GroupInvite.cs プロジェクト: CasperTech/radegast
 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);
        }