public RateLimitsWindow(MainWindow mainWin) { InitializeComponent(); mainWindow = mainWin; api = new TwitterAPI(); }
public DataFetcher(MainWindow mainWin) { this.mainWin = mainWin; actions = new Dictionary <string, Func <string, long, JObject> >(); api = new TwitterAPI(); actions["friends"] = (sn, c) => api.GetFriends(sn, c); actions["followers"] = (sn, c) => api.GetFollowers(sn, c); }