Skip to content
This repository has been archived by the owner on Jan 27, 2025. It is now read-only.

Commit

Permalink
Update Account Manager
Browse files Browse the repository at this point in the history
Game will be updated later
  • Loading branch information
ElectroHeavenVN committed Jul 25, 2024
1 parent 06f413d commit 3ed44f8
Show file tree
Hide file tree
Showing 22 changed files with 7,918 additions and 3,556 deletions.
22 changes: 2 additions & 20 deletions AccountManager/DragonBoyManager/Account.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ public class Account
[JsonIgnore]
public Process process;

[JsonIgnore]
public string _status = "";

[JsonProperty("isLogin")]
public bool isLogin { get; set; }

Expand Down Expand Up @@ -45,21 +42,6 @@ public class Account
public string SizeScreen { get; set; }

[JsonIgnore]
public string status
{
get
{
return _status;
}
set
{
setStatus(value);
}
}

public void setStatus(string status)
{
_status = status;
}
}
public string Status { get; set; }
}
}
22 changes: 11 additions & 11 deletions AccountManager/DragonBoyManager/AddMoreAccount.Designer.cs

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

79 changes: 46 additions & 33 deletions AccountManager/DragonBoyManager/AddMoreAccount.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,50 @@

namespace DragonBoyManager
{
public partial class AddMoreAccount : Form
{
public string _account;

public string _password;

public string _server;

public string _note;

public string _size;

public AddMoreAccount(string account, string password, string server, string note, string size)
{
InitializeComponent();
_account = account;
_password = password;
_server = server;
_note = note;
_size = size;
}

private void AddMoreAccount_Load(object sender, EventArgs e)
{
}

private void button1_Click(object sender, EventArgs e)
{
TabData._instance.Save((int)numericUpDown1.Value, (int)numericUpDown2.Value);
TabData._instance.SaveData();
Close();
}
}
public partial class AddMoreAccount : Form
{
public string _account;

public string _password;

public string _server;

public string _note;

public string _size;

public AddMoreAccount(string account, string password, string server, string note, string size)
{
InitializeComponent();
_account = account;
_password = password;
_server = server;
_note = note;
_size = size;
}

private void AddMoreAccount_Load(object sender, EventArgs e)
{
loadLanguage();
}

private void button1_Click(object sender, EventArgs e)
{
TabData._instance.Save((int)numericUpDown1.Value, (int)numericUpDown2.Value);
TabData._instance.SaveData();
Close();
}

public void loadLanguage()
{
if (MainController.language == 1)
{
Text = "Add Accounts";
button1.Text = "Add";
label2.Text = "To";
label1.Text = "From";
groupBox1.Text = "Input X Range: ";
}
}
}
}
15 changes: 7 additions & 8 deletions AccountManager/DragonBoyManager/ChatTable.Designer.cs

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

30 changes: 15 additions & 15 deletions AccountManager/DragonBoyManager/ChatTable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ namespace DragonBoyManager
{
public partial class ChatTable : Form
{
public static string ChatContent = string.Empty;
public static string ChatContent = "";

public static string PressContent;
public static string PressContent = "";

public ChatTable()
{
Expand All @@ -32,6 +32,7 @@ public void loadLanguage()
private void ChatTable_Load(object sender, EventArgs e)
{
textBox1.Text = ChatContent;
textBox2.Text = PressContent;
loadLanguage();
}

Expand Down Expand Up @@ -60,23 +61,22 @@ async void button1_Click(object sender, EventArgs e)
async void button2_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(textBox2.Text))
MessageBox.Show((MainController.language != 0) ? "KeyPress content is empty!" : "Chưa nhập nội dung bấm!");
else
{
MessageBox.Show((MainController.language == 0) ? "Chưa nhập nội dung bấm!" : "KeyPress content is empty!");
return;
}

if (textBox2.Text.Contains("|"))
{
string[] contents = textBox2.Text.Split('|');
for (int i = 0; i < contents.Length; i++)
if (textBox2.Text.Contains("|"))
{
TabControl.instance.sendMessage(7, contents[i], "keyIndex");
await Task.Delay(1000);
string[] contents = textBox2.Text.Split('|');
for (int i = 0; i < contents.Length; i++)
{
TabControl.instance.sendMessage(7, contents[i], "keyIndex");
await Task.Delay(1000);
}
}
else
TabControl.instance.sendMessage(7, textBox2.Text, "keyIndex");
PressContent = textBox2.Text;
}
else
TabControl.instance.sendMessage(7, textBox2.Text, "keyIndex");
PressContent = textBox2.Text;
}
}
}
Loading

0 comments on commit 3ed44f8

Please sign in to comment.