private void btnLogIn_Click(object sender, EventArgs e) { Bot.BeginConnect(false, txtUsername.Text, txtPassword.Text, ""); }
public Form1() { InitializeComponent(); ch = new JDChatEnhance.JDCHat(JD.uid); ch.SendChat += ch_SendChat; tabControl1.TabPages[2].Controls.Add(ch); ch.Dock = DockStyle.Fill; qrDeposit.Size = pictureBox1.Size; qrDeposit.Location = pictureBox1.Location; grbDeposit.Controls.Add(qrDeposit); JD.OnInit += JD_OnInit; JD.OnAddress += JD_OnAddress; JD.OnBadClientSeed += JD_OnBadClientSeed; JD.OnBalance += JD_OnBalance; JD.OnBet += JD_OnBet; JD.OnChat += JD_OnChat; JD.OnChatInfo += JD_OnChatInfo; JD.OnClientSeed += JD_OnClientSeed; JD.OnDismiss += JD_OnDismiss; JD.OnDivestError += JD_OnDivestError; JD.OnFormError += JD_OnFormError; JD.OnGaCodeOk += JD_OnGaCodeOk; JD.onGaDone += JD_onGaDone; JD.OnGaInfo += JD_OnGaInfo; JD.onInvest += JD_onInvest; JD.OnInvestError += JD_OnInvestError; JD.OnJDError += JD_OnJDError; JD.OnJDMessage += JD_OnJDMessage; JD.OnLoginError += JD_OnLoginError; JD.OnLossess += JD_OnWins; JD.OnMaxProfit += JD_OnMaxProfit; JD.OnNewClientSeed += JD_OnNewClientSeed; JD.OnNonce += JD_OnNonce; JD.OnOldChat += JD_OnOldChat; JD.OnPong += JD_OnPong; JD.OnResult += JD_OnResult; JD.OnRoll += JD_OnRoll; JD.OnSecretHash += JD_OnSecretHash; JD.OnStake += JD_OnStake; JD.OnTimeout += JD_OnTimeout; JD.OnTipReceived += JD_OnTipReceived; JD.OnWDAddress += JD_OnWDAddress; JD.OnWins += JD_OnWins; JD.LoginEnd += JD_LoginEnd; JD.OnHistory += JD_OnHistory; JD.OnOldBets += JD_OnOldBets; JD.OnSetupGa += JD_OnSetupGa; JD.OnConfirmTip += JD_OnConfirmTip; string hash = ""; JD.logging = true; if (Directory.Exists("JDDesktop")) { if (File.Exists("JDDesktop\\settings")) { using (StreamReader sr = new StreamReader("JDDesktop\\settings")) { hash = sr.ReadLine(); } } } else { Directory.CreateDirectory("JDDesktop"); File.Create("JDDesktop\\settings"); } if (hash != "") { JD.BeginConnect(false, hash); } else { JD.BeginConnect(false); } }