• 大小: 75KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-23
  • 语言: C#
  • 标签: windowforms  

资源简介

不用数据库,就一个winforms,功能很强大

资源截图

代码片段和文件信息

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

namespace Win_LiuYangYong_40
{
    class ClassAttribute
    {
        private string _Name;
        private string _Number;
        private string _Phone;
        private string _Address;  

        public string Name
        {
            get { return _Name; }
            set { _Name = value; }
        }
        public string Number
        {
            get { return _Number; }
            set { _Number = value; }
        }
        public string Phone
        {
            get { return _Phone; }
            set { _Phone = value; }
        }
        public string Address
        {
            get { return _Address; }
            set { _Address = value; }
        }
        string str = ““;  
        public override string ToString()
        {
            return str;
        }
        public bool CheckEmpty(string number string name string phone string address)
        {
            if (number == ““ || name == ““ || phone == ““ || address == ““)
            {
                return false;
            }
            else
            {
                return true;
            }
        }
        public bool CheckName(string regex1 string regex2string sname)
        {
            Regex re1= new Regex(regex1);
            Regex re2 = new Regex(regex2);
            bool b1 = re1.IsMatch(sname);
            bool b2 = re2.IsMatch(sname);
            if (b1)
            {
                str = _Number.PadRight(18) + _Name.PadRight(18 - _Name.Length) + _Phone.PadRight(18) + _Address;
                return true;
            }
            else if (b2)
            {
                str = _Number.PadRight(18) + _Name.PadRight(18) + _Phone.PadRight(18) + _Address;
                return true;
            }
            else
            {
                return false;
            }
        }
        public bool CheckInput(string regexstring input)
        {
            Regex re = new Regex(regex);
            bool b = re.IsMatch(input);
            if (!b)
            {
                return false;
            }
            else
            {
                return true;
            }
        }
       
    }
    
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2011-04-05 07:04  Win_LiuYangYong_40\
     目录           0  2011-04-05 07:04  Win_LiuYangYong_40\Win_LiuYangYong_40\
     文件         896  2011-04-02 10:39  Win_LiuYangYong_40\Win_LiuYangYong_40.sln
     文件       36352  2011-04-05 07:04  Win_LiuYangYong_40\Win_LiuYangYong_40.suo
     目录           0  2011-04-05 07:04  Win_LiuYangYong_40\Win_LiuYangYong_40\bin\
     目录           0  2011-04-05 07:04  Win_LiuYangYong_40\Win_LiuYangYong_40\bin\Debug\
     文件         283  2011-04-05 07:01  Win_LiuYangYong_40\Win_LiuYangYong_40\bin\Debug\my.txt
     文件       19968  2011-04-05 07:03  Win_LiuYangYong_40\Win_LiuYangYong_40\bin\Debug\Win_LiuYangYong_40.exe
     文件       40448  2011-04-05 07:03  Win_LiuYangYong_40\Win_LiuYangYong_40\bin\Debug\Win_LiuYangYong_40.pdb
     文件       11600  2011-04-05 07:04  Win_LiuYangYong_40\Win_LiuYangYong_40\bin\Debug\Win_LiuYangYong_40.vshost.exe
     文件         490  2009-08-31 00:40  Win_LiuYangYong_40\Win_LiuYangYong_40\bin\Debug\Win_LiuYangYong_40.vshost.exe.manifest
     文件        2359  2011-04-05 06:27  Win_LiuYangYong_40\Win_LiuYangYong_40\ClassAttribute.cs
     文件       12494  2011-04-05 07:03  Win_LiuYangYong_40\Win_LiuYangYong_40\Form_LiuYangYong_40.cs
     文件       17170  2011-04-05 07:03  Win_LiuYangYong_40\Win_LiuYangYong_40\Form_LiuYangYong_40.Designer.cs
     文件        6017  2011-04-05 07:03  Win_LiuYangYong_40\Win_LiuYangYong_40\Form_LiuYangYong_40.resx
     目录           0  2011-04-05 07:04  Win_LiuYangYong_40\Win_LiuYangYong_40\obj\
     目录           0  2011-04-05 07:04  Win_LiuYangYong_40\Win_LiuYangYong_40\obj\x86\
     目录           0  2011-04-05 07:04  Win_LiuYangYong_40\Win_LiuYangYong_40\obj\x86\Debug\
     文件        4440  2011-04-04 21:56  Win_LiuYangYong_40\Win_LiuYangYong_40\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        6220  2011-04-05 07:04  Win_LiuYangYong_40\Win_LiuYangYong_40\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件         550  2011-04-05 07:03  Win_LiuYangYong_40\Win_LiuYangYong_40\obj\x86\Debug\GenerateResource.read.1.tlog
     文件        1386  2011-04-05 07:03  Win_LiuYangYong_40\Win_LiuYangYong_40\obj\x86\Debug\GenerateResource.write.1.tlog
     文件        7897  2011-04-05 00:41  Win_LiuYangYong_40\Win_LiuYangYong_40\obj\x86\Debug\ResolveAssemblyReference.cache
     目录           0  2011-04-02 10:39  Win_LiuYangYong_40\Win_LiuYangYong_40\obj\x86\Debug\TempPE\
     文件        2394  2011-04-05 07:04  Win_LiuYangYong_40\Win_LiuYangYong_40\obj\x86\Debug\Win_LiuYangYong_40.csproj.FileListAbsolute.txt
     文件       19968  2011-04-05 07:03  Win_LiuYangYong_40\Win_LiuYangYong_40\obj\x86\Debug\Win_LiuYangYong_40.exe
     文件         180  2011-04-05 07:03  Win_LiuYangYong_40\Win_LiuYangYong_40\obj\x86\Debug\Win_LiuYangYong_40.Form_LiuYangYong_40.resources
     文件       40448  2011-04-05 07:03  Win_LiuYangYong_40\Win_LiuYangYong_40\obj\x86\Debug\Win_LiuYangYong_40.pdb
     文件         180  2011-04-04 16:20  Win_LiuYangYong_40\Win_LiuYangYong_40\obj\x86\Debug\Win_LiuYangYong_40.Properties.Resources.resources
     文件         513  2011-04-02 10:52  Win_LiuYangYong_40\Win_LiuYangYong_40\Program.cs
     目录           0  2011-04-05 07:04  Win_LiuYangYong_40\Win_LiuYangYong_40\Properties\
............此处省略7个文件信息

评论

共有 条评论

相关资源