//マイアイコンクリックでプロフィール表示 private async void myIcon_Click(object sender, EventArgs e) { User user = await TwitterTools.ShowUser(Properties.Settings.Default.UserId); ProfileFrame profileFrame = new ProfileFrame(user); profileFrame.Show(); }
private async void MainFrame_Load(object sender, EventArgs e) { //表示枠の諸々 ChangeTheme(Properties.Settings.Default.Theme); user = await TwitterTools.ShowUser(Properties.Settings.Default.UserId); TitleLabelA.Text = TitleLabelB.Text = "実況通神 - " + user.Name; myIcon.ImageLocation = user.ProfileImageUrl.Replace("_normal", ""); GetHomeTimeline(); StartUserstream(); sendMode = SendMode.Tweet; pictureBox[0] = pictureBox1; pictureBox[1] = pictureBox2; pictureBox[2] = pictureBox3; pictureBox[3] = pictureBox4; //labelTimer.Start(); }
private async void ShowProfileFrame(User user) { ProfileFrame profileFrame = new ProfileFrame(await TwitterTools.ShowUser(user_id: user.Id)); profileFrame.Show(); }
private async void AsamaFrame_Load(object sender, EventArgs e) { user = await TwitterTools.ShowUser(Properties.Settings.Default.UserId); myIcon.ImageLocation = user.ProfileImageUrl.Replace("_normal", ""); }