예제 #1
0
        private void button21_Click(object sender, EventArgs e)
        {
            var liker = new TagLiker();

            liker.StartLike(likeTagInput.Text, int.Parse(likeCountInput.Text), new InstagramAccount {
                AccountName = loginInput.Text, InstagramPass = passwordInput.Text
            });
        }
예제 #2
0
        private void HashtagLike()
        {
            var liker      = new TagLiker();
            var vm_account = ((Application.Current.Windows[0] as MainWindow).accountsArea.Content as AccountsView).AccountsView_ListView.SelectedItem as VM_Account;
            var db         = new InstagramDataContext();
            var account    = db.InstagramAccounts.First(m => m.AccountName == vm_account.Title);

            liker.StartLike(targetInput.Text, int.Parse(likeCountInput.Text), account);
        }