예제 #1
0
        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;
        }
예제 #2
0
		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;
		}