📄 pwxi.cs
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace pwxt
{
public partial class pwxt : Form
{
public pwxt()
{
InitializeComponent();
}
private void pwxt_Load(object sender, EventArgs e)
{
timer1.Enabled = true;
timer1.Interval = 1000;
}
private void 退出ToolStripMenuItem_Click(object sender, EventArgs e)
{
Close();
}
private void 登录ToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Visible = false;
try
{
insert dr = new insert();
if (dr.ShowDialog() == DialogResult.OK)
{
}
}
catch (Exception e2)
{
MessageBox.Show(e2.Message);
}
this.Visible = true;
}
private void timer1_Tick_1(object sender, EventArgs e)
{
timer1.Enabled = true;
label2.Text = DateTime.Now.ToLongTimeString();
}
private void 退出ToolStripMenuItem_Click_1(object sender, EventArgs e)
{
this.Close();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -