KbtterWPF.MainWindow.MediaTweetWithButtonChanger C# (CSharp) Method

MediaTweetWithButtonChanger() public method

public MediaTweetWithButtonChanger ( string str, bool f ) : void
str string
f bool
return void
        public void MediaTweetWithButtonChanger(string str, bool f)
        {
            ButtonTweet.Background = Brushes.DarkGray;
            ButtonTweet.MouseLeftButtonDown -= Tweet_MouseLeftButtonDown;
            ButtonTweet.Background = Brushes.DarkGray;
            var s = Service.SendTweetWithMedia(new SendTweetWithMediaOptions { Status = str, Images = UploadImagePath });
            SetStatusBarWithSendTweet(null, s);
            UploadImagePath.Clear();
            IncludeImageList.Dispatch(() => IncludeImageList.Children.Clear());
            ButtonTweet.Dispatcher.BeginInvoke(new Action(() =>
            {
                ButtonTweet.Background = new SolidColorBrush { Color = Color.FromRgb(85, 172, 238) };
                ButtonTweet.MouseLeftButtonDown += Tweet_MouseLeftButtonDown;
                SetDefaultUser();
            }));
            TextBoxTweet.Dispatch(() => TextBoxTweet.Text = "");
        }