예제 #1
0
        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            DoseForm f = new DoseForm();

            f.StartPosition = FormStartPosition.CenterParent;
            f.ShowDialog();
        }
예제 #2
0
        public override IDeepCopyable CopyTo(IDeepCopyable other)
        {
            var dest = other as Medication;

            if (dest == null)
            {
                throw new ArgumentException("Can only copy to an object of the same type", "other");
            }

            base.CopyTo(dest);
            if (Identifier != null)
            {
                dest.Identifier = new List <Hl7.Fhir.Model.Identifier>(Identifier.DeepCopy());
            }
            if (Code != null)
            {
                dest.Code = (Hl7.Fhir.Model.CodeableConcept)Code.DeepCopy();
            }
            if (StatusElement != null)
            {
                dest.StatusElement = (Code <Hl7.Fhir.Model.Medication.MedicationStatusCodes>)StatusElement.DeepCopy();
            }
            if (Manufacturer != null)
            {
                dest.Manufacturer = (Hl7.Fhir.Model.ResourceReference)Manufacturer.DeepCopy();
            }
            if (DoseForm != null)
            {
                dest.DoseForm = (Hl7.Fhir.Model.CodeableConcept)DoseForm.DeepCopy();
            }
            if (Amount != null)
            {
                dest.Amount = (Hl7.Fhir.Model.Ratio)Amount.DeepCopy();
            }
            if (Ingredient != null)
            {
                dest.Ingredient = new List <Hl7.Fhir.Model.Medication.IngredientComponent>(Ingredient.DeepCopy());
            }
            if (Batch != null)
            {
                dest.Batch = (Hl7.Fhir.Model.Medication.BatchComponent)Batch.DeepCopy();
            }
            return(dest);
        }