Пример #1
0
        public void DisplayColoredPoints(IEnumerable <Cluster> clusters)
        {
            _displayStyle = eDisplayStyle.Points;
            _clusters     = clusters.ToList( );

            Invalidate( );
        }
Пример #2
0
        public void DisplayGradient(IEnumerable <PointF> centroids)
        {
            _displayStyle = eDisplayStyle.Gradient;
            _centroids    = centroids.ToList( );
            drawClusterGradient( );

            Invalidate( );
        }
Пример #3
0
 internal ProcRunResults(string proc, string args, int timeout, eDisplayStyle displayStyle, string workingDir)
 {
     this.ProcRun         = proc;
     this.ArgsUsed        = args;
     this.TimeoutProvided = timeout;
     this.DisplayStyle    = displayStyle;
     this.WorkingDir      = workingDir;
     this.Success         = true;
 }
Пример #4
0
 internal ProcRunner(ProcConfiguration owner, string workingDir, eDisplayStyle displayStyle, int timeout, bool failIfAnyErrors, ExitCodeChecker exitCodeChecker)
 {
     this.Configuration     = owner;
     this.WorkingDir        = workingDir;
     this.DisplayStyle      = displayStyle;
     this.Timeout           = timeout;
     this.FailIfAnyErrors   = failIfAnyErrors;
     this.ExitCodeValidator = exitCodeChecker;
 }
Пример #5
0
 /// <summary>
 /// Builds a runner to execute
 /// </summary>
 /// <param name="workingDir">The working directory (default=<c>null</c> - not set in process)</param>
 /// <param name="displayStyle">Either <see cref="eDisplayStyle.Visible"/> to show a cmd window, or <see cref="eDisplayStyle.Hidden"/> to run with no cmd window (default=<see cref="eDisplayStyle.Hidden"/>)</param>
 /// <param name="timeout">How long to wait before killing the process. (default=<see cref="ProcRunner.kNoTimeout"/>)</param>
 /// <param name="failIfAnyErrors">Makes it so the <see cref="ProcRunResults"/> is a failure result if any redirected error text is received (default=<c>true</c>)</param>
 /// <param name="exitCodeChecker">A function to run that validates the exit code of the process (default=<c>null</c> - Makes 0 success and anything else failure)</param>
 /// <returns>A <see cref="ProcRunner"/> built with the specified settings</returns>
 public ProcRunner BuildRunner(string workingDir = null, eDisplayStyle displayStyle = eDisplayStyle.Hidden, int timeout = ProcRunner.kNoTimeout, bool failIfAnyErrors = true, ExitCodeChecker exitCodeChecker = null)
 {
     return(new ProcRunner(this, workingDir, displayStyle, timeout, failIfAnyErrors, exitCodeChecker));
 }