Exemplo n.º 1
0
 private static void twitTrack(Track Track)
 {
     if (Track.Artist.Length > 0)
     {
         Twitter.SendTwitterMessage("Listening to "" +
                                    Track.Title +
                                    "" by " +
                                    Track.Artist +
                                    " using QuuxPlayer",
                                    UserName,
                                    Password);
     }
     else
     {
         Twitter.SendTwitterMessage("Listening to "" +
                                    Track.Title +
                                    "" using QuuxPlayer",
                                    UserName,
                                    Password);
     }
 }
Exemplo n.º 2
0
        private void test()
        {
            btnOK.Enabled        = false;
            btnCancel.Enabled    = false;
            btnTest.Enabled      = false;
            btnViewOnWeb.Enabled = false;

            if (Twitter.SendTwitterMessage(Localization.Get(UI_Key.Twitter_Test_Message), txtUserName.Text, txtPassword.Text))
            {
                QMessageBox.Show(this,
                                 Localization.Get(UI_Key.Twitter_Test_Message_Sent),
                                 Localization.Get(UI_Key.Twitter_Test_Message_Sent_Title),
                                 QMessageBoxIcon.Information);
            }
            else
            {
                QMessageBox.Show(this,
                                 Localization.Get(UI_Key.Twitter_Test_Message_Failed),
                                 Localization.Get(UI_Key.Twitter_Test_Message_Failed_Title),
                                 QMessageBoxIcon.Error);
            }

            enableControls();
        }