2024年6月1日发(作者:)
(注:那个常用工具栏里的字体、字号、字符集不能用)
主窗体里全部代码:
using System;
using c;
using entModel;
using ;
using g;
using ;
using ;
using ;
using ;
using ;
namespace NOTEBOOK
{
public partial class Form1 : Form
{
Find find = new Find();
replace replace = new replace();
public Form1()
{
InitializeComponent();
= this;
= this;
for (int i = 0; i <= - 1; i++)
{
(es[i].Name);
}
}
private void Form1_Load(object sender, EventArgs e)
{
//窗体加载
d = true;
DateTime now = ;
= DateString() + TimeString();
}
private void timer1_Tick(object sender, EventArgs e)
{
//控制时间
d = true;
DateTime now = ;
= DateString() + TimeString();
}
///
/// 新建菜单
///
///
///
private void 新建NToolStripMenuItem_Click(object sender, EventArgs e)
{
if (ed == true)//判断当前文本是否处于编辑状态
{
DialogResult r;
r = ("您是否将更改保存到 文档 吗?", "写字板",
ancel, );
if (r == )
{
保存SToolStripMenuItem_Click(sender, e);
();
= "新建-写字板";//标题名称
}
else if (r == )
{
();
= "新建-写字板";
}
}
else
{


发布评论