Пример #1
0
 public void RemoveExecutable(DebuggingTargetViewModel target)
 {
     lock (debuggingProfileLock)
     {
         DebuggingProfile.Targets.Remove(target);
     }
 }
Пример #2
0
        public void Run(DebuggingTargetViewModel target)
        {
            var result = maestro.Run(DebuggingProfile.VisualStudioSolutionPath, new List <DebuggingTargetViewModel> {
                target
            }, false, true);

            Error = result.Message;
        }
Пример #3
0
        public void BrowseForDirectory(DebuggingTargetViewModel target)
        {
            var folder = DialogHelper.ShowFolderDialog("Working directory", target.WorkingDirectory);

            if (folder != null)
            {
                target.WorkingDirectory = folder;
            }
        }
Пример #4
0
        public void BrowseForExe(DebuggingTargetViewModel target)
        {
            var executableFile = DialogHelper.ShowOpenDialog("Executable files", "*.exe", target.Executable);

            if (executableFile != null)
            {
                target.Executable = executableFile;
            }
        }
Пример #5
0
        public void DuplicateExecutable(DebuggingTargetViewModel target)
        {
            var copy = (DebuggingTargetViewModel)target.Clone();

            lock (debuggingProfileLock)
            {
                DebuggingProfile.Targets.Add(copy);
            }
            EditExecutable(copy);
        }
Пример #6
0
 public void AddExecutable()
 {
     lock (debuggingProfileLock)
     {
         var newModel = new DebuggingTargetViewModel();
         if (windowManager.ShowDialog(newModel) == true)
         {
             DebuggingProfile.Targets.Add(newModel);
         }
     }
 }
Пример #7
0
        public void EditExecutable(DebuggingTargetViewModel target)
        {
            var clone = (DebuggingTargetViewModel)target.Clone();

            clone.SetDebuggingEngineSelector(GetAvailableEnginesFromVisualStudio);

            if (windowManager.ShowDialog(clone) != true)
            {
                return;
            }

            var index = DebuggingProfile.Targets.IndexOf(target);

            DebuggingProfile.Targets.RemoveAt(index);
            DebuggingProfile.Targets.Insert(index, clone);
        }
Пример #8
0
        public void Stop(DebuggingTargetViewModel target)
        {
            var result = maestro.Stop(target);

            Error = result.Message;
        }