Beispiel #1
0
        public Executor(DTE2 dte)
        {
            if (dte == null)
            {
                throw new ArgumentNullException(nameof(dte));
            }

            document = dte.GetDocument();

            SaveActiveAndAnchorPoints();
        }
        private void Command_Exec(object sender, EventArgs e)
        {
            Document document = dte.GetDocument();

            if (document != null)
            {
                var executor = new Executor(document);

                executor.ExecuteCurrentStatement();
            }
        }