Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

C#»­Ï߿ؼþµÄ¿ª·¢Ó¦ÓÃʵÀý½âÎö

C#»­Ï߿ؼþµÄÓ¦ÓÃʵÀý½éÉÜ֮ǰÎÒÃÇÒªÃ÷°×ÔÚC#ÖÐûÓл­ÏߵĿؼþ£¬ÕâÀïдÁËÒ»¸ö£¬´ó¼Ò·ÖÏí¡£¹²ÓÐÁ½¸ö¿Ø¼þ·Ö±ðÊÇ»­ºáÏߺͻ­ÊúÏߵ쬹ØÓÚÔõô»­Ð±ÏßÓÐÐËȤµÄ¿ÉÒÔ×öÒ»¸ö´ó¼Ò·ÖÏí¡£
    C#»­Ï߿ؼþÖ®ºáÏß
using System;  
using System.Collections;  
using System.ComponentModel;  
using System.Drawing;  
using System.Data;  
using System.Windows.Forms;  
 
namespace Jiashi.WinControls  
{  
 ///   
 /// LineX »­ºáÏ߿ؼþ  
 ///   
 public class LineX : System.Windows.Forms.UserControl  
 {  
 
#region ÊôÐÔ¶¨Òå  
private System.Drawing.Color lineColor;  
private int lineWidth;  
///   
/// ÏßµÄÑÕÉ«ÊôÐÔ  
///   
public System.Drawing.Color LineColor  
{  
 set 
 {  
this.lineColor=value;  
System.Windows.Forms.PaintEventArgs ep=  
new PaintEventArgs(this.CreateGraphics(),  
this.ClientRectangle);  
this.LineX_Paint(this,ep);  
 }  
 get{return this.lineColor;}  
}  
///   
/// ÏߵĴÖϸ  
///   
public int LineWidth  
{  
 set 
 {  
this.lineWidth=value;  
System.Windows.Forms.PaintEventArgs ep=  
new PaintEventArgs(this.CreateGraphics(),  
this.ClientRectangle);  
this.LineX_Paint(this,ep);  
 }  
 get{return this.lineWidth;}  
}  
#endregion  
private System.ComponentModel.Container components = null;  
 
///   
/// ¹¹Ô캯Êý³õʼÑÕÉ«ºÍÏß´Öϸ  
///   
public LineX()  
{  
 InitializeComponent();  
 this.lineColor=this.ForeColor;  
 this.lin


Ïà¹ØÎĵµ£º

C#ÈëÃÅ

±äÁ¿¡¢³£Á¿¼°±í´ïʽ±äÁ¿ºÍ³£Á¿±äÁ¿(¾²Ì¬¡¢·Ç¾²Ì¬¡¢Êý×éÔªËØ¡¢Öµ²ÎÊý¡¢ÒýÓòÎÊý¡¢Êä³ö²ÎÊý¡¢¾Ö²¿±äÁ¿)¾²Ì¬(static) Èç public static int x;  Ò»µ©¾²Ì¬±äÁ¿ËùÊôµÄÀà±»×°ÔØ£¬Ö±µ½°üº¬¸ÃÀàµÄ³ÌÐòÔËÐнáÊøÊ±ËüÒ»Ö±´æÔÚ¡£·Ç¾²Ì¬£º²»´øÓÐstaticÐÞÊηûÉùÃ÷µÄ±äÁ¿³ÆÎªÊµÀý±äÁ¿£¬Èçint a ;³£Á¿(attributes constnt-modifiers CO ......

dzÎö¹¤³§Ä£Ê½(C#)

ÎÒÒÔΪ£¬ÔÚËùÓÐģʽÖУ¬×î¼òµ¥¡¢×î³£ÓõľÍÊǹ¤³§Ä£Ê½ÁË£¨°üÀ¨³éÏ󹤳§£©¡£
¹¤³§Ä£Ê½ºÍ³éÏóģʽµÄÇø±ðÔÚÓÚ£¬¹¤³§Ä£Ê½ÊÇͨ¹ý²ÎÊý£¨Ò»°ã½ÐÐͱðÂ룩À´¶¯Ì¬Éú³É¶ÔÏ󣬶ø³éÏ󹤳§±ØÐëÁ˽âÉÏÏÂÎIJÅÄܵ÷ÓÃÏàÓ¦µÄ¶ÔÏó¡£ÊµÀý´úÂëÈçÏ£º
Ò»¡¢¹¤³§Ä£Ê½
public class Factory
{
public static object Create(int type)
{ ......

c#ʵÏÖÏÂÔØ´úÂëÊÕ¼¯

//TransmitFileʵÏÖÏÂÔØ
    protected void Button1_Click(object sender, EventArgs e)
    {
        /*
        Î¢ÈíΪResponse¶ÔÏóÌṩÁËÒ»¸öÐµķ½·¨TransmitFileÀ´½â¾öʹÓÃRespo ......

C#ÀàºÍC#½á¹¹ÌåµÄ¹ØÏµ

C#ÀࣺÀàÊÇC# Öй¦ÄÜ×îΪǿ´óµÄÊý¾ÝÀàÐÍ£¬ÀàÒ²¶¨ÒåÁËÊý¾ÝÀàÐ͵ÄÊý¾ÝºÍÐÐΪ¡£È»ºó£¬³ÌÐòÔ±¿ÉÒÔ´´½¨×÷Ϊ´ËÀàµÄʵÀýµÄ¶ÔÏó¡£
C#½á¹¹Ì壺½á¹¹ÌåÊÇÇáÁ¿Ð͵ÄÀ࣬ʹÓÿªÏúÏà¶ÔÓÚÀà½ÏС¡£
C#ÀàºÍC#½á¹¹ÌåÁ½ÕߵĹØÏµ£º
1.Êý¾ÝÀàÐÍ£ºÀàºÍ½á¹¹Ìå¶¼ÊÇÊý¾ÝÀàÐÍ£¬ÀàÊÇÒýÓÃÀàÐÍ£¬½á¹¹ÌåÊÇÖµÀàÐÍ¡£
2.¼Ì³ÐÐÔ£ºÀà¿ÉÒԼ̳кͱ»¼Ì³Ð£¬¶ø½á¹ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ