• 大小: 1.45MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-11-15
  • 语言: C#
  • 标签: C#  

资源简介

我用自己喜欢的明星做了一个小系统,使用C#和MySQL数据库的实现,附带MySQl语言,系统功能包括往数据库增加、删除数据还有查找等功能,实现很简单,适合初学者使用!

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace TestSystem4
{
    partial class AboutBox1 : Form
    {
        public AboutBox1()
        {
            InitializeComponent();
            this.Text = String.Format(“关于 {0}“ Assemblytitle);
            this.labelProductName.Text = AssemblyProduct;
            this.labelVersion.Text = String.Format(“版本 {0}“ AssemblyVersion);
            this.labelCopyright.Text = AssemblyCopyright;
            this.labelCompanyName.Text = AssemblyCompany;
            this.textBoxDescription.Text = AssemblyDescription;
        }

        #region 程序集特性访问器

        public string Assemblytitle
        {
            get
            {
                object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblytitleAttribute) false);
                if (attributes.Length > 0)
                {
                    AssemblytitleAttribute titleAttribute = (AssemblytitleAttribute)attributes[0];
                    if (titleAttribute.title != ““)
                    {
                        return titleAttribute.title;
                    }
                }
                return System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().Codebase);
            }
        }

        public string AssemblyVersion
        {
            get
            {
                return Assembly.GetExecutingAssembly().GetName().Version.ToString();
            }
        }

        public string AssemblyDescription
        {
            get
            {
                object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute) false);
                if (attributes.Length == 0)
                {
                    return ““;
                }
                return ((AssemblyDescriptionAttribute)attributes[0]).Description;
            }
        }

        public string AssemblyProduct
        {
            get
            {
                object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute) false);
                if (attributes.Length == 0)
                {
                    return ““;
                }
                return ((AssemblyProductAttribute)attributes[0]).Product;
            }
        }

        public string AssemblyCopyright
        {
            get
            {
                object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute) false);
                if (attributes.Length == 0)
                {
                    return ““;
                }
                return ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
            }
        }

        public

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

    ..A..H.     44032  2017-12-14 14:24  TestSystem4\.vs\TestSystem4\v15\.suo

     文件          0  2017-12-12 14:19  TestSystem4\.vs\TestSystem4\v15\Server\sqlite3\db.lock

     文件     655360  2017-12-14 14:24  TestSystem4\.vs\TestSystem4\v15\Server\sqlite3\storage.ide

     文件       1157  2017-12-14 14:25  TestSystem4\runningman.sql

     文件       3590  2017-12-12 15:20  TestSystem4\TestSystem4\AboutBox1.cs

     文件      10548  2017-12-12 15:20  TestSystem4\TestSystem4\AboutBox1.Designer.cs

     文件      49171  2017-12-12 15:20  TestSystem4\TestSystem4\AboutBox1.resx

     文件        189  2017-12-12 14:19  TestSystem4\TestSystem4\App.config

     文件     457728  2015-10-02 23:05  TestSystem4\TestSystem4\bin\Debug\MySql.Data.dll

     文件     314880  2017-12-14 14:23  TestSystem4\TestSystem4\bin\Debug\TestSystem4.exe

     文件        189  2017-12-12 14:19  TestSystem4\TestSystem4\bin\Debug\TestSystem4.exe.config

     文件      85504  2017-12-14 14:23  TestSystem4\TestSystem4\bin\Debug\TestSystem4.pdb

     文件        868  2017-12-13 10:37  TestSystem4\TestSystem4\obj\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       7728  2017-12-14 12:15  TestSystem4\TestSystem4\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件          0  2017-12-12 14:19  TestSystem4\TestSystem4\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs

     文件          0  2017-12-12 14:19  TestSystem4\TestSystem4\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs

     文件          0  2017-12-12 14:19  TestSystem4\TestSystem4\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs

     文件       4096  2017-12-14 10:43  TestSystem4\TestSystem4\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll

     文件      29192  2017-12-14 12:16  TestSystem4\TestSystem4\obj\Debug\TestSystem4.AboutBox1.resources

     文件          0  2017-12-14 14:23  TestSystem4\TestSystem4\obj\Debug\TestSystem4.csproj.CopyComplete

     文件         42  2017-12-14 12:15  TestSystem4\TestSystem4\obj\Debug\TestSystem4.csproj.CoreCompileInputs.cache

     文件       2078  2017-12-14 12:16  TestSystem4\TestSystem4\obj\Debug\TestSystem4.csproj.FileListAbsolute.txt

     文件       2361  2017-12-14 14:23  TestSystem4\TestSystem4\obj\Debug\TestSystem4.csproj.GenerateResource.Cache

     文件      11542  2017-12-12 14:35  TestSystem4\TestSystem4\obj\Debug\TestSystem4.csprojResolveAssemblyReference.cache

     文件     314880  2017-12-14 14:23  TestSystem4\TestSystem4\obj\Debug\TestSystem4.exe

     文件        180  2017-12-14 12:16  TestSystem4\TestSystem4\obj\Debug\TestSystem4.Form1.resources

     文件        180  2017-12-14 12:16  TestSystem4\TestSystem4\obj\Debug\TestSystem4.Form2.resources

     文件      85504  2017-12-14 14:23  TestSystem4\TestSystem4\obj\Debug\TestSystem4.pdb

     文件     255168  2017-12-14 12:16  TestSystem4\TestSystem4\obj\Debug\TestSystem4.Properties.Resources.resources

     文件        180  2017-12-14 12:16  TestSystem4\TestSystem4\obj\Debug\TestSystem4.窗体应用.Chi.resources

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

评论

共有 条评论