private void T_objXYchang(object sender, EventArgs e) { objedit objedit = (objedit)sender; if (this.ObjXYchang != null) { this.ObjXYchang(null, null); } if (objedit != null) { objedit.Focus(); } }
public void T_objMousedown(object sender, EventArgs e) { objedit objedit = (objedit)sender; bool flag = false; bool flag2 = true; if (objedit != null) { this.setxuanzhong_del(0); if (Control.ModifierKeys != Keys.Control) { if (!this.findselectedit(objedit)) { this.setxuanzhong_all(false); this.setxuanzhong_add(objedit); } else if (objedit.Isxuanzhong != 2) { this.findjizhun(objedit); flag2 = false; } } else { foreach (objedit objedit2 in this.selectobjedits) { if (objedit2 == objedit) { flag = true; this.setxuanzhong_del(objedit2); break; } } if (!flag) { this.setxuanzhong_add(objedit); } } this.findjizhun(); if (flag2 && (this.Objselect != null)) { this.Objselect(null, null); } objedit.Focus(); } }