private void RemoveTrustedLeaf(object sender, RoutedEventArgs e)
        {
            int i = this.listBox3.SelectedIndex;

            if (i > -1)
            {
                core.LinkHub.TrustedLeafItem item = (core.LinkHub.TrustedLeafItem) this.listBox3.Items[i];
                core.LinkHub.TrustedLeavesManager.RemoveItem(item);
                this.listBox3.Items.RemoveAt(i);
            }
        }
        private void AddLink(String name, Guid guid)
        {
            core.LinkHub.TrustedLeafItem item = new core.LinkHub.TrustedLeafItem
            {
                Guid = guid,
                Name = name
            };

            if (!core.LinkHub.TrustedLeavesManager.AddItem(item))
            {
                MessageBox.Show(GUILabels.IsSpanish ? GUILabels.spanish["mboxd"] : GUILabels.english["mboxd"],
                                "sb0t", MessageBoxButton.OK, MessageBoxImage.Exclamation);
            }
            else
            {
                this.listBox3.Items.Add(item);
            }
        }