随笔分类 - .NET
摘要:Lesson04 类和对象 演练1 类、对象 类的声明 字段、常量字段及访问级别 读写属性演练 属性演练:限制访问器可访问性 方法 构造函数演练2 类的继承与多态 类的继承 继承、虚方法及类的组合 抽象类 静态类成员 接口 索引器 委托敏捷学院C#基础演练是由敏捷学院推出的适合没有任何编程基础的初学者练习使用演练代码。敏捷学院C#基础演练是为本部学员代码训练使用的内部教程。现在共享给大家。通过认真的完成本演练,您将掌握C#语言的语法,为学习高级的C#开发奠定良好的基础。
阅读全文
摘要:敏捷学院C#基础演练1.0Lesson03 数组、枚举、结构 演练1 数组创建及遍历演示 演练2 将数组做为参数演示 演练3 Out和Ref演练 演练4 Array类Copy,Sort,Reverse方法演练 演练5 枚举演练 演练6 结构演练Lesson04 类和对象敏捷学院C#基础演练是由敏捷学院推出的适合没有任何编程基础的初学者练习使用演练代码。敏捷学院C#基础演练是为本部学员代码训练使用的内部教程。现在共享给大家。通过认真的完成本演练,您将掌握C#语言的语法,为学习高级的C#开发奠定良好的基础。
阅读全文
摘要:敏捷学院C#基础演练1.0更新:2011-07-15 访问:21Lesson01 开发工具的演练Lesson02 输入输出、类型、语句Lesson03 数组、枚举、结构Lesson04 类和对象敏捷学院C#基础演练是由敏捷学院推出的适合没有任何编程基础的初学者练习使用演练代码。敏捷学院C#基础演练是为本部学员代码训练使用的内部教程。现在共享给大家。通过认真的完成本演练,您将掌握C#语言的语法,为学习高级的C#开发奠定良好的基础。
阅读全文
摘要:http://dev.mjxy.cn/a-How-to-receive-the-return-value-stored-procedure.aspxASP.NET 里接收存储过程的返回值,需要定义参数. 而不是 ExecuteNoQuery的结果.using (SqlConnection cn = new SqlConnection(this.ConnectionString)) { SqlCommand cmd = new SqlCommand("Get4LayerIsA", cn); cmd.CommandType = CommandType.StoredProcedu
阅读全文
摘要:转载:http://dev.mjxy.cn/a-Silverlight-Prism-Hand-On-Lab.aspx使用Prism开发Silverlight1.新建Silverlight项目HelloWorld.Silverlight2.更改MasterPage.xaml为Shell。注意类型3.在Shell中引用xmlns:Regions="clr-namespace:Microsoft.Practices.Composite.Presentation.Regions;assembly=Microsoft.Practices.Composite.Presentation"
阅读全文
摘要:转自:http://dev.mjxy.cn/a-296.aspxc#如何取消窗体标题栏关闭using System;using System.Collections.Generic;using System.Text;using System.Runtime.InteropServices;using System.Windows.Forms;public class Disable{ [DllImport("user32.dll", SetLastError = true)] public static extern IntPtr GetSystemMenu(IntPtr
阅读全文
摘要:转自:http://dev.mjxy.cn/a-Security-Update-Windows-controls-from-another-thread.aspx// Safe update of windows control from other threadsdelegate void UpdateReportCallback(string text);private void UpdateReport(string message){ // InvokeRequired required compares the thread ID of the // calling thread t
阅读全文
摘要:转自:http://dev.mjxy.cn/a-269.aspxusing System;using System.ComponentModel;using System.Windows.Forms;namespace WindowsApplication4...{ /**//// <summary> /// gui 类 /// </summary> public partial class Form1 : Form ...{ public Form1() ...{ InitializeComponent(); } private void button1_Click(
阅读全文
摘要:标准的win32窗口程序相信熟悉windows编程的朋友,对于使用win32 api开发窗口应用程序一定不陌生。 下面的程序是从资源文件中加载一个图片并显示在窗口中。#include <windows.h>#include "resource.h"TCHAR szClassName[] = TEXT("WIN32TEST");HBITMAP hBmp;LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam){PAINTSTRUCT ps;HD
阅读全文
摘要:转自: http://dev.mjxy.cn/a-169.aspxusing System;using System.Windows.Forms;using System.Drawing;using System.Drawing.Drawing2D;namespace DevDistrict.Sample{ public class GradientPanel : System.Windows.Forms.Panel { protected override void OnPaint(PaintEventArgs e) { base.OnPaint (e); Graphics g = e.Gr
阅读全文
摘要:转载:http://dev.mjxy.cn/a-Create-pdf-using-Apache-NFOP.aspx//**************************************// Name: Create in memory PDF documents in ASP.NET using Apache NFOP// Description:The sample demonstrates how to create PDF documents in memory using the open source Apache NFOP(http://sourceforge.net/p
阅读全文
摘要:1DateTime thisDate1 = new DateTime(2011, 6, 10); 02Console.WriteLine("Today is " + thisDate1.ToString("MMMM dd, yyyy") + "."); 0304DateTimeOffset thisDate2 = new DateTimeOffset(2011, 6, 10, 15, 24, 16, 05TimeSpan.Zero); 06Console.WriteLine("The current date and tim
阅读全文
摘要:代码下载: 敏捷学院技术资源库1.引用view sourceprint?1// TODO: Use Enterprise Library Data Block 23using Microsoft.Practices.EnterpriseLibrary.Data; 45using Microsoft.Practices.EnterpriseLibrary.Common.Configuration;2.创建访问器view sourceprint?1// TODO: Create private fields for Data accessors 23private DataAccessor<
阅读全文
摘要:使用配置工具加密数据库的连接信息代码下载:http://dev.mjxy.cn/a-entlib-Encrypted-connection-information.aspx1. App.Config01<configuration> 02<configSections> 03<section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practic
阅读全文
摘要:演示代码下载: http://dev.mjxy.cn/a-entlib-Access-the-database-using-stored-procedures.aspx使用存储过程访问数据库1.配置文件view sourceprint?01<configuration> 02<configSections> 03<section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings
阅读全文
摘要:本演练直接使用SQL语句来访问数据库1.配置文件01<configuration> 02<configSections> 03<section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=5.0.414.0, Culture=neutral, PublicKeyTok
阅读全文
摘要:<<WpfQSearchExcel.rar>> 获取一个简体中文字的拼音首字母 static public string getSpell(string cn) { byte[] arrCN = Encoding.Default.GetBytes(cn); if (arrCN.Length > 1) { int area = (short)arrCN[0]; int pos = (short)arrCN[1]; int code = (area << 8) + pos; int[] areacode = { 45217, 45253, 45761, 4
阅读全文
摘要:以前没写完不敢拿出来示人,怕丢人!放在硬盘里快发霉了。节选完整的一节!希望对初学者能举一反四、五.....! Download!!!Socket通信基础既然是网络游戏那自然网络的通信是基本的需要了。关于Socket的编程还是一片空白,以前没接触过呀。还是从网上下载几本了解一下。 《TCPIP Sockets in C#》 《C# Network Programming》《Network Programing In .NET with C# and Visual Basic.NET》MSDN ..... 英文的,头痛中…… 看看里面例子..... 还是不太明白..... 自己动手写代码玩玩...
阅读全文
摘要:棋牌游戏服务器端+Silverlight客户端演练可能掌握的知识: dotNET Socket 游戏协议设计 游戏逻辑 调试输出 Silverlight客户端的连接与调试 Flash客户端的连接与调试能够了解服务/器客户端开发原理。服务器端基本功能已经差不多全乎了,客户端没做仅实现了登录测试。我就走到这里了,接下来就靠你耗费很多精力去实现吧。代码视图 游戏逻辑Silverlight客户端连接调试Flash客户端连接调试ctrl+shift+8 hide or display debug's windows。服务器端运行状态扑克发牌演练(单独的Flash Code)Download So
阅读全文

浙公网安备 33010602011771号