Exemplo n.º 1
0
        public static void ShowAddTracepointDialog(string file, int line)
        {
            AddTracePointDialog dlg = new AddTracePointDialog();

            if (MessageService.RunCustomDialog(dlg) == (int)Gtk.ResponseType.Ok && dlg.Text.Length > 0)
            {
                Breakpoint bp = new Breakpoint(file, line);
                bp.HitAction           = HitAction.PrintExpression;
                bp.TraceExpression     = dlg.Text;
                bp.ConditionExpression = dlg.Condition;
                Breakpoints.Add(bp);
            }
            dlg.Destroy();
        }
Exemplo n.º 2
0
		public static void ShowAddTracepointDialog (string file, int line)
		{
			AddTracePointDialog dlg = new AddTracePointDialog ();
			if (MessageService.RunCustomDialog (dlg) == (int) Gtk.ResponseType.Ok && dlg.Text.Length > 0) {
				Breakpoint bp = new Breakpoint (file, line);
				bp.HitAction = HitAction.PrintExpression;
				bp.TraceExpression = dlg.Text;
				bp.ConditionExpression = dlg.Condition;
				Breakpoints.Add (bp);
			}
			dlg.Destroy ();
		}