Adjust score weight for programs.

This commit is contained in:
qianlifeng
2014-08-10 16:50:35 +08:00
parent 3fea8eb820
commit 0e812b911e
4 changed files with 5 additions and 32 deletions

View File

@@ -70,29 +70,6 @@ namespace Wox
return location;
}
private FrameworkElement FindByName(string name, FrameworkElement root)
{
Stack<FrameworkElement> tree = new Stack<FrameworkElement>();
tree.Push(root);
while (tree.Count > 0)
{
FrameworkElement current = tree.Pop();
if (current.Name == name)
return current;
int count = VisualTreeHelper.GetChildrenCount(current);
for (int i = 0; i < count; ++i)
{
DependencyObject child = VisualTreeHelper.GetChild(current, i);
if (child is FrameworkElement)
tree.Push((FrameworkElement)child);
}
}
return null;
}
public void SelectNext()
{
int index = lbResults.SelectedIndex;