📄 frmteachername.cs
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace 课程安排
{
public partial class frmTeacherName : Form
{
private string teacherName = "";
public string TeacherName
{
get { return teacherName; }
}
public frmTeacherName()
{
InitializeComponent();
}
public frmTeacherName(string oldName)
{
InitializeComponent();
this.textBox1.Text = oldName;
}
private void button1_Click(object sender, EventArgs e)
{
this.teacherName = this.textBox1.Text;
this.DialogResult = DialogResult.Yes;
this.Close();
}
private void button2_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.No;
this.Close();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -