public List <byte> Getjiaochaobjs(int index) { List <byte> list = new List <byte>(); if (index > 0 && index < this.objs.Count) { for (int i = 1; i < this.objs.Count; i++) { if (i != index && objtype.getobjmark(this.objs[i].atts[0].zhi[0]).show != 0) { if (Kuozhan.checkbaohan((int)this.objs[i].myobj.redian.x, (int)this.objs[i].myobj.redian.y, (int)this.objs[i].myobj.redian.endx, (int)this.objs[i].myobj.redian.endy, (int)this.objs[index].myobj.redian.x, (int)this.objs[index].myobj.redian.y, (int)this.objs[index].myobj.redian.endx, (int)this.objs[index].myobj.redian.endy)) { list.Add((byte)i); } } } } return(list); }
private void runscr_MouseUp(object sender, MouseEventArgs e) { if (this.myapp.upapp.runapptype == runapptype.run) { this.myapp.upapp.tp_dev.touchtime = 0; this.myapp.upapp.tp_dev.touchstate = 0; this.myapp.tpupenter = 1; } else { this.Refresh(); this.setxuanzhong_all(false); foreach (objedit objedit in this.allobjedits) { if (((objedit.dobj.atts[0].zhi[0] != objtype.page) && (objtype.getobjmark(objedit.dobj.atts[0].zhi[0]).show != 0)) && Kuozhan.checkbaohan(objedit.Left, objedit.Top, (objedit.Left + objedit.Width) - 1, (objedit.Top + objedit.Height) - 1, this.dpoint.X, this.dpoint.Y, e.X, e.Y)) { this.setxuanzhong_add(objedit); } } if (this.selectobjedits.Count == 0) { this.setxuanzhong_add(0); } this.dpoint.X = 0xffff; if (this.Objselect != null) { this.Objselect(null, null); } base.Focus(); } }