private void buttonShowTabs_Click(object sender, EventArgs e) { if (comboBoxLeague.Text != "" & textBoxAcc.Text != "") { GridFormating.FormatGriForUserTabs(WebTools.GetUserTabs(config.Account), config, dataGridViewStashes); } }
public Form1() { InitializeComponent(); LoadConfig(); stashDumper = new StashDumpLogic(this); stashSorter = new StashSorterLogic(this, config); gridFormating = new GridFormating(this, config); }
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); }