WritePrescription() private method

private WritePrescription ( AgGateway.ADAPT.ApplicationDataModel.Prescriptions.RasterGridPrescription prescription ) : void
prescription AgGateway.ADAPT.ApplicationDataModel.Prescriptions.RasterGridPrescription
return void
示例#1
0
 public static void WriteSingle(TaskDocumentWriter taskWriter, Prescription prescription)
 {
     if (prescription == null)
         return;
     var rasterPrescription = prescription as RasterGridPrescription;
     if (rasterPrescription != null)
     {
         var writer = new PrescriptionWriter(taskWriter);
         writer.WritePrescription(rasterPrescription);
     }
 }
示例#2
0
        public static void WriteSingle(TaskDocumentWriter taskWriter, Prescription prescription)
        {
            if (prescription == null)
            {
                return;
            }
            var rasterPrescription = prescription as RasterGridPrescription;

            if (rasterPrescription != null)
            {
                var writer = new PrescriptionWriter(taskWriter);
                writer.WritePrescription(rasterPrescription);
            }
        }