public static string GetNewWatchName() { WatchInputDialog dlg = new WatchInputDialog(); var res = dlg.ShowDialog(); if (res == DialogResult.OK) return dlg.txtWatch.Text; return null; }
public static string GetNewWatchName() { WatchInputDialog dlg = new WatchInputDialog(); var res = dlg.ShowDialog(); if (res == DialogResult.OK) { return(dlg.txtWatch.Text); } return(null); }
private void btnAddWatch_Click(object sender, EventArgs e) { string text = WatchInputDialog.GetNewWatchName(); if (!string.IsNullOrEmpty(text)) { string[] codeToAdd = text.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries); m_Watches.AddRange(codeToAdd.Select(code => m_Script.CreateDynamicExpression(code))); DebugAction(new DebuggerAction() { Action = DebuggerAction.ActionType.Refresh }); } }