diff --git a/Wox/ResultItem.xaml b/Wox/ResultItem.xaml index 6eecb91e8..ea5b63db5 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 17046b0dd..1c995ec03 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 41dd254b8..3f7eecf5c 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); } }