Beispiel #1
0
 public static void RunRequestByStatus(DataGridView data)
 {
     for (int i = 0; i < data.Rows.Count; i++)
     {
         if (Convert.ToInt32(data.Rows[i].Cells["ui_status"].Value) == 2)
         {
             BuySellBot.ItemRequest(csgo_itemRequest + keyMarket);
         }
     }
 }
Beispiel #2
0
 public static void RunRequestByStatus(DataGridView data, IProgress <string> progress, ref bool requestMode)
 {
     for (int i = 0; i < data.Rows.Count; i++)
     {
         if (Convert.ToInt32(data.Rows[i].Cells["ui_status"].Value) == 2)
         {
             BuySellBot.ItemRequest(csgo_itemRequest + keyMarket);
         }
         progress.Report(Convert.ToDouble((i + 1) * 100 / data.Rows.Count).ToString() + "%");
     }
     requestMode = false;
 }