mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
修复更好买优化内存导致的bug
This commit is contained in:
parent
cf6e48ed6a
commit
a6d171d1a0
@ -42,8 +42,12 @@ namespace VPet_Simulator.Windows
|
||||
public void Show(Food.FoodType type)
|
||||
{
|
||||
mw.Topmost = false;
|
||||
LsbCategory.SelectedIndex = (int)type;
|
||||
//OrderItemSource(type, LsbSortRule.SelectedIndex, LsbSortAsc.SelectedIndex);
|
||||
if (_searchTextBox != null)
|
||||
_searchTextBox.Text = "";
|
||||
if (LsbCategory.SelectedIndex == (int)type)
|
||||
OrderItemSource(type, LsbSortRule.SelectedIndex, LsbSortAsc.SelectedIndex == 0);
|
||||
else
|
||||
LsbCategory.SelectedIndex = (int)type;
|
||||
Show();
|
||||
}
|
||||
public void OrderItemSource(Food.FoodType type, int sortrule, bool sortasc, string searchtext = null)
|
||||
|
Loading…
Reference in New Issue
Block a user