public TwitterPG() { string[] temp = File.ReadAllLines("TAT.txt"); twitter = new Twit(temp[0], temp[1], Convert.ToInt64(temp[2]), temp[3]); currentACName = twitter.getUserHandle(); InitializeComponent(); updateAccountItems(); comDM.ItemsSource = twitter.getFollowerNames(); }
public LoginPG() { InitializeComponent(); var facebookQ = db.ExecuteQuery <string>("SELECT AToken FROM dbo.Face"); var twitQ = db.ExecuteQuery <string>("SELECT AToken FROM dbo.Twitter"); if (facebookQ.Count() == 0) { fbClass.Login(); } isAuth = !(twitQ.Count() <= 0); if (isAuth) { TwitterPB.IsEnabled = false; } else { temp = new Twit(); } }
private void btnTwitterAdd_Click(object sender, RoutedEventArgs e) { VerSuc.Visibility = Visibility.Hidden; newTwitter = new Twit(); }