Пример #1
0
        private void _BaiduNetDiskLinkText_MouseDown(object sender, MouseButtonEventArgs e)
        {
            BaiduNetDiskItem resultItem = ((TextBlock)sender).Tag as BaiduNetDiskItem;

            resultItem.StartBaiduLink();
            e.Handled = true;
        }
Пример #2
0
        public override bool Equals(object obj)
        {
            BaiduNetDiskItem item = obj as BaiduNetDiskItem;

            if (item != null)
            {
                if (!string.IsNullOrEmpty(this.BaiduNetDiskLink) &&
                    !string.IsNullOrWhiteSpace(this.BaiduNetDiskLink))
                {
                    return(string.Equals(this.BaiduNetDiskLink, item.BaiduNetDiskLink));
                }
                else
                {
                    return(object.ReferenceEquals(this, item));
                }
            }

            return(false);
        }