Esempio n. 1
0
        private void solution_OpenSolutionExecuted(object sender, ExecutedRoutedEventArgs e)
        {
            var param    = e.Parameter.ToString();
            var solution = (Solution)sender;

            switch (param)
            {
            case CommandParameter.OPEN_SOLUTION_OPEN:
                _ide?.OpenSolution(solution.ComputedSolutionPath);
                break;

            case CommandParameter.OPEN_SOLUTION_OPEN_EXPLORER:
                OpenSolutionDirectoryExplorer(solution);
                break;
            }
        }
Esempio n. 2
0
        void solution_OpenSolutionExecuted(object sender, ExecutedRoutedEventArgs e)
        {
            var param    = e.Parameter.ToString();
            var solution = (Solution)sender;

            switch (param)
            {
            case CommandParameter.OPEN_SOLUTION_OPEN:
                if (_ide != null)
                {
                    _ide.OpenSolution(solution.SolutionPath);
                }
                break;

            case CommandParameter.OPEN_SOLUTION_OPEN_EXPLORER:
                Process.Start(solution.ComputedSolutionDirectory);
                break;
            }
        }