示例#1
0
        private void UpdateUI(PlayComplete msg)
        {
            string messageId    = msg.MessageId;
            string messageInfo  = msg.MessageInfo;
            string scheduleInfo = msg.ScheduleInfo;
            string plsylistInfo = msg.PlsylistInfo;
            string endTime      = msg.EndTime;
            string toFilePath   = DataGate.Provider.Path + "\\Library\\Upload\\Message\\" + messageId + ".png";
            string fromFilePath = "/mnt/sdcard/.ufe/data/messages/" + messageId + "/" + messageId + ".png";


            UpdateMessageInfo = messageInfo;

            ControlService.SignCombo.Current.MessageIdInfo = messageInfo;
            ControlService.DashboardTree.PopulateTree();
            UpdateScheduleInfo = scheduleInfo;

            UpdatePlaylist = plsylistInfo;
            UpdateDate     = DateTime.Parse(msg.EndTime).GetDateTimeFormats()[69];
            //MessageInfo msg = LibraryGroup.Current.Messages.GetById(messageId);

            Image desImg = IOHelper.GetImageFromFile(toFilePath);

            if (desImg != null)
            {
                ControlService.CurrentClip.PicCurrent.Image = desImg;
            }
            else
            {
                ControlService.SignCombo.Current.Controller.Connection.FtpManager.DownLoad(fromFilePath, toFilePath);

                desImg = IOHelper.GetImageFromFile(toFilePath);
                ControlService.CurrentClip.PicCurrent.Image = desImg;
            }
        }
示例#2
0
        void CurrentClip_Observers(object sender, PlayComplete msg)
        {
            var conn = sender as IUFEConnection;

            if (conn != null && conn.Sign == ControlService.SignCombo.Current)
            {
                this.InvokeMethod(() => UpdateUI(msg));
            }
        }