Beispiel #1
0
        private void lstLabels_DoubleClick(object sender, EventArgs e)
        {
            if (lstLabels.SelectedItems.Count > 0)
            {
                Int32 relativeAddress = (Int32)lstLabels.SelectedItems[0].Tag;

                if (relativeAddress >= 0)
                {
                    OnLabelSelected?.Invoke(relativeAddress, e);
                }
            }
        }
Beispiel #2
0
 private void lstLabels_DoubleClick(object sender, EventArgs e)
 {
     if (lstLabels.SelectedIndices.Count > 0)
     {
         Int32     relativeAddress = (Int32)GetSelectedItem().Tag;
         CodeLabel label           = (CodeLabel)GetSelectedItem().SubItems[1].Tag;
         OnLabelSelected?.Invoke(new GoToDestination()
         {
             CpuAddress = relativeAddress,
             Label      = label
         });
     }
 }