private void button1_Click(object sender, EventArgs e) { bool a = Lc.Parse(creTextBox2.Text, creTextBox3.Text); string actPath = System.Windows.Forms.Application.StartupPath + @"\actc.reg"; string regPath = System.Windows.Forms.Application.StartupPath + @"\regc.reg"; if (a) { FileReadWrite.WriteFile(actPath, creTextBox2.Text); FileReadWrite.WriteFile(regPath, creTextBox3.Text); Alert.Show("Đăng kí thành công !\nKhởi động lại chương trình \nđể sử dụng"); Application.Exit(); } }