Beispiel #1
0
 private void localButton_Click(object sender, RoutedEventArgs e)
 {
     Stashes.getOnlineStashes(nameTxtBox.Text, poeidPwBox.Password, true);
     displayAllItems(Stashes.stashes[0]);
     Stashes.fillTheStashesAttributes();
     fillStashList();
 }
Beispiel #2
0
        /// <summary>
        /// Collects all mods you found, to show them in your filter
        /// </summary>
        /// <param name="filterWindow"></param>
        public static void fillFilterBox(FilterOptionsWindow filterWindow)
        {
            Stashes.getAbsolutelyAllMods();
            filterWindow.filterBox.Items.Clear();

            foreach (string mod in Stashes.absolutelyAllMods)
            {
                if (filterWindow.searchFilterTxtBox.Text == "" || mod.ToLower().Contains(filterWindow.searchFilterTxtBox.Text.ToLower()))
                {
                    ListBoxItem item = new ListBoxItem();
                    item.Content = mod;
                    filterWindow.filterBox.Items.Add(item);
                }
            }
        }