Skip to content

Commit 5eeb628

Browse files
committed
initial commit
0 parents  commit 5eeb628

33 files changed

+918
-0
lines changed

.vs/WindowsFormsApp1/v15/.suo

50.5 KB
Binary file not shown.

.vs/WindowsFormsApp1/v15/Server/sqlite3/db.lock

Whitespace-only changes.
580 KB
Binary file not shown.
32 KB
Binary file not shown.
3.93 MB
Binary file not shown.

WindowsFormsApp1.sln

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.28307.1705
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WindowsFormsApp1", "WindowsFormsApp1\WindowsFormsApp1.csproj", "{6B54F634-F9F1-4A5B-ADB7-AAEDA7B295FF}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{6B54F634-F9F1-4A5B-ADB7-AAEDA7B295FF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{6B54F634-F9F1-4A5B-ADB7-AAEDA7B295FF}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{6B54F634-F9F1-4A5B-ADB7-AAEDA7B295FF}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{6B54F634-F9F1-4A5B-ADB7-AAEDA7B295FF}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {52A0F3E7-7E99-4FB3-9E50-22E546D7E137}
24+
EndGlobalSection
25+
EndGlobal

WindowsFormsApp1/App.config

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration>
3+
<configSections>
4+
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
5+
<section name="WindowsFormsApp1.Settings1" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
6+
</sectionGroup>
7+
</configSections>
8+
<startup>
9+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
10+
</startup>
11+
<userSettings>
12+
<WindowsFormsApp1.Settings1>
13+
<setting name="Path_to_adb" serializeAs="String">
14+
<value />
15+
</setting>
16+
<setting name="ip_port" serializeAs="String">
17+
<value>127.0.0.1:58526</value>
18+
</setting>
19+
</WindowsFormsApp1.Settings1>
20+
</userSettings>
21+
</configuration>

WindowsFormsApp1/Form1.Designer.cs

Lines changed: 191 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

WindowsFormsApp1/Form1.cs

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.ComponentModel;
4+
using System.Data;
5+
using System.Drawing;
6+
using System.Linq;
7+
using System.Text;
8+
using System.Threading.Tasks;
9+
using System.Windows.Forms;
10+
11+
namespace WindowsFormsApp1
12+
{
13+
public partial class Form1 : Form
14+
{
15+
public Form1()
16+
{
17+
InitializeComponent();
18+
textBox3.Text = Settings1.Default.Path_to_adb;
19+
textBox2.Text = Settings1.Default.ip_port;
20+
}
21+
OpenFileDialog odf = new OpenFileDialog();
22+
FolderBrowserDialog odf2 = new FolderBrowserDialog();
23+
private void button1_Click(object sender, EventArgs e)
24+
{
25+
odf.Filter = "APK|*.apk";
26+
if(odf.ShowDialog() == DialogResult.OK)
27+
{
28+
textBox1.Text = odf.FileName;
29+
30+
}
31+
}
32+
33+
private void button2_Click(object sender, EventArgs e)
34+
{
35+
36+
System.Diagnostics.Process process = new System.Diagnostics.Process();
37+
System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();
38+
startInfo.UseShellExecute = false;
39+
startInfo.RedirectStandardOutput = true;
40+
startInfo.FileName = "CMD.exe";
41+
startInfo.Arguments = "/c cd " + textBox3.Text + "& adb connect" + textBox2.Text + "& adb -s \"" + textBox2.Text +"\" install " + textBox1.Text;
42+
process.StartInfo = startInfo;
43+
process.Start();
44+
string output = process.StandardOutput.ReadToEnd();
45+
process.WaitForExit();
46+
richTextBox1.Text = output;
47+
}
48+
49+
private void button3_Click(object sender, EventArgs e)
50+
{
51+
if (odf2.ShowDialog() == DialogResult.OK)
52+
{
53+
textBox3.Text = odf2.SelectedPath;
54+
Settings1.Default.Path_to_adb = odf2.SelectedPath;
55+
Settings1.Default.Save();
56+
}
57+
}
58+
59+
private void textBox2_TextChanged(object sender, EventArgs e)
60+
{
61+
Settings1.Default.ip_port = textBox2.Text;
62+
Settings1.Default.Save();
63+
}
64+
65+
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
66+
{
67+
System.Diagnostics.Process.Start("www.github.com/parajulibkrm");
68+
}
69+
}
70+
71+
}

0 commit comments

Comments
 (0)