KbtterWPF.MainWindow.TweetWithButtonChanger C# (CSharp) Method

TweetWithButtonChanger() public method

public TweetWithButtonChanger ( string str, bool f ) : void
str string
f bool
return void
        public void TweetWithButtonChanger(string str, bool f)
        {
            ButtonTweet.Background = Brushes.DarkGray;
            ButtonTweet.MouseLeftButtonDown -= Tweet_MouseLeftButtonDown;
            Service.Tweet(str, (st, rs) =>
            {
                SetStatusBarWithSendTweet(rs, st);
                ButtonTweet.Dispatcher.BeginInvoke(new Action(() =>
                {
                    ButtonTweet.Background = new SolidColorBrush { Color = Color.FromRgb(85, 172, 238) };
                    ButtonTweet.MouseLeftButtonDown += Tweet_MouseLeftButtonDown;
                    SetDefaultUser();
                }));
                TextBoxTweet.Dispatch(() => TextBoxTweet.Text = "");

            });
        }