Skip to content

Commit

Permalink
Add #19
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey004 committed Nov 2, 2023
1 parent 6f7286f commit 86e0c73
Show file tree
Hide file tree
Showing 7 changed files with 3,199 additions and 130 deletions.
19 changes: 17 additions & 2 deletions Quest2-VRC.GUI/MainWindow.Designer.cs

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

16 changes: 10 additions & 6 deletions Quest2-VRC.GUI/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ await Task.Run(() =>
{
var questip = "null";
materialTextBox1.Invoke(new Action(() => questip = materialTextBox1.Text));
if (ADB.StartADB(true, true, questip, true, materialCheckbox2.Checked))
if (ADB.StartADB(true, true, questip, true, materialCheckbox2.Checked, materialCheckbox3.Checked))
{

materialLabel5.Invoke(new Action(() => materialLabel5.Text = resources.GetString("ADBRunning")));
Expand All @@ -98,7 +98,7 @@ await Task.Run(() =>
try
{
var questip = "127.0.0.1:62001";
if (ADB.StartADB(true, true, questip, false, materialCheckbox2.Checked))
if (ADB.StartADB(true, true, questip, false, materialCheckbox2.Checked, materialCheckbox3.Checked))
{
materialLabel5.Invoke(new Action(() => materialLabel5.Text = resources.GetString("ADBRunning")));

Expand Down Expand Up @@ -179,7 +179,7 @@ await Task.Run(() =>
{
var questip = materialTextBox1.Text;

if (ADB.StartADB(false, true, questip, true, materialCheckbox2.Checked))
if (ADB.StartADB(false, true, questip, true, materialCheckbox2.Checked, materialCheckbox3.Checked))
{
materialLabel5.Invoke(new Action(() => materialLabel5.Text = resources.GetString("Receive")));
disableButtons();
Expand All @@ -196,7 +196,7 @@ await Task.Run(() =>
try
{
var questip = "127.0.0.1:62001";
if (ADB.StartADB(false, true, questip, false, materialCheckbox2.Checked))
if (ADB.StartADB(false, true, questip, false, materialCheckbox2.Checked, materialCheckbox3.Checked))
{
materialLabel5.Invoke(new Action(() => materialLabel5.Text = resources.GetString("Receive")));
disableButtons();
Expand Down Expand Up @@ -237,7 +237,7 @@ await Task.Run(() =>
{
var questip = materialTextBox1.Text;

if (ADB.StartADB(true, false, questip, true, materialCheckbox2.Checked))
if (ADB.StartADB(true, false, questip, true, materialCheckbox2.Checked, materialCheckbox3.Checked))
{
materialLabel5.Invoke(new Action(() => materialLabel5.Text = resources.GetString("Send")));

Expand All @@ -254,7 +254,7 @@ await Task.Run(() =>
try
{
var questip = "127.0.0.1:62001";
if (ADB.StartADB(true, false, questip, false, materialCheckbox2.Checked))
if (ADB.StartADB(true, false, questip, false, materialCheckbox2.Checked, materialCheckbox3.Checked))
{
materialLabel5.Invoke(new Action(() => materialLabel5.Text = resources.GetString("Send")));

Expand Down Expand Up @@ -397,5 +397,9 @@ private void materialButton6_Click(object sender, EventArgs e)
f2.ShowDialog();
}

private void materialCheckbox3_CheckedChanged(object sender, EventArgs e)
{

}
}
}
Loading

0 comments on commit 86e0c73

Please sign in to comment.