public MainWindow()
        {
            InitializeComponent();
            var status = new StatusWM
            {
                Status = "",
                Media = null,
                Check = false
            };
            DataContext = status;

            if (Settings.Default.token == "")
                AuthStart();

            TaskbarItemInfo = new TaskbarItemInfo();
            StatusArea.KeyDown += StatusAreaOnKeyDown;

            ContextMenuGen();

            tokens = Tokens.Create(Twitter.CK, Twitter.CS,
                Settings.Default.token,
                Settings.Default.secret
                );

            mediaAsyncExtend = new MediaAsyncExtend(tokens);
        }
        public MainWindow()
        {
            InitializeComponent();
            var status = new StatusWM
            {
                Status = "",
                Media  = null,
                Check  = false
            };

            DataContext = status;

            if (Settings.Default.token == "")
            {
                AuthStart();
            }

            TaskbarItemInfo     = new TaskbarItemInfo();
            StatusArea.KeyDown += StatusAreaOnKeyDown;

            ContextMenuGen();

            _tokens = Tokens.Create(Twitter.CK, Twitter.CS,
                                    Settings.Default.token,
                                    Settings.Default.secret
                                    );
        }
Example #3
0
        private void SucceedUpload(Status status)
        {
            StatusWM context = DataContext as StatusWM;

            if (context?.Check == true)
            {
                EntitiesInfoWindow.ShowVideoInfo(status.ExtendedEntities);
            }
        }
Example #4
0
 /// <summary>
 /// ツイート送信成否に関わらず共通実行するメソッド
 /// </summary>
 /// <param name="status">成否</param>
 private void AfterSendTweet(int status)
 {
     if (status == SUCCESS)
     {
         StatusWM dc = DataContext as StatusWM;
         dc.Media        = null;
         dc.Status       = "";
         StatusArea.Text = "";
     }
     PGbar.IsIndeterminate         = false;
     SendTweetButton.IsEnabled     = true;
     TaskbarItemInfo.ProgressState = TaskbarItemProgressState.None;
 }