Ejemplo n.º 1
0
        private void RegiestServices()
        {
            if (services == null)
                services = new BasicServices();

            client = services.PlatformClient;
        }
Ejemplo n.º 2
0
 public NewsServices()
 {
     servers = new BasicServices();
     client = servers.PlatformClient;
     publicWS = new Saas.Tools.PublicInterfaceWS.PublicServiceClient();
     fileClient = new Saas.Tools.NewFileUploadWS.UploadServiceClient();
     RegisterServices();
 }
Ejemplo n.º 3
0
        public RollImageNews()
        {
            InitializeComponent();
            servers = new BasicServices();
            client = servers.PlatformClient;

            InitTop();
        }
Ejemplo n.º 4
0
 /// <summary>
 /// 展示新闻界面
 /// </summary>
 public NewsView()
 {
     InitializeComponent();
     services = new BasicServices();
     client = services.PlatformClient;
     //ctrUpload.MaxSize = 512000;
     
     RegisterEvent();
 }
Ejemplo n.º 5
0
        public NewsServices()
        {
            servers = new BasicServices();
            client = servers.PlatformClient;
            callBackClient = servers.CallBackClient;
            publicWS = new Saas.Tools.PublicInterfaceWS.PublicServiceClient();

            RegisterServices();
        }
Ejemplo n.º 6
0
 public NewsShow()
 {
     InitializeComponent();
     rtbContent.HideHeadToolbars();
     services = new BasicServices();
     publicWS = new Saas.Tools.PublicInterfaceWS.PublicServiceClient();
     client = services.PlatformClient;
     client.GetNewsModelByIDCompleted += new EventHandler<GetNewsModelByIDCompletedEventArgs>(client_GetNewsModelByIDCompleted);
     publicWS.GetContentCompleted += new EventHandler<Saas.Tools.PublicInterfaceWS.GetContentCompletedEventArgs>(publicWS_GetContentCompleted);
 }
Ejemplo n.º 7
0
        public RollNewsViewModel()
        {
            if (services == null)
                services = new BasicServices();
            client = services.PlatformClient;

            if (client != null)
            {
                //client.GetNewsListByParamsCompleted += new EventHandler<GetNewsListByParamsCompletedEventArgs>(client_GetNewsListByParamsCompleted);
                //client.GetNewsListByParamsAsync("0|1", 10, "1");
                //client.GetNewsListByEmployeeIDCompleted += new EventHandler<GetNewsListByEmployeeIDCompletedEventArgs>(client_GetNewsListByEmployeeIDCompleted);
                //client.GetNewsListByEmployeeIDAsync("0|1", 10, "1", SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID);
            }
        }
Ejemplo n.º 8
0
        private void RegiestServices()
        {
            if (services == null)
                services = new BasicServices();

            client = services.PlatformClient;
            callbackClient = services.CallBackClient;
            if (callbackClient != null)
            {
                callbackClient.ReceiveReceived += new EventHandler<ReceiveReceivedEventArgs>(CallBackClient_ReceiveReceived);
                callbackClient.LoginCompleted += new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(CallBackClient_LoginCompleted);
                callbackClient.LoginAsync();
            }
        }
Ejemplo n.º 9
0
 public void Cleanup()
 {
     _refdateTimer.Tick -= _refdateTimer_Tick;
     _refdateTimer.Stop();
     _refdateTimer = null;
     //非双工客户端
     client = null;
     //双工客户端
     callbackClient = null;
     //基础服务通讯
     services = null;
 }