예제 #1
0
        private void CopyBootstrapLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            BootstrapItem item = BootstrapList.SelectedItem as BootstrapItem;

            if (item == null)
            {
                return;
            }

            Clipboard.SetText(item.ToString());
        }
예제 #2
0
        private void RemoveBootstrapLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            BootstrapItem item = BootstrapList.SelectedItem as BootstrapItem;

            if (item == null)
            {
                return;
            }

            item.Core.Network.Cache.BootstrapContacts.Remove(item.Contact.CacheHash());

            RefreshBootstrapList();
        }