Ejemplo n.º 1
0
 private void BuildFinished(object sender, BuildCompletedEventArgs args)
 {
     (sender as BuildManager).BuildCompleted -= new EventHandler <BuildCompletedEventArgs>(this.BuildFinished);
     if (args.BuildResult == BuildResult.Failed)
     {
         this.DisplayCommandFailedMessage(StringTable.BuildAndRunCommandBuildFailedDialogMessage);
     }
 }
Ejemplo n.º 2
0
        private void BuildFinished(object sender, BuildCompletedEventArgs args)
        {
            BuildResult buildResult = args.BuildResult;

            (sender as BuildManager).BuildCompleted -= new EventHandler <BuildCompletedEventArgs>(this.BuildFinished);
            IExecutable executable = args.Executable;

            if (executable != null)
            {
                if (buildResult == BuildResult.Succeeded)
                {
                    executable.Execute();
                    return;
                }
                if (buildResult == BuildResult.Failed)
                {
                    this.DisplayCommandFailedMessage(StringTable.BuildAndRunCommandBuildFailedDialogMessage);
                }
            }
        }
Ejemplo n.º 3
0
        private void dumpBuilder_BuildCompleted(object sender, BuildCompletedEventArgs e)
        {
            captureMgr.CloseCapture();

            curProgress.OperationComplete();

            Dump dump = null;

            try
            {
                dump = e.Dump;
            }
            catch (Exception ex)
            {
                MessageBox.Show(String.Format("Failed to process capture: {0}\n{1}", ex.InnerException.Message, ex.InnerException.StackTrace),
                                "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            OpenDump(dump);
        }
Ejemplo n.º 4
0
 private void OnBuildCompleted(object sender, BuildCompletedEventArgs e)
 {
     this.buildComplete = true;
     this.ReportErrorsIfAppropriate();
 }
Ejemplo n.º 5
0
        private void dumpBuilder_BuildCompleted(object sender, BuildCompletedEventArgs e)
        {
            captureMgr.CloseCapture();

            curProgress.OperationComplete();

            Dump dump = null;

            try
            {
                dump = e.Dump;
            }
            catch (Exception ex)
            {
                MessageBox.Show(String.Format("Failed to process capture: {0}\n{1}", ex.InnerException.Message, ex.InnerException.StackTrace),
                                "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            OpenDump(dump);
        }