private void openProject()
        {
            bool isOpen = designApiClient.IsProjectOpen(new IsProjectOpenParamsBuilder().filePath(projectPath).Build());

            if (!isOpen)
            {
                designApiClient.CloseProject(paramBuilderProvider.newCloseProjectParamsBuilder().Build());
                designApiClient.OpenProject(new OpenProjectParamsBuilder().filePath(projectPath).Build());
            }
        }
Пример #2
0
        public void closeNeoloadProject(bool saveProject, bool forceStop)
        {
            if (_mode == Mode.NO_API)
            {
                return;
            }

            this.CheckDesignIsConnected();

            var status = _client.GetStatus();

            if (status != DesignState.NO_PROJECT)
            {
                _closeProjectPB.save(saveProject);
                _closeProjectPB.forceStop(forceStop);
                _client.CloseProject(_closeProjectPB.Build());
            }
        }