private void ButtonRegister_Click(object sender, EventArgs e) { if (File.Exists(textBoxPath.Text)) { Yhx4Protocol.Register(textBoxPath.Text); Close(); } else { MessageBox.Show("You must specify a path to the main Yhx4x2 executable!", "Main executable not found", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void ButtonUnregister_Click(object sender, EventArgs e) { Yhx4Protocol.Unregister(); }