예제 #1
0
        private void button12_Click(object sender, EventArgs e)
        {
            var req = new WebServiceRequest();

            req.Identification             = new Identification();
            req.Identification.UserName    = textBoxUser.Text;
            req.Identification.PasswordKey = RadioTimeWebServiceHelper.HashMD5(textBoxPasswd.Text);
            propertyGrid1.SelectedObject   = websrv.Account_UserAuthenticate(req);
        }
예제 #2
0
 public RadioTimePluginGUI()
 {
     GetID = GetWindowId();
     _setting.Load();
     Settings.Instance          = _setting;
     iden.UserName              = _setting.User;
     iden.PasswordKey           = RadioTimeWebServiceHelper.HashMD5(_setting.Password);
     iden.PartnerId             = "MediaPortal";
     iden.PartnerKey            = "NVNxA8N$6VD1";
     grabber.Settings.User      = _setting.User;
     grabber.Settings.Password  = _setting.Password;
     grabber.Settings.PartnerId = _setting.PartnerId;
 }
예제 #3
0
 // Tuner_Tune example
 private void button9_Click(object sender, EventArgs e)
 {
     if (listView1.SelectedItems.Count > 0)
     {
         var req = new TuneRequest();
         //int i = 0;
         req.StationId                  = ((RadioTimeOutline)listView1.SelectedItems[0].Tag).StationIdAsInt;
         req.Identification             = new Identification();
         req.Identification.UserName    = textBoxUser.Text;
         req.Identification.PasswordKey = RadioTimeWebServiceHelper.HashMD5(textBoxPasswd.Text);
         propertyGrid1.SelectedObject   = websrv.Tuner_Tune(req);
         MessageBox.Show("Test");
     }
 }
예제 #4
0
 private void button8_Click(object sender, EventArgs e)
 {
     if (listView1.SelectedItems.Count > 0)
     {
         try
         {
             var req = new FavoriteFolderUpdateRequest();
             var i   = 0;
             int.TryParse(((RadioTimeOutline)listView1.SelectedItems[0].Tag).StationId, out i);
             req.ItemIds                    = new int[] { i };
             req.Identification             = new Identification();
             req.Identification.UserName    = textBoxUser.Text;
             req.Identification.PasswordKey = RadioTimeWebServiceHelper.HashMD5(textBoxPasswd.Text);
             propertyGrid1.SelectedObject   = websrv.Favorite_StationListAdd(req);
         }
         catch (SoapException ex)
         {
             MessageBox.Show(ex.Message);
         }
     }
 }