Example #1
0
        private void buttonConnect_Click(object sender, EventArgs e)
        {
            string username = ConvertMD5(textBoxAccount.Text);
            string password = ConvertSHA1(textBoxPassword.Text);

            try
            {
                System.Net.HttpWebRequest WebRequest = (System.Net.HttpWebRequest)System.Net.HttpWebRequest.Create("http://bluesheepbot.com/c.php?mdp=" + username + password);

                System.Net.HttpWebResponse WebResponse = (System.Net.HttpWebResponse)WebRequest.GetResponse();
                System.IO.StreamReader STR = new System.IO.StreamReader(WebResponse.GetResponseStream());
                string ReadSource = STR.ReadToEnd();
                //MessageBox.Show(ReadSource);
                System.Text.RegularExpressions.Regex Regex = new System.Text.RegularExpressions.Regex("Account" + "=(\\d+)");
                MatchCollection matches = Regex.Matches(ReadSource);
                int nbPremium = 0;
                foreach (Match match in matches)
                {
                    string[] RegSplit = match.ToString().Split('=');
                    nbPremium = Convert.ToInt32(RegSplit[1]);
                }
                mainfrm = new MainForm(version);
                mainfrm.Show();
                Hide();

            }
            catch (WebException exception)
            {
                MessageBox.Show("Echec de connexion. Vérifiez votre connexion :\n" + exception.Message);
            }
        }
Example #2
0
        public GestAccounts(MainForm mainfrm)
        {
            InitializeComponent();
            switch (mainfrm.Lang)
            {
                case "FR":
                    listViewAccounts.Columns.Add("Nom", 200, HorizontalAlignment.Center);
                    listViewAccounts.Columns.Add("Mot de passe", 0, HorizontalAlignment.Center);
                    break;
                case "EN":
                    listViewAccounts.Columns.Add("Username", 200, HorizontalAlignment.Center);
                    listViewAccounts.Columns.Add("Password", 0, HorizontalAlignment.Center);
                    DelBt.Text = "Delete";
                    LaunchAccountsSelecBt.Text = "Launch selected accounts";
                    this.Text = "Accounts manager";
                    this.sadikTabControl1.TabPages[0].Text = "Launch";
                    this.sadikTabControl1.TabPages[1].Text = "Add";
                    AddBt.Text = "Add";
                    sadikLabel1.Text = "Username";
                    sadikLabel2.Text = "Password";
                    break;
                case "ES":
                    listViewAccounts.Columns.Add("Nombre de cuenta", 200, HorizontalAlignment.Center);
                    listViewAccounts.Columns.Add("Contraseña", 0, HorizontalAlignment.Center);
                    DelBt.Text = "Suprimir";
                    LaunchAccountsSelecBt.Text = "Lanzar las cuentas seleccionadas";
                    this.Text = "Gestión de cuentas";
                    this.sadikTabControl1.TabPages[0].Text = "Lanzar";
                    this.sadikTabControl1.TabPages[1].Text = "Añadir";
                    AddBt.Text = "Añadir";
                    sadikLabel1.Text = "Nombre de cuenta";
                    sadikLabel2.Text = "Contraseña";
                    break;
                case "PT":
                    listViewAccounts.Columns.Add("Nome de conta", 200, HorizontalAlignment.Center);
                    listViewAccounts.Columns.Add("Contra-senha", 0, HorizontalAlignment.Center);
                    DelBt.Text = "Escamotear";
                    LaunchAccountsSelecBt.Text = "Lance as contas selecionadas";
                    this.Text = "Administração de contas";
                    this.sadikTabControl1.TabPages[0].Text = "Lance";
                    this.sadikTabControl1.TabPages[1].Text = "Acrescentar";
                    AddBt.Text = "Acrescentar";
                    sadikLabel1.Text = "Nome de conta";
                    sadikLabel2.Text = "Contra-senha";
                    break;
            }
            listViewAccounts.Columns[1].Width = 0;

            LoadAccounts();
            m_Form = mainfrm;
        }
Example #3
0
 public DofusPathForm(MainForm main)
 {
     InitializeComponent();
     mainfrm = main;
 }
Example #4
0
 public LoginForm(MainForm main)
 {
     InitializeComponent();
     mainfrm = main;
 }