示例#1
0
 private void buttonShowTabs_Click(object sender, EventArgs e)
 {
     if (comboBoxLeague.Text != "" & textBoxAcc.Text != "")
     {
         GridFormating.FormatGriForUserTabs(WebTools.GetUserTabs(config.Account), config, dataGridViewStashes);
     }
 }
示例#2
0
        public Form1()
        {
            InitializeComponent();

            LoadConfig();

            stashDumper   = new StashDumpLogic(this);
            stashSorter   = new StashSorterLogic(this, config);
            gridFormating = new GridFormating(this, config);
        }
示例#3
0
        public bool RefreshStash()
        {
            List <StashItemsFiltered> itemsFromWeb = WebTools.GetSetCollectionItemsFromWeb(config.Account, form.dataGridViewStashes);

            if (previousItemsCount != itemsFromWeb.Count)
            {
                previousItemsCount = itemsFromWeb.Count;
                form.dataGridViewStash.Rows.Clear();
                itemsPerType.Clear();
                itemsPerType = DataConversion.SortItemsToCategories(itemsFromWeb);
                GridFormating.SetGridRowsColumns(form.dataGridViewStash, true);
                GridFormating.SetGridColorsPerItem(itemsPerType, form.dataGridViewStash, form.checkBox1.Checked, itemIcons);
                GridFormating.MakeItemsSummary(itemsPerType, form.dataGridViewItems, form.dataGridViewSets);
                form.labelLastChange.Text = "Last change: " + System.DateTime.Now.ToLongTimeString();
                return(true);
            }
            return(false);
        }