c# 枚举操作 正运算 逆运算
摘要:没用控制台写,用WPF写的例子using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System.Windows.Documents;using System.Windows.Input;using System.Windows.Media;using System.Windows.Media.Imaging;using
阅读全文
posted @
2012-07-17 15:38
﹎蓝言觅ぷ雨
阅读(1253)
推荐(1)
WPF 走马灯 文字滚动 自定义控件
摘要:/// <summary> /// Label走马灯自定义控件 /// </summary> [ToolboxBitmap(typeof(Label))] //设置工具箱中显示的图标 public class ScrollingTextControl : Label { /// <summary> /// 定时器 /// </summary> Timer MarqueeTimer = new Timer(); /// <summary> /// 滚动文字源 /...
阅读全文
posted @
2012-07-11 17:14
﹎蓝言觅ぷ雨
阅读(12754)
推荐(3)
wpf 图片操作类 ImageBrush BitmapImage
摘要:/// <summary> /// 解析字节数组成图片 /// </summary> /// <param name="byteArray"></param> /// <returns></returns> public static BitmapImage ByteArrayToBitmapImage(byte[] byteArray) { BitmapImage bmp = null; try { bmp = ...
阅读全文
posted @
2012-07-06 16:47
﹎蓝言觅ぷ雨
阅读(8697)
推荐(3)
c# 经纬度距离计算
摘要:/// <summary> /// 经纬度之间的距离 /// </summary> /// <param name="from"></param> /// <param name="to"></param> /// <returns></returns> public static double CalcDistance(System.Windows.Point from, System.Windows.Point to) { double rad = 637
阅读全文
posted @
2012-07-06 16:41
﹎蓝言觅ぷ雨
阅读(2677)
推荐(0)
c# 通用类扩展方法 备注
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Common{ public static class ExtensionFuncation { #region 判断是否为空 /// <summary> /// 判断对象是否为null或者为空 /// </summary> /// <param name="o"></param> /// <returns></ret...
阅读全文
posted @
2012-07-06 16:38
﹎蓝言觅ぷ雨
阅读(772)
推荐(0)
WPF 结合 微软的手写板 进行输入
摘要:WPF 结合 微软的手写板 进行输入1 <my:ImageButton Grid.Row="2" Height="42" Margin="278,2,0,0" x:Name="btnInput" VerticalAlignment="Top" Click="btnGetInput_Click" DefaultSource="/JiaXinTech.WPF.HotelTerminal;component/Images/JD/Attractions_Rim_S.p
阅读全文
posted @
2012-07-04 11:43
﹎蓝言觅ぷ雨
阅读(2837)
推荐(2)