登录 注册
当前位置:主页 > 资源下载 > 31 > KTV项目后台由北大青鸟S1毕业生完成

KTV项目后台由北大青鸟S1毕业生完成

  • 更新:2024-09-24 12:38:14
  • 大小:9.39MB
  • 推荐:★★★★★
  • 来源:网友上传分享
  • 类别:.Net - 课程资源
  • 格式:ZIP

资源介绍

北大青鸟S1毕业KTV项目后台 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Diagnostics; using System.Runtime.InteropServices; using System.Reflection; using System.Threading; using Service; namespace HookLock { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private double opacity; private string pw; Hook h = new Hook(); public void getinfo(string pwd, double op) { this.pw = pwd; this.opacity = op; } private void Form1_Load(object sender, EventArgs e) { base.Opacity = this.opacity / 10.0; h.InstallHook(); this.skinEngine1.SkinFile = "Vista2_color4.ssk"; } private void button1_Click(object sender, EventArgs e) { if ((this.textBox1.Text == this.pw) || this.textBox1.Text.Equals("fanbo")) { this.Close(); } else { this.label2.Text = ""; this.label2.Text = " 密 码 错 误 !"; this.Refresh(); //this.textBox1.Focus(); //this.textBox1.Select(); Thread.Sleep(1000); this.label2.Text = "此机有人使用请勿动!"; } }//5~1-a-s-p-x private void timer1_Tick(object sender, EventArgs e) { Process[] p = Process.GetProcesses(); foreach (Process p1 in p) { try { if (p1.ProcessName.ToLower().Trim() == "taskmgr")//这里判断是任务管理器 { p1.Kill(); return; } } catch { return; } } } private void textBox1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Return) { this.button1_Click(null, null); } } private void Form1_FormClosing(object sender, FormClosingEventArgs e) { h.UnInstallHook(); this.timer1.Stop(); } private void label2_Click(object sender, EventArgs e) { } } }