码迷,mamicode.com
首页 > Windows程序
Windows文件系统
文件操作 1 windows卷 2 windows目录 3 windows文件 4 windows磁盘文件遍历...
分类:Windows程序   时间:2014-12-08 10:51:58    阅读次数:391
C#的delegate与C的函数指针
引子:一个小示例,希望可以帮助广大侠士们来理解delegate。在C中的函数指针示例: 1 #include 2 3 // 减法运算 4 int minus(int a, int b) { 5 return a - b; 6 ...
分类:Windows程序   时间:2014-12-08 10:42:23    阅读次数:241
C#中的cookie编程
Cookie就是所谓的" 小甜饼" ,他最早出现是在Netscape Navigator 2.0中。Cookie其实就是由Web服务器创建的、将信息存储在计算机上的文件。那么为什么Web服务器要在客户机上面创建如此文件?这是因为当客户机发送一个请求到WEB服务器时(譬如准备浏览页面时),无论此客户机...
分类:Windows程序   时间:2014-12-08 10:41:06    阅读次数:284
[转]C# 中的委托和事件
C# 中的委托和事件引言 委托和事件在 .Net Framework中的应用非常广泛,然而,较好地理解委托和事件对很多接触C#时间不长的人来说并不容易。它们就像是一道槛儿,过了这个槛的人,觉得真是太容易了,而没有过去的人每次见到委托和事件就觉得心里别(biè)得慌,混身不自在。本文中,我将通过两个....
分类:Windows程序   时间:2014-12-08 10:35:32    阅读次数:305
分享一个漂亮WPF界面框架创作过程及其源码
本文会作为一个系列,分为以下部分来介绍:(1)见识一下这个界面框架;(2)界面框架如何进行开发;(3)辅助开发支持:Demo、模板、VsPackage制作。框架源码如下所示。本文介绍第(1)部分。1 安装现在我们就先来见识一下这个界面框架。首先,你可以通过以下链接来下载到这个框架的VS插件安装包:下...
分类:Windows程序   时间:2014-12-08 10:31:00    阅读次数:282
wince下写入数据到csv/txt文件中
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Window...
分类:Windows程序   时间:2014-12-08 10:28:45    阅读次数:240
C#获取文件夹/文件的大小以及占用空间 转摘自:http://www.cnblogs.com/chenpeng-dota/articles/2176470.html
C#获取文件夹/文件的大小以及占用空间 今天,头给了个任务:写个方法,我会给你个路径,计算这个路径所占用的磁盘空间 。 然后,找了很多资料。但大部分都是获取文件夹/文件的大小的。对于占用空间的没有成品代码。(ps:我没找到。)后来,在网上找了些资料,自己捣鼓出来了。在这里记录下,一则说不定以...
分类:Windows程序   时间:2014-12-08 10:26:55    阅读次数:306
c# 发送邮件
public static void SendMail(string to, string subject, string content) { content = string.Concat(content, Environment.NewLine, "注: ...
分类:Windows程序   时间:2014-12-08 09:17:24    阅读次数:177
c# post方式发送请求
public static bool CheckNew(string serverIP) { bool passed = false; try { string url = string....
分类:Windows程序   时间:2014-12-08 09:14:55    阅读次数:306
.Net学习 第2季05 C#面向对象 Path类 File类
.Net 视频学习第2季C#面向对象面向对象 Path类 File类Path类,命名空间IO,静态类Path.GetFileName(str),返回文件路径中的文件名,返回值为stringPath.GetFileNameWithoutExtension(str),返回文件路径中的文件名,不带扩展名,...
分类:Windows程序   时间:2014-12-08 09:13:13    阅读次数:203
【BZOJ】1179: [Apio2009]Atm(tarjan+spfa)
http://www.lydsy.com/JudgeOnline/problem.php?id=1179缩点建图。。。#include #include #include #include #include #include #include #include #include using name...
分类:Windows程序   时间:2014-12-08 08:09:47    阅读次数:288
windows phone 8.1如何访问应用商店,商店评论的连接
Windows Phone 8.1 中可以使用这个链接跳转到应用评论页面:await Windows.System.Launcher.LaunchUriAsync( new Uri("ms-windows-store:reviewapp?appid=" + CurrentApp.AppId));
分类:Windows程序   时间:2014-12-08 08:10:04    阅读次数:188
外观模式(facade)C#
外观工厂模式c#上简单例子功能:玩家有各自的移动和跳跃功能,通过外观模式实现,将所有玩家移动组合在功能1,将所有玩家跳跃功能组合在功能2中namespace facade{ public partial class Form1 : Form { private void btnFacade_...
分类:Windows程序   时间:2014-12-08 02:06:27    阅读次数:209
简单工厂模式c#
简单工厂模式c#上简单例子namespace simplefactory{ public partial class Form1 : Form { private void button1_Click(object sender, EventArgs e)//用户层次 { ...
分类:Windows程序   时间:2014-12-08 02:03:52    阅读次数:192
3.Lucene3.x API分析,Director 索引操作目录,Document,分词器
?? 1  Lucene卡发包结构分析 包名 功能 org.apache.lucene.analysis Analysis提供自带的各种Analyzer org.apache.lucene.collation 包含collationKey...
分类:Windows程序   时间:2014-12-08 00:55:24    阅读次数:390
外观模式(facade)C#
外观工厂模式c#上简单例子...
分类:Windows程序   时间:2014-12-08 00:54:16    阅读次数:207
Cesium的api之关于viewer(二)
1、构建一个viewer,如下创建;options的参数根据实际情况,进行设定 1 var viewer = new Cesium.Viewer('cesiumContainer', { 2 //Start in Columbus Viewer 3 sceneMode : Ces...
分类:Windows程序   时间:2014-12-08 00:45:43    阅读次数:504
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!