• 大小: 49KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-10
  • 语言: C#
  • 标签: winform  xmL  

资源简介

实现了在winform中对xmL文件的增加、删除、查询。xml文件在debug下。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace xmlRead
{
    class BookModel
    {
        public BookModel()
        { }
        /// 
        /// 所对应的课程类型
        /// 

        private string bookType;

        public string BookType
        {
            get { return bookType; }
            set { bookType = value; }
        }

        /// 
        /// 书所对应的ISBN号
        /// 

        private string bookISBN;

        public string BookISBN
        {
            get { return bookISBN; }
            set { bookISBN = value; }
        }

        /// 
        /// 书名
        /// 

        private string bookName;

        public string BookName
        {
            get { return bookName; }
            set { bookName = value; }
        }

        /// 
        /// 作者
        /// 

        private string bookAuthor;

        public string BookAuthor
        {
            get { return bookAuthor; }
            set { bookAuthor = value; }
        }

        /// 
        /// 价格
        /// 

        private double bookPrice;

        public double BookPrice
        {
            get { return bookPrice; }
            set { bookPrice = value; }
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1292  2018-02-13 17:47  xmlRead\xmlRead\bin\Debug\test.xml

     文件      12800  2018-02-13 17:47  xmlRead\xmlRead\bin\Debug\xmlRead.exe

     文件      30208  2018-02-13 17:47  xmlRead\xmlRead\bin\Debug\xmlRead.pdb

     文件      11600  2018-02-13 17:47  xmlRead\xmlRead\bin\Debug\xmlRead.vshost.exe

     文件        490  2010-03-17 22:39  xmlRead\xmlRead\bin\Debug\xmlRead.vshost.exe.manifest

     文件       1420  2018-02-03 00:37  xmlRead\xmlRead\BookModel.cs

     文件       5535  2018-02-05 21:22  xmlRead\xmlRead\Form1.cs

     文件       4767  2018-02-05 21:22  xmlRead\xmlRead\Form1.Designer.cs

     文件       5817  2018-02-05 21:22  xmlRead\xmlRead\Form1.resx

     文件       4440  2018-02-05 19:43  xmlRead\xmlRead\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6163  2018-02-13 17:47  xmlRead\xmlRead\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件        172  2018-02-05 21:22  xmlRead\xmlRead\obj\x86\Debug\GenerateResource.read.1.tlog

     文件        442  2018-02-05 21:22  xmlRead\xmlRead\obj\x86\Debug\GenerateResource.write.1.tlog

     文件       7897  2018-02-05 19:46  xmlRead\xmlRead\obj\x86\Debug\ResolveAssemblyReference.cache

     文件        526  2018-02-13 17:47  xmlRead\xmlRead\obj\x86\Debug\xmlRead.csproj.FileListAbsolute.txt

     文件      12800  2018-02-13 17:47  xmlRead\xmlRead\obj\x86\Debug\xmlRead.exe

     文件        180  2018-02-05 21:22  xmlRead\xmlRead\obj\x86\Debug\xmlRead.Form1.resources

     文件      30208  2018-02-13 17:47  xmlRead\xmlRead\obj\x86\Debug\xmlRead.pdb

     文件        180  2018-02-05 20:58  xmlRead\xmlRead\obj\x86\Debug\xmlRead.Properties.Resources.resources

     文件        488  2018-02-02 23:16  xmlRead\xmlRead\Program.cs

     文件       1346  2018-02-02 23:16  xmlRead\xmlRead\Properties\AssemblyInfo.cs

     文件       2862  2018-02-02 23:16  xmlRead\xmlRead\Properties\Resources.Designer.cs

     文件       5612  2018-02-02 23:16  xmlRead\xmlRead\Properties\Resources.resx

     文件       1090  2018-02-02 23:16  xmlRead\xmlRead\Properties\Settings.Designer.cs

     文件        249  2018-02-02 23:16  xmlRead\xmlRead\Properties\Settings.settings

     文件       3713  2018-02-05 20:58  xmlRead\xmlRead\xmlRead.csproj

     文件        863  2018-02-05 20:58  xmlRead\xmlRead.sln

    ..A..H.     21504  2018-02-13 17:47  xmlRead\xmlRead.suo

     目录          0  2018-02-02 23:16  xmlRead\xmlRead\obj\x86\Debug\TempPE

     目录          0  2018-02-13 17:47  xmlRead\xmlRead\obj\x86\Debug

............此处省略11个文件信息

评论

共有 条评论