コード例 #1
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            Dictionary <string, string> dir = e.InitParams as Dictionary <string, string>;

            //setting.HotSpotBgImage = GetSettingValue(dir, "HotSpotBgImage");

            //setting.DataID = GetSettingValue(dir, "DataID");

            setting.ControlMode = (Mode)Enum.Parse(typeof(Mode), GetSettingValue(dir, "Mode"), true);

            setting.WebServiceUrl = GetSettingValue(dir, "WebServiceUrl");

            //setting.RootUrl = GetSettingValue(dir, "RootUrl");

            setting.FloorNo = GetSettingValue(dir, "FloorNo");

            setting.ShopMallNo = GetSettingValue(dir, "ShopMallNo");

            HotSpotWebServiceSoapClient serviceClient = App.GetHotSpotWebServiceSoapClient(setting);

            serviceClient.LoadShopMallLayoutDataAsync(setting.ShopMallNo, setting.FloorNo);
            serviceClient.LoadShopMallLayoutDataCompleted += new EventHandler <LoadShopMallLayoutDataCompletedEventArgs>(serviceClient_LoadShopMallLayoutDataCompleted);
            //serviceClient(setting.DataID, ROSHotSpot.HotSpotsToJson(HostSpots, imgBg.Width, imgBg.Height));
            //serviceClient.SaveHotspotDataCompleted += new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(serviceClient_SaveHotspotDataCompleted);
        }
コード例 #2
0
        private void btnSaveHotSpot_Click(object sender, RoutedEventArgs e)
        {
            HotSpotWebServiceSoapClient serviceClient = App.GetHotSpotWebServiceSoapClient(setting);

            ShopMallFloorHotspotData shopMallFloorHotspot = new ShopMallFloorHotspotData();

            shopMallFloorHotspot.ShopMallNo      = shopMallFloorData.ShopMallNo;
            shopMallFloorHotspot.ShopMallFloorNo = shopMallFloorData.ShopMallFloorNo;


            serviceClient.SaveShopMallFloorHotspotDataAsync(shopMallFloorHotspot, SLHotSpot.ROSHotSpot.HotSpotsToList(HostSpots, this.imgBg.Width, this.imgBg.Height));
            serviceClient.SaveShopMallFloorHotspotDataCompleted += new EventHandler <System.ComponentModel.AsyncCompletedEventArgs>(serviceClient_SaveShopMallFloorHotspotDataCompleted);
        }
コード例 #3
0
        public static HotSpotWebServiceSoapClient GetHotSpotWebServiceSoapClient(SLHotSpotSetting _setting)
        {
            BasicHttpBinding basicBinding = new BasicHttpBinding();

            basicBinding.MaxBufferSize          = 2147483647;
            basicBinding.MaxReceivedMessageSize = 2147483647;

            CustomBinding binding = new CustomBinding(basicBinding);

            BindingElement binaryElement = new BinaryMessageEncodingBindingElement();

            EndpointAddress endPoint = new EndpointAddress(_setting.WebServiceUrl);

            HotSpotWebServiceSoapClient serviceClient = new HotSpotWebServiceSoapClient(binding, endPoint);

            return(serviceClient);
        }