public Anestesy Copy() { Anestesy newAnest = new Anestesy(); newAnest.applica = this.applica; newAnest.carpul = this.carpul; if (carpul) { newAnest.kindOfAnest = this.kindOfAnest; } newAnest.usingAnestetic = this.usingAnestetic; newAnest.usingApplication = this.usingApplication; newAnest.mlOfAnest = this.mlOfAnest; return(newAnest); }
//public static bool operator ==(Treatment firstTreat, Treatment secondTreat) //{ //} public void Copy(Treatment copyTreat) { anest = copyTreat.anest.Copy(); //applica = copyTreat.applica; anest = copyTreat.anest; heal = copyTreat.heal; iso = copyTreat.iso; otsroch = copyTreat.otsroch; temporalPlomb = copyTreat.temporalPlomb; //usingAnestetic = copyTreat.usingAnestetic; //usingApplication = copyTreat.usingApplication; //mlOfAnest = copyTreat.mlOfAnest; usingHealFill = copyTreat.usingHealFill; usingIsoFill = copyTreat.usingIsoFill; usingPlomb.Copy(copyTreat.usingPlomb); usingColors.Clear(); foreach (string col in copyTreat.usingColors) { usingColors.Add(col); } }