📄 frmmotifysmallclass.cs
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace BookManagementSystem
{
public partial class frmMotifySmallClass : Form
{
public frmMotifySmallClass(string big,string oldsmall)
{
InitializeComponent();
BigClass.Text= big;
OldSmallClass.Text = oldsmall;
}
private void Motify_Click(object sender, EventArgs e)
{
string OldData = BigClass.Text + "+" + OldSmallClass.Text;
string NewData = BigClass.Text + "+" + NewSmallClass.Text;
// MessageBox.Show(OldData + "\r\n" + NewData + "\r\n");
// return;
if (Program.DataOperator.UpdataSmallClass(OldData, NewData))
{
MessageBox.Show("更新成功!");
this.Close();
}
else
MessageBox.Show("更新失败!");
}
private void frmMotifySmallClass_Load(object sender, EventArgs e)
{
}
private void exit_Click(object sender, EventArgs e)
{
this.Close();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -