pwxi.cs

来自「火车票的销售系统」· CS 代码 · 共 72 行

CS
72
字号
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 + =
减小字号Ctrl + -
显示快捷键?