Exemplo n.º 1
0
 public PersistantData(PersistantData other)
 {
     LastUpdate           = other.LastUpdate;
     unsaved_print_time   = other.unsaved_print_time;
     gantry_clips_removed = other.gantry_clips_removed;
     bootloader_version   = other.bootloader_version;
     hours_used           = other.hours_used;
     MyRestartAction      = other.MyRestartAction;
     SavedData            = new SerializableDictionary <string, string>(other.SavedData);
     SavedJobInformation  = other.SavedJobInformation != null ? new PersistantJobData(other.SavedJobInformation) : null;
 }
Exemplo n.º 2
0
 public PrinterInfo()
 {
     current_job       = null;
     serial_number     = new PrinterSerialNumber("0");
     filament_info     = new FilamentSpool();
     extruder          = new Extruder();
     hardware          = new Hardware();
     calibration       = new Calibration();
     synchronization   = new Synchronization();
     statistics        = new Statistics();
     supportedFeatures = new SupportedFeatures();
     accessories       = new Accessories();
     persistantData    = new PersistantData();
     powerRecovery     = new PowerRecovery();
 }
Exemplo n.º 3
0
 public void CopyFrom(PrinterInfo other)
 {
     serial_number     = new PrinterSerialNumber(other.serial_number.ToString());
     Status            = other.Status;
     filament_info     = new FilamentSpool(other.filament_info);
     current_job       = other.current_job == null ? null : new JobInfo(other.current_job);
     extruder          = new Extruder(other.extruder);
     hardware          = new Hardware(other.hardware);
     calibration       = new Calibration(other.calibration);
     synchronization   = new Synchronization(other.synchronization);
     supportedFeatures = new SupportedFeatures(other.supportedFeatures);
     accessories       = new Accessories(other.accessories);
     statistics        = new Statistics(other.statistics);
     persistantData    = new PersistantData(other.persistantData);
     powerRecovery     = new PowerRecovery(other.powerRecovery);
     ProfileName       = other.ProfileName;
 }