Ejemplo n.º 1
0
        public frmGive(METAboltInstance instance, InventoryItem item)
        {
            InitializeComponent();

            this.instance = instance;
            //netcom = this.instance.Netcom;
            client    = this.instance.Client;
            this.item = item;

            textBox1.GotFocus += textBox1_GotFocus;
            textBox1.MouseUp  += textBox1_MouseUp;
            textBox1.Leave    += textBox1_Leave;

            client.Directory.DirPeopleReply += new EventHandler <DirPeopleReplyEventArgs>(Directory_OnDirPeopleReply);
            client.Groups.GroupMembersReply += new EventHandler <GroupMembersReplyEventArgs>(GroupMembersHandler);
            client.Avatars.UUIDNameReply    += new EventHandler <UUIDNameReplyEventArgs>(AvatarNamesHandler);

            groupmode = false;

            client.Groups.RequestCurrentGroups();

            label2.Text = "Give item: " + item.Name;

            lvwColumnSorter = new NumericStringComparer();
            lvwFindFriends.ListViewItemSorter = lvwColumnSorter;
            lvwSelected.ListViewItemSorter    = lvwColumnSorter;
        }
Ejemplo n.º 2
0
        public FindPeopleConsole(METAboltInstance instance, UUID queryID)
        {
            InitializeComponent();

            findPeopleResults = new SafeDictionary<string, UUID>();
            this.queryID = queryID;

            this.instance = instance;
            //netcom = this.instance.Netcom;
            client = this.instance.Client;
            AddClientEvents();

            lvwColumnSorter = new NumericStringComparer();
            lvwFindPeople.ListViewItemSorter = lvwColumnSorter;
        }
Ejemplo n.º 3
0
        public FindGroups(METAboltInstance instance, UUID queryID)
        {
            InitializeComponent();

            findGroupsResults = new SafeDictionary <string, UUID>();
            this.queryID      = queryID;

            this.instance = instance;
            //netcom = this.instance.Netcom;
            client = this.instance.Client;
            AddClientEvents();

            lvwColumnSorter = new NumericStringComparer();
            lvwFindGroups.ListViewItemSorter = lvwColumnSorter;
        }
Ejemplo n.º 4
0
        public FindPlaces(METAboltInstance instance, UUID queryID)
        {
            InitializeComponent();

            findPlacesResults = new SafeDictionary<string, DirectoryManager.DirectoryParcel>();
            this.queryID = queryID;

            this.instance = instance;
            //netcom = this.instance.Netcom;
            client = this.instance.Client;
            AddClientEvents();

            lvwColumnSorter = new NumericStringComparer();
            lvwFindPlaces.ListViewItemSorter = lvwColumnSorter;
        }
Ejemplo n.º 5
0
        public frmProfile(METAboltInstance instance, string fullName, UUID agentID)
        {
            InitializeComponent();

            SetExceptionReporter();
            Application.ThreadException += new ThreadExceptionHandler().ApplicationThreadException;

            this.instance = instance;
            netcom        = this.instance.Netcom;
            client        = this.instance.Client;
            this.fullName = fullName;
            this.agentID  = agentID;
            tabConsole    = instance.TabConsole;

            while (!IsHandleCreated)
            {
                // Force handle creation
                IntPtr temp = Handle;
            }

            this.txtOnline.Text = "";
            this.Text           = fullName + " (profile) - METAbolt";

            AddClientEvents();
            AddNetcomEvents();

            InitializeProfile();

            if (agentID == client.Self.AgentID)
            {
                rtbAbout.ReadOnly    = false;
                txtWebURL.ReadOnly   = false;
                rtbAboutFL.ReadOnly  = false;
                picSLImage.AllowDrop = true;
                picFLImage.AllowDrop = true;
                //txtDisplayName.ReadOnly = false;
                button7.Enabled         = true;
                button8.Enabled         = true;
                txtTitle.ReadOnly       = false;
                txtDescription.ReadOnly = false;
            }

            lvwColumnSorter             = new NumericStringComparer();
            lvGroups.ListViewItemSorter = lvwColumnSorter;
            lvwPicks.ListViewItemSorter = lvwColumnSorter;
        }
Ejemplo n.º 6
0
        public frmGive(METAboltInstance instance, InventoryItem item)
        {
            InitializeComponent();

            this.instance = instance;
            //netcom = this.instance.Netcom;
            client = this.instance.Client;
            this.item = item;

            textBox1.GotFocus += textBox1_GotFocus;
            textBox1.MouseUp += textBox1_MouseUp;
            textBox1.Leave += textBox1_Leave;

            client.Directory.DirPeopleReply += new EventHandler<DirPeopleReplyEventArgs>(Directory_OnDirPeopleReply);
            client.Groups.GroupMembersReply += new EventHandler<GroupMembersReplyEventArgs>(GroupMembersHandler);
            client.Avatars.UUIDNameReply += new EventHandler<UUIDNameReplyEventArgs>(AvatarNamesHandler);

            groupmode = false;

            client.Groups.RequestCurrentGroups();

            label2.Text = "Give item: " + item.Name;

            lvwColumnSorter = new NumericStringComparer();
            lvwFindFriends.ListViewItemSorter = lvwColumnSorter;
            lvwSelected.ListViewItemSorter = lvwColumnSorter;
        }
Ejemplo n.º 7
0
        public frmProfile(METAboltInstance instance, string fullName, UUID agentID)
        {
            InitializeComponent();

            SetExceptionReporter();
            Application.ThreadException += new ThreadExceptionHandler().ApplicationThreadException;

            this.instance = instance;
            netcom = this.instance.Netcom;
            client = this.instance.Client;
            this.fullName = fullName;
            this.agentID = agentID;
            tabConsole = instance.TabConsole;

            while (!IsHandleCreated)
            {
                // Force handle creation
                IntPtr temp = Handle;
            }

            this.txtOnline.Text = "";
            this.Text = fullName + " (profile) - METAbolt";

            AddClientEvents();
            AddNetcomEvents();

            InitializeProfile();

            if (agentID == client.Self.AgentID)
            {
                rtbAbout.ReadOnly = false;
                txtWebURL.ReadOnly = false;
                rtbAboutFL.ReadOnly = false;
                picSLImage.AllowDrop = true;
                picFLImage.AllowDrop = true;
                //txtDisplayName.ReadOnly = false;
                button7.Enabled = true;
                button8.Enabled = true;
                txtTitle.ReadOnly = false;
                txtDescription.ReadOnly = false;
            }

            lvwColumnSorter = new NumericStringComparer();
            lvGroups.ListViewItemSorter = lvwColumnSorter;
            lvwPicks.ListViewItemSorter = lvwColumnSorter;
        }