private void textBox2_KeyUp(object sender, KeyEventArgs e) { try { if (textBox2.Text != string.Empty) { textBox1.Text = SteamLibrary.DoFracture(SteamLibrary.CalcWithFee(SteamLibrary.GetSweetPrice(textBox2.Text))); } } catch (Exception) { } }
private void button7_Click(object sender, EventArgs e) { if (SteamParsing.InventList.Count == 0) { MessageBox.Show("Please load inventory first!", "Attention", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } if (InvenLV.SelectedItems.Count == 0) { MessageBox.Show("Please select one item!", "Attention", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } else { int app = comboBox1.SelectedIndex; SteamAutoFunction.SellingList.Clear(); for (int i = 0; i < InvenLV.SelectedItems.Count; i++) { var ouritem = SteamParsing.InventList[InvenLV.SelectedItems[i].Index]; if ((ouritem.Marketable) && (!ouritem.BuyPrice.Equals("0"))) { SteamAutoFunction.SellingList.Add(new SteamLibrary.ItemToSell(ouritem.AssetId, SteamLibrary.CalcWithFee(ouritem.BuyPrice), SteamLibrary.GetAppFromIndex(app, false))); } } if (SteamAutoFunction.SellingList.Count != 0) { if (SteamAutoFunction.IsRemove) { StatusLabel1.Text = "Removing"; StatusPB.Image = Properties.Resources.icon1; } else { StatusLabel1.Text = "Add to sell"; StatusPB.Image = Properties.Resources.icon1; } //steam_srch.sellDelay = Convert.ToInt32(sellDelayBox.Text); //steam_srch.isDelayRand = randomDelayBox.Checked; SteamAuto.SellThreadExcute(); } else { MessageBox.Show("Select items to sell first!", "Attention", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } }