上一页 1 ··· 5 6 7 8 9 10 下一页
摘要: 1基本绑定 对应于BasicHttpBinding 类。基本绑定(Basic Binding ) 能够将WCF服务公开 为传统的ASMX Web服务、使用原客户端与新的服务协作、2TCP 绑定对应于NetTcpBinding类、TCP绑定使用的是TCP协议实现在Intranet中夸机器的通信。支持多种特性。包括可靠性,事务性、安全性。以及WCF之间的通信的优化、3IPC绑定 对应于 NetNamedPipeBinding类、安使用命名管道为同一机器通信进行传输。这种绑定最安全。因为它不接收机器外部的调用。该绑定的正确命名为NetIPCBinding4WEB服务 对应于WSHttpBind... 阅读全文
posted @ 2012-10-22 15:18 在 水 一 方 阅读(330) 评论(1) 推荐(0) 编辑
摘要: CodeWCF系统架构 1 namespace WCF 2 { 3 4 /*---------------------------------------------------------- 5 WCF契约 6 1服务契约[ServiceContract] 7 客户端能够执行的服务操作. 8 2数据契约[Data Contract] 9 定义与服务交互的数据类型.如Int,String,Double 等10 3错误契约[Fault Contract]11 *服务端有什么错误 告诉... 阅读全文
posted @ 2012-10-22 14:50 在 水 一 方 阅读(335) 评论(1) 推荐(0) 编辑
摘要: 1 /// <summary> 2 /// 修改WCF配置文件 3 /// </summary> 4 public class ConfigWcfEndpoing 5 { 6 /// <summary> 7 /// 修改WCF 客户端服务IP地址修改 8 /// </summary> 9 /// <param name="serverip">服务器的IP地址</param>10 public void ChangeWCF(string serverip)11 ... 阅读全文
posted @ 2012-10-19 10:29 在 水 一 方 阅读(1456) 评论(0) 推荐(0) 编辑
摘要: 在Inno Setup安包制作的时候、会发展项目下的子文件夹会 生成到主文件下面。导致程序无法使用。#define MyAppName "4D××××××××××V1.0" #define MyAppVersion "1.0.0.0" #define MyAppPublisher "成都×××××××" #define MyAppURL "http://ww 阅读全文
posted @ 2012-10-17 10:46 在 水 一 方 阅读(664) 评论(0) 推荐(1) 编辑
摘要: Code 1 string filePath = @Environment.CurrentDirectory + "\\SimuAppClient.txt"; 2 if(!File.Exists(filePath)) 3 { 4 return; 5 } 6 var filest = new FileStream(filePath, FileMode.Open, FileAccess.ReadWrite); 7 using (var sr ... 阅读全文
posted @ 2012-10-11 11:50 在 水 一 方 阅读(465) 评论(2) 推荐(0) 编辑
摘要: 1 <Window x:Class="WPFBookDemo1.MainWindow" 2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 4 Title="MainWindow" Height="372" Width="599"> 5 <Grid Horizon 阅读全文
posted @ 2012-09-28 14:46 在 水 一 方 阅读(3573) 评论(0) 推荐(0) 编辑
摘要: StreamResourceInfo sri=Application.GetResourceStream( new Uri("stop.ani",UriKind.Relative)); Cursor customCurrsor=new Cursor (sri.Stream); this.Cursor=customCurrsor;Cursor对象不直接支持URI资源语法,通过该语法其它WPF元素(如Image对象)可以使用保存在编译过的程序集中的文件,然后。为应用程序添加光标文件作为资源,然后作为可以用于构造Cur... 阅读全文
posted @ 2012-09-28 14:30 在 水 一 方 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 通过 FrameWorkPropertyMetadata 对象 使用 CoerceValueCallBack回调,下面是一个示例, FrameworkPropertyMetadata metadata = new FrameworkPropertyMetadata(); metadata.CoerceValueCallback = new CoerceValueCallback(CoerceMaxValue); DependencyProperty.Register("Maximum", typeof(double), typeof(RangeBase), metada.. 阅读全文
posted @ 2012-09-28 10:51 在 水 一 方 阅读(2362) 评论(2) 推荐(0) 编辑
摘要: Visible元素在窗体中正常显示Collaspsed元素不显示,也不占用空间Hidden元素不显示,但是任然为它保留空间 阅读全文
posted @ 2012-09-28 09:44 在 水 一 方 阅读(9966) 评论(1) 推荐(1) 编辑
摘要: 1 <Window x:Class="WPF.MainWindow" 2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 4 Title="MainWindow" Height="350" Width="525"> 5 <Grid> 6 <Button 阅读全文
posted @ 2012-09-27 16:52 在 水 一 方 阅读(1968) 评论(0) 推荐(0) 编辑
摘要: View Code 1 <Window x:Class="WPF.MainWindow" 2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 4 Title="MainWindow" Height="350" Width="525"> 5 <Grid> 6 阅读全文
posted @ 2012-09-27 16:41 在 水 一 方 阅读(845) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;namespace ThreadPoolDemo{ class Program { static void Main(string[] args) { int nWorkerThreads; int nCompletionPorteads; ThreadPool.GetMaxThreads(out nWorkerThreads, out nCompletionPorteads); Con 阅读全文
posted @ 2012-09-24 17:01 在 水 一 方 阅读(504) 评论(0) 推荐(0) 编辑
摘要: public string NumToChinese(string x) { //数字转换为中文后的数组 string[] P_array_num = new string[] { "零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖" }; //为数字位数建立一个位数组 string[] P_array_digit = new string[] { &q 阅读全文
posted @ 2012-09-21 09:54 在 水 一 方 阅读(420) 评论(0) 推荐(0) 编辑
摘要: byte by1, by2; if (byte.TryParse(textBox1.Text, out by1) && byte.TryParse(textBox2.Text, out by2))//判断是否是 Byte类型 { try { checked { by1 += by2; textBox3.Text = by1.ToString(); } } catch (OverflowException ex)//溢出异常 { MessageBox.Show(ex.Message); } } else { MessageBox.Show("对不起!您输入的数字有问题! 阅读全文
posted @ 2012-09-21 09:44 在 水 一 方 阅读(215) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using SIMUHKNETSDK;namespace SIMUSDK{ public partial class Form1 : Form { private int m_videoHandle;//视频Handle ... 阅读全文
posted @ 2012-06-28 16:06 在 水 一 方 阅读(1057) 评论(4) 推荐(0) 编辑
摘要: 2012-06-05 /// /// 获取本地IP地址信息 /// void GetAddressIP() { ///获取本地的IP地址 string AddressIP = string.Empty; foreach (IPAddress _IPAddress in Dns.GetHostEntry(Dns.GetHostName()).AddressList) { if (_IPAddress.AddressF... 阅读全文
posted @ 2012-06-05 09:29 在 水 一 方 阅读(45938) 评论(7) 推荐(2) 编辑
摘要: <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="Microsoft.Samples.KeyFrameAnimations.KeyFramesIntroduction" WindowTitle="KeyFrame Animations"> <Border Width=" 阅读全文
posted @ 2012-04-28 11:59 在 水 一 方 阅读(667) 评论(0) 推荐(0) 编辑
摘要: WPF 设计器包括若干个程序集,这些程序集分为三个类别:公共类别、私有类别和特定于设计器的类别。公共程序集公开可用于向控件添加设计时逻辑的类。私有程序集和特定于设计器的程序集定义 WPF 设计器的功能集以及该功能集与设计器(如 Visual Studio 和 Expression Blend)的交互。WPF 和 Silverlight 设计器作为单个实体安装。每个设计器没有单独的包。下表显示了如何部署 WPF 设计器功能。程序集公共 API说明Microsoft.Windows.Design.Extensibility.dll是通过特性和 Visual Studio SDK 集成逻辑提供扩展性 阅读全文
posted @ 2012-04-28 11:43 在 水 一 方 阅读(1249) 评论(0) 推荐(0) 编辑
摘要: XMAL代码 阅读全文
posted @ 2012-04-27 00:05 在 水 一 方 阅读(598) 评论(0) 推荐(0) 编辑
摘要: ///<summary> /// 调用系统 语音朗读 备注 该方法只支持.net 4.0 版本以上 /// </summary> /// <param name="type">错误类型</param> /// <param name="isAsync">是否同步朗读</param> /// <param name="CardCode">卡片编号/卡片持有者</param> void PlaySpeekMouth(Classes.AlarmT 阅读全文
posted @ 2012-04-24 16:02 在 水 一 方 阅读(1938) 评论(4) 推荐(2) 编辑
上一页 1 ··· 5 6 7 8 9 10 下一页