Skip to content

Commit

Permalink
- implemented "Custom List" tabs which allow add,copy,paste,delete se…
Browse files Browse the repository at this point in the history
…rverSource

- implemented "Favorites" tabs
- added menu
  • Loading branch information
PredatH0r committed Sep 10, 2015
1 parent 914ffe3 commit 4c453c1
Show file tree
Hide file tree
Showing 15 changed files with 825 additions and 245 deletions.
14 changes: 8 additions & 6 deletions ServerBrowser/IniFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,20 +161,22 @@ private void ReadIniFile(string fileName)
}
if (currentSection == null)
continue;

int idx = -1;
if (val == null)
{
int idx = trimmedLine.IndexOf("=");
idx = trimmedLine.IndexOf("=");
if (idx < 0)
continue;
key = trimmedLine.Substring(0, idx).Trim();
val = trimmedLine.Substring(idx + 1).Trim();
val = "";
}
else
val += line;
if (val.EndsWith("\\"))
val = val.Substring(val.Length - 1).Trim();

if (line.EndsWith("\\"))
val += line.Substring(idx + 1, line.Length - idx - 1 - 1).Trim() + "\n";
else
{
val += line.Substring(idx + 1).Trim();
currentSection.Set(key, val);
val = null;
}
Expand Down
2 changes: 1 addition & 1 deletion ServerBrowser/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace ServerBrowser
{
public static class Program
{
private const string Version = "1.17";
private const string Version = "2.0";

[STAThread]
public static void Main()
Expand Down
2 changes: 1 addition & 1 deletion ServerBrowser/ServerBrowser.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ServerBrowser</RootNamespace>
<AssemblyName>ServerBrowser.Core</AssemblyName>
<AssemblyName>ServerBrowser</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileUpgradeFlags>
</FileUpgradeFlags>
Expand Down
661 changes: 462 additions & 199 deletions ServerBrowser/ServerBrowserForm.Designer.cs

Large diffs are not rendered by default.

Loading

0 comments on commit 4c453c1

Please sign in to comment.