Skip to content

Commit

Permalink
Load HTML instead JSON feature for Item page
Browse files Browse the repository at this point in the history
Slower but more stable method
  • Loading branch information
Maxx53 committed Jul 5, 2014
1 parent 76ba99a commit ec6eef5
Show file tree
Hide file tree
Showing 11 changed files with 2,511 additions and 2,353 deletions.
88 changes: 45 additions & 43 deletions scr/SCMBot/Main.Designer.cs

Large diffs are not rendered by default.

11 changes: 9 additions & 2 deletions scr/SCMBot/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public partial class Main : Form
bool relog = false;

static bool isLog = true;

public static bool isHTML = true;
//ItemComparer itemComparer = new ItemComparer();

static public Semaphore reqPool;
Expand Down Expand Up @@ -187,7 +187,7 @@ private void LoadSettings(bool loadtabs)
label3Stretch();

isLog = settings.keepLog;
settingsForm.keepLogBox.Checked = isLog;
settingsForm.keepLogBox.Checked = settings.keepLog;

settingsForm.checkBox2.Checked = settings.loginOnstart;
settingsForm.logCountBox.Text = settings.logCount.ToString();
Expand All @@ -196,6 +196,9 @@ private void LoadSettings(bool loadtabs)
settingsForm.ignoreBox.Checked = settings.ignoreWarn;
settingsForm.actualBox.Checked = settings.loadActual;

isHTML = settings.scanHTML;
settingsForm.scanHtlmBox.Checked = settings.scanHTML;

settingsForm.stopFundsBox.Text = MainScanItem.LogItem.DoFracture(settings.StopFunds.ToString());
stopfundsVal = settings.StopFunds;

Expand Down Expand Up @@ -306,6 +309,10 @@ private void SaveSettings(bool savetabs)

settings.playSnd = settingsForm.playSndCheckBox.Checked;


isHTML = settingsForm.scanHtlmBox.Checked;
settings.scanHTML = isHTML;

settings.delayVal = steam_srch.mainDelay;

settings.InvType = comboBox3.SelectedIndex;
Expand Down
3,946 changes: 1,979 additions & 1,967 deletions scr/SCMBot/Main.resx

Large diffs are not rendered by default.

7 changes: 2 additions & 5 deletions scr/SCMBot/Main.ru-RU.resx
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,6 @@
<data name="label19.Text" xml:space="preserve">
<value>Получите:</value>
</data>
<data name="textBox3.Location" type="System.Drawing.Point, System.Drawing">
<value>157, 49</value>
</data>
<data name="filterTypeBox.Items" xml:space="preserve">
<value>Тип</value>
</data>
Expand All @@ -362,10 +359,10 @@
<value>Цена</value>
</data>
<data name="filterTypeBox.Location" type="System.Drawing.Point, System.Drawing">
<value>521, 46</value>
<value>521, 48</value>
</data>
<data name="label18.Location" type="System.Drawing.Point, System.Drawing">
<value>450, 52</value>
<value>455, 52</value>
</data>
<data name="label18.Size" type="System.Drawing.Size, System.Drawing">
<value>62, 13</value>
Expand Down
2 changes: 1 addition & 1 deletion scr/SCMBot/MainUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ public static string GetRequest(string url, CookieContainer cookie, bool UseProx
request.Timeout = 30000;

//KeepAlive is True by default
request.KeepAlive = keepAlive;
//request.KeepAlive = keepAlive;

//LOL, really?
request.UserAgent = steamUA;
Expand Down
16 changes: 16 additions & 0 deletions scr/SCMBot/Properties/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions scr/SCMBot/SettingsFrm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ec6eef5

Please sign in to comment.