C#-实现软件重启功能

it2022-05-05  113

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();//关闭程序         }     } }


最新回复(0)