public InviteForm() { InitializeComponent(); OFD = new OpenFileDialog(); if (OFD.ShowDialog() != DialogResult.OK) { return; } vk = new VKapi(); }
public StartForm() { InitializeComponent(); AntiGate.AntiGateKey = "23b239d9f768fd4d9d7cbbbed6ba763d"; vk = new VKapi(); antilabel.Text = AntiGate.GetBalance() + "$"; //MessageBox.Show(AntiGate.GetBalance()); //SystemSounds.Beep.Play(); //SystemSounds.Hand.Play(); //MessageBox.Show(vk.Authorization("79056613147", "НаткаСпирина")); //MessageBox.Show(vk.WallGet("10682771", 10)); //MessageBox.Show(vk.WallRepost("10682771", "149054", vk.Authorization("79056613147", "НаткаСпирина"))); //MessageBox.Show(vk.FriendsGet(vk.Authorization("79056613147", "НаткаСпирина"))); //string token = vk.Authorization("*****@*****.**", "НаткаСпирина"); //MessageBox.Show(vk.WallPost("44021730",vk.WallGet("44021730","suggests","1",token).Split('/')[0],token)); //MessageBox.Show(vk.WallGet("44021730", "suggests", "1", token)); //foreach (string friend in vk.UsersSearch(0,token).Split('/')) //{ // int rez = vk.FriendsAdd(friend, token); // MessageBox.Show(rez.ToString()); //} //MessageBox.Show(vk.UsersSearch(0,14,token)); }