private void mnuAddToWatch_Click(object sender, EventArgs e) { if (lstLabels.SelectedIndices.Count > 0) { CodeLabel label = (CodeLabel)GetSelectedItem().SubItems[1].Tag; WatchManager.AddWatch("[" + label.Label + "]"); } }
private void AddWatch() { WatchManager.AddWatch(_newWatchValue); }
private void mnuAddToWatch_Click(object sender, EventArgs e) { string[] toAdd = Enumerable.Range(SelectionStartAddress, SelectionEndAddress - SelectionStartAddress + 1).Select((num) => $"[${num.ToString("X4")}]").ToArray(); WatchManager.AddWatch(toAdd); }