예제 #1
0
        private void OpenAndFillWorkspace()
        {
            IWorkspace wks = Workspace;

            if (wks == null)
            {
                //打开工作空间
                ICommand cmd = _session.CommandEnvironment.Get(9020);
                if (cmd != null)
                {
                    cmd.Execute();
                }
            }
            wks = Workspace;
            if (_activeMonitoringProduct != null)
            {
                wks.Apply(_activeMonitoringProduct.Identify);
            }
            else
            {
                wks.Apply(null);
            }
        }