Beispiel #1
0
        /// <summary>
        /// This function is the callback used to execute a command when the a menu item is clicked.
        /// See the Initialize method to see how the menu item is associated to this function using
        /// the OleMenuCommandService service and the MenuCommand class.
        /// </summary>
        private void StartProfilingWizard(object sender, EventArgs e)
        {
            var profiling = new LaunchProfiling();
            var res       = profiling.ShowDialog();

            if (res != null && res.Value)
            {
                var target = profiling.Target;

                ProfileTarget(target);
            }
        }
Beispiel #2
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);
        }