private void dataGrid_MouseRightButtonDown(object sender, MouseButtonEventArgs e) { ContextMenu context = new ContextMenu(); ...
分类:
其他好文 时间:
2014-07-16 16:52:05
阅读次数:
318
#include #include typedef struct A{ int a:5; int b:3; unsigned c:8; unsigned d:8;} Type_A;/* VS2010, Windows XP, Debug模式下运行 */int main(void){ struc...
分类:
其他好文 时间:
2014-07-16 16:47:14
阅读次数:
210
引用using Shell32; private void Open_Click(object sender, RoutedEventArgs e) { OpenFileDialog ofd = new OpenFileDialog(); ...
分类:
其他好文 时间:
2014-07-16 16:13:10
阅读次数:
210
iOS开发项目篇—34获取用户信息一、简单说明需求:获取当前用户的昵称 ,需要获取当前登录用户的个人信息。查看接口要求传递的参数这里要获取的时用户的昵称(所以使用用户id作为参数传入)二、实现代码 1 - (void)viewDidLoad 2 { 3 [super viewDidLoad]...
分类:
移动开发 时间:
2014-07-16 15:50:19
阅读次数:
386
一、前言 由于工作需要最近把邮件发送封装成WebService,现在把代码记录在此,以便日后查阅。二、二话不说写代码 private void _SendMail(string form, string pw,...
分类:
Web程序 时间:
2014-07-16 15:47:35
阅读次数:
194
在创建项目DbContext时,重写DbContext.OnModelCreating()方法;然后通过如下方法指定精度1 protected override void OnModelCreating(DbModelBuilder modelBuilder) 2 { 3 modelBuil...
分类:
其他好文 时间:
2014-07-16 14:13:43
阅读次数:
215
1、创建线程#includeint pthread_create(pthread_t* tidp,const pthread_attr_t *attr,void*(*start_rtn)(void),void*arg)tidp:线程idattr:线程属性(通常为空)start_rtn:线程要执行的函...
分类:
编程语言 时间:
2014-07-16 14:00:08
阅读次数:
181
图像腐蚀和图像膨胀是图像中两种最基本形态学操作。void erode( const Mat& src, Mat& dst, const Mat& element,Point anchor=Point(-1,-1), int iterations=1,int borderType=BORDER_CON...
分类:
其他好文 时间:
2014-07-16 13:57:18
阅读次数:
21964
protected void WriteLog(string message) { lock (lockObject) { var file = System.IO.File.AppendText...
分类:
编程语言 时间:
2014-07-16 13:51:46
阅读次数:
213
直接放上我的代码,希望能给碰到同样问题的朋友提供帮助
Runnable runnable = new Runnable() {
public void run() {
ClipboardManager clipboard = (ClipboardManager)GameUtil.getIntance().getContext().getSystemSer...
分类:
其他好文 时间:
2014-07-16 13:50:37
阅读次数:
396