コード例 #1
0
 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();
     }
 }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
 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;
     }
 }
コード例 #4
0
 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();
     }
 }
コード例 #5
0
 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);
         
     }
 }
コード例 #6
0
 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;
     }
 }