Ejemplo n.º 1
0
        internal ProfilingTarget OpenTargetProperties()
        {
            var tempTarget = _target.Clone();
            var dialog     = new LaunchProfiling(tempTarget);
            var res        = dialog.ShowDialog();

            if (res != null && res.Value)
            {
                if (!ProfilingTarget.IsSame(tempTarget, _target))
                {
                    _target = dialog.Target;
                    MarkDirty();
                    return(dialog.Target);
                }
            }
            return(null);
        }
Ejemplo n.º 2
0
        internal ProfilingTarget OpenTargetProperties()
        {
            var targetView = new ProfilingTargetView(_serviceProvider, _target);
            var dialog     = new LaunchProfiling(_serviceProvider, targetView);
            var res        = dialog.ShowModal() ?? false;

            if (res && targetView.IsValid)
            {
                var target = targetView.GetTarget();
                if (target != null && !ProfilingTarget.IsSame(target, _target))
                {
                    _target = target;
                    MarkDirty();
                    return(_target);
                }
            }
            return(null);
        }