private void btnDelall_Click(object sender, EventArgs e) { int ret = Fanuc.cnc_delall(Fanuc.h); if (ret == Fanuc.EW_OK) { MessageBox.Show("删除所有非受保护的程序成功!"); } else { MessageBox.Show(ret + ""); } }