Esempio n. 1
0
        void OnSolutionLoaded(Solution solution)
        {
            OpenSolution = new SolutionProxy(solution);

            EventHandler handler = SolutionLoaded;

            if (handler != null)
            {
                handler(this, new EventArgs());
            }
        }
        void OnSolutionUnloaded(Solution solution)
        {
            solution.SolutionItemAdded -= SolutionItemAdded;
            OpenSolution = null;

            var handler = SolutionUnloaded;

            if (handler != null)
            {
                var proxy = new SolutionProxy(solution);
                handler(this, new DotNetSolutionEventArgs(proxy));
            }
        }
        void OnSolutionLoaded(Solution solution)
        {
            solution.SolutionItemAdded += SolutionItemAdded;

            OpenSolution = new SolutionProxy(solution);

            EventHandler handler = SolutionLoaded;

            if (handler != null)
            {
                handler(this, new DotNetSolutionEventArgs(OpenSolution));
            }
        }