using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms;
namespace SoftLogon { public partial class Frm_Main : Form { public Frm_Main() { InitializeComponent(); }
private void button1_Click(object sender, EventArgs e) { Application.Restart();//注销程序 }
private void button2_Click(object sender, EventArgs e) { Application.Exit();//关闭程序 } } }