• 大小: 198KB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2021-06-13
  • 语言: C#
  • 标签:

资源简介

使用C#语言设计一个Windows自带记事本,实现记事本软件的基本功能,具有文本文件的新建、打开、保存功能,文字的全选、剪切、复制、粘贴、删除、撤销、查找、替换功能,字体类型、格式的设置、显示当前日期与时间的功能,并在此记事本程序基础上增加设置字体颜色,添加状态栏功能。软件界面美观大方,操作简洁易用,功能完备可靠,必须上机调试通过。程序中应有不少于100~300行的自行编写的代码,代码需书写详细注释。

资源截图

代码片段和文件信息

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

namespace note
{
    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 = “说明:欢迎使用,最终解释权归计网1002班牛德洋所有“;
        }

        #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 string AssemblyCompany
    

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-01-15 18:12  note\
     目录           0  2013-01-15 19:51  note\note\
     文件        3487  2013-01-17 11:12  note\note\AboutBox1.cs
     文件       10968  2013-01-17 11:10  note\note\AboutBox1.Designer.cs
     文件       13987  2013-01-17 11:10  note\note\AboutBox1.resx
     目录           0  2013-01-15 18:12  note\note\bin\
     目录           0  2013-01-17 13:38  note\note\bin\Debug\
     文件       83456  2013-01-17 13:38  note\note\bin\Debug\note.exe
     文件       56832  2013-01-17 13:38  note\note\bin\Debug\note.pdb
     文件       11608  2013-01-17 15:27  note\note\bin\Debug\note.vshost.exe
     文件         490  2010-03-17 22:39  note\note\bin\Debug\note.vshost.exe.manifest
     目录           0  2013-01-15 18:12  note\note\bin\Release\
     文件       10530  2013-01-17 13:16  note\note\Form1.cs
     文件       46904  2013-01-17 13:38  note\note\Form1.Designer.cs
     文件       64353  2013-01-17 11:40  note\note\Form1.resx
     文件        3145  2013-01-17 13:11  note\note\Form2.cs
     文件        6668  2013-01-17 13:38  note\note\Form2.Designer.cs
     文件        5814  2013-01-16 22:30  note\note\Form2.resx
     文件        3237  2013-01-17 13:20  note\note\Form3.cs
     文件        6726  2013-01-17 13:45  note\note\Form3.Designer.cs
     文件        5814  2013-01-16 22:02  note\note\Form3.resx
     文件        6321  2013-01-16 22:40  note\note\note.csproj
     文件         452  2013-01-15 19:51  note\note\note.csproj.user
     目录           0  2013-01-15 18:12  note\note\obj\
     目录           0  2013-01-17 13:38  note\note\obj\Debug\
     文件        6019  2013-01-17 13:38  note\note\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件         958  2013-01-17 13:38  note\note\obj\Debug\GenerateResource-ResGen.read.1.tlog
     文件        1192  2013-01-17 13:38  note\note\obj\Debug\GenerateResource-ResGen.write.1.tlog
     文件        5611  2013-01-17 13:38  note\note\obj\Debug\note.AboutBox1.resources
     文件        1685  2013-01-17 15:27  note\note\obj\Debug\note.csproj.FileListAbsolute.txt
     文件         963  2011-09-15 16:57  note\note\obj\Debug\note.csproj.GenerateResource.Cache
............此处省略23个文件信息

评论

共有 条评论

相关资源