91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 264KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2021-05-09
  • 語言: 其他
  • 標簽: C#??

資源簡介

這是本人自學習CSharp以來的首次程序 內部含有很多的控件的使用 如ListView Toolbar ContexMenu 還有操作注冊表的信息 通訊錄的保存方式是以xml文檔的方式保存 大家共同學習!O(∩_∩)O哈哈~

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.xml;
using?System.Windows.Forms;

namespace?CSharp
{
????public?partial?class?addName?:?Form
????{
????????xmlDocument?xmlDoc?=?new?xmlDocument();//定義xml文檔類對象

????????public?xmlNode?rootNode;//文檔中單個節點對象

????????public?addName(MainForm?parent)
????????{
????????????InitializeComponent();
????????????this.parentForm?=?parent;
????????????this.DialogResult?=?DialogResult.Cancel;
????????}
????????//退出
????????private?void?btnExit_Click(object?sender?EventArgs?e)
????????{
????????????
????????????MainForm.bOK?=?false;
????????????this.Dispose();
????????}


????????public?void?createxml(string?strName)
????????{


????????????//在創建一個節點時之所以前面要加上str是考慮會輸入首字母是數字的姓名
????????????//在xml規范中是不允許以首字母為數字來命名節點名字的
????????????xmlNode?Name?=?xmlDoc.CreateElement(“str“+strName);
????????????xmlNode?Gender?=?xmlDoc.CreateElement(“Gender“);
????????????xmlNode?EMail?=?xmlDoc.CreateElement(“EMail“);
????????????xmlNode?QQ?=?xmlDoc.CreateElement(“QQ“);
????????????xmlNode?Mobile?=?xmlDoc.CreateElement(“Mobile“);

????????????Name.AppendChild(Gender);
????????????Name.AppendChild(EMail);
????????????Name.AppendChild(QQ);
????????????Name.AppendChild(Mobile);

????????????rootNode.AppendChild(Name);
????????????xmlDoc.AppendChild(rootNode);

????????????

????????}
???????
????????//確定
????????private?void?btnOk_Click(object?sender?EventArgs?e)
????????{
????????????//xmlLib?xml?=?new?xmlLib.xmlbase();
????????????if(this.parentForm.bEdit==true)
????????????{
????????????????this.parentForm.Curstruct.ItemName?=?txtName.Text;
????????????????this.parentForm.Curstruct.ItemGender?=?comboGender.Text;
????????????????this.parentForm.Curstruct.ItemEMail?=?txtEMail.Text;
????????????????this.parentForm.Curstruct.ItemQQ?=?txtQQ.Text;
????????????????this.parentForm.Curstruct.ItemMobile?=?txtMobile.Text;
????????????????bool?bIsEqual=false;
????????????????if?(this.parentForm.Curstruct.ItemName?==?this.parentForm.Oldstruct.ItemName)
????????????????{
????????????????????if?(this.parentForm.Curstruct.ItemEMail?==?this.parentForm.Oldstruct.ItemEMail)
????????????????????{
????????????????????????if?(this.parentForm.Curstruct.ItemGender?==?this.parentForm.Oldstruct.ItemGender)
????????????????????????{
????????????????????????????if?(this.parentForm.Curstruct.ItemQQ?==?this.parentForm.Oldstruct.ItemQQ)
????????????????????????????{
????????????????????????????????if?(this.parentForm.Curstruct.ItemMobile?==?this.parentForm.Oldstruct.ItemMobile)
????????????????????????????????{
????????????????????????????????????bIsEqual?=?true;
????????????????????????????????}
????????????????????????????}
????????????????????????}
????????????????????}
????????????????}
????????????????if?(bIsEqual==true)//編輯完成后沒有更改
??????

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件??????99678??2010-09-07?11:57??CSharp\1279286287_google_voice.ico

?????文件???????9086??2010-09-07?15:11??CSharp\addName.cs

?????文件???????9445??2010-09-07?14:43??CSharp\addName.Designer.cs

?????文件?????155634??2010-09-07?14:43??CSharp\addName.resx

?????文件??????14328??2010-09-07?15:14??CSharp\bin\Debug\CSharp.vshost.exe

?????文件????????490??2009-06-11?05:14??CSharp\bin\Debug\CSharp.vshost.exe.manifest

?????文件??????99678??2010-08-12?09:30??CSharp\bitmap\1279286287_google_voice.ico

?????文件??????99678??2010-08-12?09:30??CSharp\bitmap\delete.ico

?????文件???????4336??2010-09-06?16:41??CSharp\bitmap\edit.png

?????文件??????16588??2010-09-06?16:24??CSharp\bitmap\logo.png

?????文件??????99678??2010-08-12?09:30??CSharp\bitmap\plus.ico

?????文件???????4773??2010-09-07?11:58??CSharp\CSharp.csproj

?????文件????????901??2010-09-02?10:58??CSharp\CSharp.sln

????..A..H.?????27136??2010-09-07?15:14??CSharp\CSharp.suo

?????文件???????4770??2010-09-07?14:43??CSharp\FormSet.cs

?????文件???????8739??2010-09-07?14:43??CSharp\FormSet.Designer.cs

?????文件?????155634??2010-09-07?14:43??CSharp\FormSet.resx

?????文件??????22847??2010-09-07?15:08??CSharp\MainForm.cs

?????文件??????17344??2010-09-07?14:28??CSharp\MainForm.Designer.cs

?????文件?????305933??2010-09-07?14:28??CSharp\MainForm.resx

?????文件???????5120??2010-09-06?16:41??CSharp\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll

?????文件????????490??2010-09-02?11:04??CSharp\Program.cs

?????文件???????1344??2010-09-02?10:58??CSharp\Properties\AssemblyInfo.cs

?????文件???????3828??2010-09-06?16:41??CSharp\Properties\Resources.Designer.cs

?????文件???????6901??2010-09-06?16:41??CSharp\Properties\Resources.resx

?????文件???????1091??2010-09-02?10:58??CSharp\Properties\Settings.Designer.cs

?????文件????????249??2010-09-02?10:58??CSharp\Properties\Settings.settings

?????文件???????2589??2010-09-07?11:55??CSharp\StartByWindows.cs

?????目錄??????????0??2010-09-02?11:04??CSharp\obj\Debug\Refactor

?????目錄??????????0??2010-09-06?16:41??CSharp\obj\Debug\TempPE

............此處省略10個文件信息

評論

共有 條評論