Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            var login    = textBox1.Text;
            var password = textBox2.Text;

            VkAccount.AddAccount(login, password);
            this.Close();
        }
Ejemplo n.º 2
0
        public static void AddAccount(string login, string password)
        {
            VkAccount account = new VkAccount();

            account.Login    = login;
            account.Password = password;
            account.id       = CurrentAvailableID++;
            Accounts.Add(account);
        }