示例#1
0
 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);
     }
 }
示例#2
0
 private void ButtonUnregister_Click(object sender, EventArgs e)
 {
     Yhx4Protocol.Unregister();
 }