From 953adadd6210e28a0c0ddd4e82e7f6c61c291d16 Mon Sep 17 00:00:00 2001 From: qianlifeng Date: Sun, 9 Feb 2014 11:24:47 +0800 Subject: [PATCH] Remove number placeholder in the right of result item. --- Wox/ResultItem.xaml | 7 +------ Wox/ResultItem.xaml.cs | 14 -------------- Wox/ResultPanel.xaml.cs | 1 - 3 files changed, 1 insertion(+), 21 deletions(-) diff --git a/Wox/ResultItem.xaml b/Wox/ResultItem.xaml index 6eecb91e88..ea5b63db5b 100644 --- a/Wox/ResultItem.xaml +++ b/Wox/ResultItem.xaml @@ -12,10 +12,9 @@ - - + @@ -23,9 +22,5 @@ Title sub title - - - - diff --git a/Wox/ResultItem.xaml.cs b/Wox/ResultItem.xaml.cs index 17046b0ddd..1c995ec031 100644 --- a/Wox/ResultItem.xaml.cs +++ b/Wox/ResultItem.xaml.cs @@ -30,24 +30,10 @@ namespace Wox set { selected = value; - if (selected) - { - img.Visibility = Visibility.Visible; - img.Source = new BitmapImage(new Uri(Directory.GetCurrentDirectory() + "\\Images\\enter.png")); - } - else - { - img.Visibility = Visibility.Hidden; - } OnPropertyChanged("Selected"); } } - public void SetIndex(int index) - { - tbIndex.Text = index.ToString(); - } - public ResultItem(Result result) { InitializeComponent(); diff --git a/Wox/ResultPanel.xaml.cs b/Wox/ResultPanel.xaml.cs index 41dd254b85..3f7eecf5c7 100644 --- a/Wox/ResultPanel.xaml.cs +++ b/Wox/ResultPanel.xaml.cs @@ -36,7 +36,6 @@ namespace Wox if (!CheckExisted(result)) { ResultItem control = new ResultItem(result); - control.SetIndex(i + 1); pnlContainer.Children.Insert(GetInsertLocation(result.Score), control); } }