Esempio n. 1
0
        internal PlayElements.Schedule CheckSchedule(int i)
        {
            WCF.PlayerServiceClient client = new WCF.PlayerServiceClient();
            try
            {

                using (OperationContextScope scope = new OperationContextScope(client.InnerChannel))
                {

                    SetHeader(scope);

                    string xmlstr = client.DownloadSchedule(i);
                    Schedule sche = ContentHelper.XMLStringToSchedule(xmlstr);
                    return sche;
                }

                client.Close();
            }
            catch (Exception exp)
            {
                MessageBox.Show(exp.Message);
            }
            return null;
        }