protected override void OnMouseUp(MouseEventArgs e) { base.OnMouseUp(e); int?id = GetIDFromIDMap(e.X, e.Y); if (id != null) { if (downID == id) { crumbList[(int)id].Clicked = false; var ea = new CrumbBarClickEventArgs((int)id); if (CrumbClicked != null) { CrumbClicked.Invoke(this, ea); } } } downID = null; }
protected override void OnMouseUp(MouseEventArgs e) { base.OnMouseUp(e); int? id=GetIDFromIDMap(e.X, e.Y); if(id!=null) { if(downID==id) { crumbList[(int)id].Clicked=false; var ea=new CrumbBarClickEventArgs((int)id); if(CrumbClicked!=null) { CrumbClicked.Invoke(this, ea); } } } downID=null; }