Exemplo n.º 1
0
        public DownLoadViewModel(IFairiesMemberManageUow uow, string resourceType)
            : base(uow, new List <string>())
        {
            this.OCDownloadFileInfo = new ObservableCollection <DXInfo.Models.DownloadFileInfo>();
            string connectorUrlString = ClientCommon.GetConnectorUrlString();

            switch (resourceType)
            {
            case "mp3":
                DownloadBusiness = MyDownloadBusiness.DownloadMp3BusinessInstance(connectorUrlString);
                break;

            case "images":
                DownloadBusiness = MyDownloadBusiness.DownloadImageBusinessInstance(connectorUrlString);
                break;
            }
            DownloadBusiness.DownloadMsgEvent += new MyDownloadBusiness.DownloadMsgEventHandler(DownloadBusiness_DownloadMsgEvent);
        }