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);
            }
        }