网络精灵

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;

namespace 网络电视
{
    public class ChannelA : ChannelBase
    {
        public override void Fetch()
        {
            XmlDocument doc = new XmlDocument();
            doc.Load(Path);
            XmlNode root = doc.DocumentElement;

            foreach (XmlNode item in root.ChildNodes)
            {
                //一个Item
                if (item.Name == "tvProgramTable")
                {
                    foreach (XmlNode child in item.ChildNodes)
                    {
                        //一个child是一个节目单对象
                        TvProgram tv = new TvProgram();
                        tv.PlayTime = Convert.ToDateTime(child["playTime"].InnerText);
                        tv.Median = child["meridien"].InnerText;
                        tv.ProgramName = child["programName"].InnerText;
                        tv.FilePath = child["path"].InnerText;

                        ProgramList.Add(tv);

                    }
                }
            }
        }


        

    }
}


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;

namespace 网络电视
{
  public  class ChannelB:ChannelBase
    {
      public override void Fetch()
      {
          XmlDocument doc = new XmlDocument();
          doc.Load(Path);
          XmlNode root = doc.DocumentElement;
          foreach (XmlNode item in root.ChildNodes)
          {
              foreach (XmlNode child in item.ChildNodes)
              {
                  TvProgram tp = new TvProgram();
                  tp.PlayTime = Convert.ToDateTime(child["playTime"].InnerText);
                  tp.ProgramName = child["name"].InnerText;
                  tp.FilePath = child["path"].InnerText;

                  ProgramList.Add(tp);
              }
          }
      }  

     
    }
}


    

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using  System.Xml;
namespace 网络电视
{
  public   abstract class ChannelBase
    {
        public ChannelBase()
        {
            programList = new List<TvProgram>();
        }

        #region 属性


        
        private string channelName;
        public string ChannelName
        {
            get { return channelName; }
            set { channelName = value; }
        }
       
        private string path;
        public string Path
        {
            get { return path; }
            set { path = value; }
        }
       
        private List<TvProgram> programList;
        public List<TvProgram> ProgramList
        {
            get { return programList; }
            set { this.programList = value; }
        }
        #endregion

        //Fetch,读取频道的xml文件
        public abstract void Fetch();
    }
}

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 网络电视
{
 public   class ChannelFactory
    {

     
        public static ChannelBase CreatChannel(string type)
        {
            ChannelBase channel = null;
            switch (type)
            {

                case "TypeA":
                    channel = new ChannelA();
                    break;
                case "TypeB":
                    channel = new ChannelB();
                    break;


            }
            return channel;
        }


    
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;

namespace 网络电视
{
  public  class ChannelManager
    {
        private Dictionary<string, ChannelBase> fullChannels = null;

        public Dictionary<string, ChannelBase> FullChannels
        {
            get { return fullChannels; }
            set { fullChannels = value; }
        }

        public ChannelManager()
        {
            fullChannels=new Dictionary<string, ChannelBase>();
        }

        public void ChangeXmlToList()
        {
           XmlDocument doc=new XmlDocument();
            doc.Load("files/FullChannels.xml");
            XmlNode root = doc.DocumentElement;
            foreach (XmlNode item in root.ChildNodes)
            {
                string type = item["channelType"].InnerText;
                ChannelBase channel = ChannelFactory.CreatChannel(type);
                channel.ChannelName = item["tvChannel"].InnerText;
                channel.Path = item["path"].InnerText;
                fullChannels.Add(channel.ChannelName, channel);


            }
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 网络电视
{
  public  class TvProgram
    {
         private DateTime playTime;
        public DateTime PlayTime
        {
            get { return playTime; }
            set { playTime = value; }
        }
        /// <summary>
        /// 时段
        /// </summary>
        private string median;
        public string Median
        {
            get { return median; }
            set { median = value; }
        }
       
        private string programName;
        public string ProgramName
        {
            get { return programName; }
            set { programName = value; }
        }
       
        private string filePath;
         public string FilePath
        {
            get { return filePath; }
            set { filePath = value; }
        }
       
    }
}


网吧快速还原系统网络版3.2破解版 3.1版本修正功能(2008-5-10) 修正了被桌面幽灵穿透还原的问题。 (更新日期:2008-2-18) 修正了在某些主板上机器狗防不住的问题。 3.0版本(更新日期:2008-1-27) 解决了病毒利用realplayer10.5漏洞注入c:\windows\explorer.exe穿透还原的问题。 增加p2p文件更新功能。 增加客户端管理功能。 2.0版本(更新日期:2007-9-8) 增加对“机器狗”等穿透还原类型病毒的免疫功能。 1.0版本(更新日期:2007-8-4) 网吧快速还原系统采用最新的动态还原技术。在不重启动操作系统的情况下,可以动态地实现还原、转存、保护状态转换和打开写入设备等操作。即可实现从可写设备写入数据后,动态还原为写入后的状态,实现真正意义上的“穿透更新”。 升级方法: 先杀死正在运行的客户端并删除文件,再安装新的客户端。 还原驱动升级方法: 如果只需要升级还原驱动,就可以用单机版本的setup.exe执行升级功能即可。 安装说明: 1、服务端无须安装,解压后运行使用,选择网卡,第一次运行密码为空。 2、运行客户端安装程序后,点击“安装”即完成安装。注:安装后可直接进行镜像文件封装,因为此时还并不具备还原功能,需在服务端选择目标客户机安装还原驱动才能开始工作。 3、服务端执行“安装还原驱动”选择目标客户机设置保护分区“确定”后客户机自动重启完成全部操作。 服务器端操作说明: 1、服务端第一次进入时密码为空; 2、系统-参数设置: 如果有多网段设置请选择不同的网卡进行控制不同网段的机器。注意,多网段网络安装时不同网段的客户机还原时,服务段请选择对应的网卡进行控制安装。 3、系统-修改密码: 修改服务端的登陆密码。 4、操作-设置状态: 选择目标客户机需要修改的分区,点“修改”选择分区保护状态,修改完成然后“设置”即完成操作。该功能简单理解为,设置单台电脑的还原分区保护状态。 5、操作-设置命令: 选择目标客户机需要修改的分区,点“修改”选择分区所需执行的命令,修改完成然后“设置”即完成操作。该功能简单理解为,执行单台电脑的还原分区状态更新。 6、操作-批量设置状态及命令: 可以多选客户机同时进行分区状态、命令的设置。 7、操作-安装还原驱动: 选择目标客户机,设置需保护的分区“确定”即可完成还原驱动的安装。客户机自动重启并完成设定。 8、操作-卸载客户端: 选择目标客户机,点“确定”即可卸载客户端。客户机自动重启并完成设定。 9、操作-设置客户端密码: 选择目标客户机,输入客户端新旧密码。注意:只有客户端的密码和服务器端的密码一致的时候,才能控制客户端。注意:客户端的密码就是快速还原的密码。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值