Exemple #1
0
        /// <summary>
        /// If addin project was built successfully
        /// </summary>
        public void BuildSucceded(string assemblyPath, bool isDebugging)
        {
            //MessageBox.Show("Message from #d: Build succeeded" & vbCrLf & vbCrLf & assemblyPath)
            //FLS AA : closing cursor zebCursor.Instance.ShowWithText(My.Resources.str18430) from APCprojectIO.Load
            zebCursor.Instance.Close();

            zebApcProject actProject = zebAPCIntegration.Instance.Project;

            actProject.IsLastBuilsSucceeded = true;
            actProject.AddInProjectPath     = assemblyPath;

            //If project is preparing to being debugged we need to wait for
            //#D debugger to be attached
            //timer without autoreset is used to prevent deadlocks
            if (isDebugging)
            {
                System.Timers.Timer loadTimer = new System.Timers.Timer(42);
                loadTimer.Elapsed  += loadCallback;
                loadTimer.AutoReset = false;
                loadTimer.Start();
            }
            else
            {
                actProject.LoadAddInAssembly();
            }
        }
Exemple #2
0
        public void ProjectSaved(bool isLastBuildSuccess)
        {
            //MessageBox.Show("Message from #d: Project save" & vbCrLf & vbCrLf & isLastBuildSuccess)

            zebApcProject actProject = zebAPCIntegration.Instance.Project;

            actProject.SDAProjectSave();
        }
Exemple #3
0
        public void BuildFailed()
        {
            //MessageBox.Show("Message from #d: Build failed")

            //FLS AA : closing cursor zebCursor.Instance.ShowWithText(My.Resources.str18430) from APCprojectIO.Load
            zebCursor.Instance.Close();

            zebApcProject actProject = zebAPCIntegration.Instance.Project;

            actProject.IsLastBuilsSucceeded = false;
        }