Пример #1
0
 public JobInfo()
 {
     jobname                 = "";
     user                    = "";
     status                  = JobStatus.Cancelled;
     percent_complete        = 0.0f;
     time                    = 0.0f;
     preview_image_file_name = "";
     param                   = new JobParams("", "", "", FilamentSpool.TypeEnum.NoFilament, 0.0f, 0.0f);
 }
Пример #2
0
 public JobInfo(string jobname, string user, JobStatus status, string preview_image_file_name, float percent_complete, float time_remaining, JobParams jobParams)
 {
     this.jobname = jobname;
     this.user    = user;
     this.status  = status;
     this.preview_image_file_name = !string.IsNullOrEmpty(preview_image_file_name) ? preview_image_file_name : "null";
     this.percent_complete        = percent_complete;
     time  = time_remaining;
     param = jobParams;
 }
Пример #3
0
 public JobInfo(JobInfo other)
 {
     jobname                 = other.jobname;
     user                    = other.user;
     status                  = other.status;
     percent_complete        = other.percent_complete;
     time                    = other.time;
     preview_image_file_name = other.preview_image_file_name;
     param                   = other.param;
 }
Пример #4
0
 public JobParams(JobParams other)
 {
     options                 = new JobOptions(other.options);
     preprocessor            = new FilamentPreprocessorData(other.preprocessor);
     jobGuid                 = other.jobGuid;
     jobMode                 = other.jobMode;
     outputfile              = other.outputfile;
     autoprint               = other.autoprint;
     estimatedFilamentNeeded = other.estimatedFilamentNeeded;
     estimatedTime           = other.estimatedTime;
     filament_temperature    = other.filament_temperature;
     filament_type           = other.filament_type;
     gcodefile               = other.gcodefile;
     preview_image_file_name = other.preview_image_file_name;
 }