public void ReviewData() { if (science_data != null) { if (merdp == null || !data_gend) { ExperimentsResultDialog.DisplayResult(merdp = new ModableExperimentResultDialogPage( base.part, this.science_data, this.science_data.transmitValue, 0, false, "", true, false, new Callback <ScienceData>(this.endExperiment), new Callback <ScienceData>(this.keepData), new Callback <ScienceData>(this.sendDataToComms), new Callback <ScienceData>(this.sendDataToLab))); merdp.setUpScienceData(result_title, result_string, transmit_value, recovery_value, data_size, xmit_scalar, ref_value); } else { ExperimentsResultDialog.DisplayResult(merdp); } } else { ResetExperiment(); } }
public void ReviewData() { if (science_data != null) { if (merdp == null || !data_gend) { ExperimentsResultDialog.DisplayResult(merdp = new ModableExperimentResultDialogPage(base.part, this.science_data, this.science_data.transmitValue, 0, false, "", true, false, new Callback<ScienceData>(this.endExperiment), new Callback<ScienceData>(this.keepData), new Callback<ScienceData>(this.sendDataToComms), new Callback<ScienceData>(this.sendDataToLab))); merdp.setUpScienceData(result_title, result_string, transmit_value, recovery_value, data_size, xmit_scalar, ref_value); } else { ExperimentsResultDialog.DisplayResult(merdp); } } else { ResetExperiment(); } }
protected void sendDataToComms(ScienceData science_data) { List <IScienceDataTransmitter> list = base.vessel.FindPartModulesImplementing <IScienceDataTransmitter>(); if (list.Any <IScienceDataTransmitter>() && science_data != null && data_gend) { merdp = null; List <ScienceData> list2 = new List <ScienceData>(); list2.Add(science_data); list.OrderBy(new Func <IScienceDataTransmitter, float>(ScienceUtil.GetTransmitterScore)).First <IScienceDataTransmitter>().TransmitData(list2); endExperiment(science_data); } }
public void DumpData(ScienceData science_data) { if (science_data == this.science_data) { this.science_data = null; merdp = null; result_string = null; result_title = null; transmit_value = 0; recovery_value = 0; Deployed = false; } }
public void DumpData(ScienceData science_data) { if (science_data == this.science_data) { this.science_data = null; merdp = null; result_string = ""; // null causes error in save process result_title = ""; // null causes error in save proccess transmit_value = 0; recovery_value = 0; Deployed = false; } }
protected void sendDataToComms(ScienceData science_data) { List<IScienceDataTransmitter> list = base.vessel.FindPartModulesImplementing<IScienceDataTransmitter>(); if (list.Any<IScienceDataTransmitter>() && science_data != null && data_gend) { merdp = null; List<ScienceData> list2 = new List<ScienceData>(); list2.Add(science_data); list.OrderBy(new Func<IScienceDataTransmitter, float>(ScienceUtil.GetTransmitterScore)).First<IScienceDataTransmitter>().TransmitData(list2); endExperiment(science_data); } }