Skip to content

Commit

Permalink
Added saving results to txt file
Browse files Browse the repository at this point in the history
  • Loading branch information
Ezzpify committed Mar 2, 2017
1 parent 98ada0b commit 9a35bc0
Show file tree
Hide file tree
Showing 26 changed files with 22 additions and 36 deletions.
Binary file added .vs/SteamBulkActivator/v15/.suo
Binary file not shown.
Binary file modified Steam4NET2/.vs/Steam4NET/v15/.suo
Binary file not shown.
Binary file removed Steam4NET2/Steam4Test/bin/Debug/Steam4NET.dll
Binary file not shown.
Binary file removed Steam4NET2/Steam4Test/bin/Debug/Steam4NET.pdb
Binary file not shown.
Binary file removed Steam4NET2/Steam4Test/bin/Debug/Steam4Test.exe
Binary file not shown.
Binary file removed Steam4NET2/Steam4Test/bin/Debug/Steam4Test.pdb
Binary file not shown.
Binary file removed Steam4NET2/Steam4Test/bin/Release/Steam4NET.pdb
Binary file not shown.
Binary file removed Steam4NET2/Steam4Test/bin/Release/Steam4Test.exe
Binary file not shown.
Binary file removed Steam4NET2/Steam4Test/bin/Release/Steam4Test.pdb
Binary file not shown.
1 change: 0 additions & 1 deletion Steam4NET2/Steam4Test/obj/Debug/CoreCompileInputs.cache

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file removed Steam4NET2/Steam4Test/obj/Debug/Steam4Test.exe
Binary file not shown.
Binary file removed Steam4NET2/Steam4Test/obj/Debug/Steam4Test.pdb
Binary file not shown.
1 change: 0 additions & 1 deletion Steam4NET2/Steam4Test/obj/Release/CoreCompileInputs.cache

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file removed Steam4NET2/Steam4Test/obj/Release/Steam4Test.exe
Binary file not shown.
Binary file removed Steam4NET2/Steam4Test/obj/Release/Steam4Test.pdb
Binary file not shown.
2 changes: 1 addition & 1 deletion SteamBulkActivator/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ private void addKeysToList()
if (tempList.Contains(key))
continue;

tempList.Add(key);
tempList.Add(key.Trim());
}

_cdKeyList = tempList;
Expand Down
8 changes: 4 additions & 4 deletions SteamBulkActivator/Result.Designer.cs

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

16 changes: 16 additions & 0 deletions SteamBulkActivator/Result.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Diagnostics;
using System.Windows.Forms;

namespace SteamBulkActivator
Expand Down Expand Up @@ -62,6 +64,20 @@ private void Result_Load(object sender, EventArgs e)

private void btnRegister_Click(object sender, EventArgs e)
{
var list = new List<string>();
foreach (ListViewItem item in keyListView.Items)
{
string entry = item.Text;

if (item.SubItems.Count > 1)
entry += $" - {item.SubItems[1].Text}";

list.Add(entry);
}

string location = Path.Combine(Application.StartupPath, "Results.txt");
File.WriteAllText(location, string.Join("\n\r", list));
Process.Start(location);
Close();
}

Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion SteamBulkActivator/SteamBulkActivator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Steam4NET">
<HintPath>..\Steam4NET2\bin\Release\Steam4NET.dll</HintPath>
<HintPath>.\Steam4NET.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down

0 comments on commit 9a35bc0

Please sign in to comment.