資源簡介
這是一款聊天的小程序,適合初學者學習下哦,

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;
using?CCWin;
using?CCWin.SkinControl;
using?System.Runtime.InteropServices;
using?System.Net;
using?System.Net.Sockets;
using?System.IO;
using?System.Threading;
using?ESPlus.Rapid;
using?GG.Core;
using?ESBasic.objectManagement.Forms;
using?ESPlus.Application.P2PSession.Passive;
using?ESPlus.FileTransceiver;
using?ESBasic;
using?ImageCapturerLib;
namespace?GG
{
????public?partial?class?ChatForm?:?CCSkinMain?IManagedForm
????{
????????private?string?title_FileTransfer?=?“文件傳送“;
????????private?FileTransferingViewer?fileTransferingViewer?=?new?FileTransferingViewer();
????????private?EmotionForm?emotionForm;
????????private?IRapidPassiveEngine?rapidPassiveEngine;
???????
????????private?bool?friendOffline?=?false;
????????private?string?myNickName?=?““;
????????private?string?friendNickName?=?““;
????????private?string?friendID?=?““;??????????
???????
????????#region?IManagedForm?Member
????????public?string?FormID
????????{
????????????get?{?return?this.friendID;?}
????????}?
????????#endregion
????????public?ChatForm(IRapidPassiveEngine?engine?string?_myNickName?ChatListSubItem?item)
????????{
????????????this.rapidPassiveEngine?=?engine;
????????????this.myNickName?=?_myNickName;
????????????this.friendNickName?=?item.NicName;
????????????this.friendID?=?item.ID.ToString();??????????
????????????InitializeComponent();???????????
????????????this.Text?=?“與?“?+?this.friendNickName?+?“?對話中“;
????????????this.labelFriendName.Text?=?friendNickName;
????????????this.labelFriendSignature.Text?=?item.PersonalMsg;
????????????this.panelFriendHeadImage.BackgroundImage?=?item.HeadImage;
????????????this.textBoxSend.Focus();
????????????List?emotionList?=?new?List();
????????????foreach?(Image?emotion?in?this.imageList1.Images)
????????????{
????????????????emotionList.Add(emotion);
????????????}
????????????
????????????this.emotionForm?=?new?EmotionForm();
????????????this.emotionForm.Load?+=?new?EventHandler(emotionForm_Load);????????
????????????this.emotionForm.Initialize(emotionList);
????????????this.emotionForm.Emotionclicked?+=?new?ESBasic.CbGeneric(emotionForm_Clicked);
????????????this.emotionForm.Visible?=?false;???????
?????
????????????//文件傳送
????????????this.fileTransferingViewer.Initialize(this.friendID?this.rapidPassiveEngine.FileOutter);
????????????this.fileTransferingViewer.FileTransStarted?+=?new?CbGeneric(fileTransferingViewer1_FileTransStarted);
????????????this.fileTransferingViewer.FileTransDisruptted?+=?new?CbGeneric(fileTransferingViewer1_FileTransDisruptted);
????????????this.fileTransferingViewer.FileTransCompleted?+=?new?CbGeneric(fileTransferingViewer1_FileTransCompleted);
????????????this.f
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????2364??2013-08-08?11:33??51Aspx源碼必讀.txt
?????目錄???????????0??2013-08-08?11:34??Dlls\
?????文件??????384000??2013-07-10?16:41??Dlls\ESBasic.dll
?????文件??????187392??2013-07-12?08:52??Dlls\ESfr
?????文件??????144248??2013-07-12?08:50??Dlls\ESfr
?????文件??????265728??2013-07-12?08:52??Dlls\ESPlus.dll
?????文件??????167506??2013-07-12?08:50??Dlls\ESPlus.xm
?????文件???????76800??2013-07-29?16:51??Dlls\ImageCapturerLib.dll
?????文件??????191488??2012-10-31?10:14??Dlls\Paintfr
?????文件??????529920??2013-04-28?15:19??Dlls\SkinForm.dll
?????目錄???????????0??2013-08-08?11:34??GG\
?????文件????????4286??2013-08-07?15:55??GG\All_logo32-xp.ico
?????文件???????70977??2013-07-30?11:26??GG\ChatForm.Designer.cs
?????文件???????22665??2013-07-30?11:26??GG\ChatForm.cs
?????文件??????633283??2013-07-29?16:20??GG\ChatForm.resx
?????文件????????1947??2013-07-30?11:26??GG\EmotionForm.Designer.cs
?????文件????????3989??2013-07-30?11:26??GG\EmotionForm.cs
?????文件????????5817??2013-07-16?14:24??GG\EmotionForm.resx
?????目錄???????????0??2013-08-08?11:34??GG\FileTransferingViewer\
?????文件????????7766??2013-07-30?11:26??GG\FileTransferingViewer\FileTransferItem.Designer.cs
?????文件????????9531??2013-07-30?11:26??GG\FileTransferingViewer\FileTransferItem.cs
?????文件???????19408??2013-07-26?11:50??GG\FileTransferingViewer\FileTransferItem.resx
?????文件????????2488??2013-07-30?11:26??GG\FileTransferingViewer\FileTransferingViewer.Designer.cs
?????文件???????18937??2013-07-30?11:26??GG\FileTransferingViewer\FileTransferingViewer.cs
?????文件????????5814??2013-07-26?09:33??GG\FileTransferingViewer\FileTransferingViewer.resx
?????文件????????1554??2013-07-30?11:26??GG\FileTransferingViewer\IFileTransferingViewer.cs
?????文件?????????463??2011-11-10?09:49??GG\FileTransferingViewer\vssver2.scc
?????文件???????15360??2013-08-07?15:56??GG\GG.csproj
?????文件?????????227??2013-07-29?15:01??GG\GG.csproj.user
?????文件???????12684??2013-07-30?16:13??GG\InformationForm.Designer.cs
?????文件????????1841??2013-07-30?16:13??GG\InformationForm.cs
............此處省略305個文件信息
- 上一篇:個人鬧鐘的小程序
- 下一篇:Dreamwever個人主頁設計
評論
共有 條評論