Ejemplo n.º 1
0
        public Object Clone()
        {
            NPath me = new NPath();

            me.DisplayBoundingBox  = DisplayBoundingBox;
            me.DisplaySizeMultiple = DisplaySizeMultiple;
            me.FillColor           = FillColor;
            me.HeightF             = HeightF;
            me.Name     = Name;
            me.PenColor = PenColor;
            me.PenWidth = PenWidth;
            me.Segments = (NSegmentCollection)Segments.Clone();
            me.WidthF   = WidthF;
            return(me);
        }
Ejemplo n.º 2
0
        /// ------------------------------------------------------------------------------------
        public SaAudioDocument Clone()
        {
            var clone = new SaAudioDocument();

            clone.m_isForTmpOperation = m_isForTmpOperation;
            clone.DocVersion          = m_docVer;
            clone.Segments            = (SegmentData[])Segments.Clone();
            clone.AudioFile           = m_audioFile;
            clone.MD5HashCode         = m_MD5HashCode;
            clone.SpeakerName         = m_speakerName;
            clone.SpeakerGender       = m_serializedGender[0];
            clone.EthnologueId        = EthnologueId;
            clone.Region                = Region;
            clone.Country               = Country;
            clone.Family                = Family;
            clone.LanguageName          = LanguageName;
            clone.Dialect               = Dialect;
            clone.NoteBookReference     = NoteBookReference;
            clone.FreeFormTranslation   = FreeFormTranslation;
            clone.Transcriber           = Transcriber;
            clone.SADescription         = SADescription;
            clone.DataChunkSize         = DataChunkSize;
            clone.FormatTag             = FormatTag;
            clone.Channels              = Channels;
            clone.SamplesPerSecond      = SamplesPerSecond;
            clone.AverageBytesPerSecond = AverageBytesPerSecond;
            clone.BlockAlignment        = BlockAlignment;
            clone.BitsPerSample         = BitsPerSample;
            clone.SAFlags               = SAFlags;
            clone.RecordFileFormat      = RecordFileFormat;
            clone.RecordTimeStamp       = RecordTimeStamp;
            clone.RecordBandWidth       = RecordBandWidth;
            clone.RecordSampleSize      = RecordSampleSize;
            clone.NumberOfSamples       = NumberOfSamples;
            clone.SignalMax             = SignalMax;
            clone.SignalMin             = SignalMin;
            clone.SignalBandWidth       = SignalBandWidth;
            clone.SignalEffSampSize     = SignalEffSampSize;
            clone.CalcFreqLow           = CalcFreqLow;
            clone.CalcFreqHigh          = CalcFreqHigh;
            clone.CalcVoicingThd        = CalcVoicingThd;
            clone.CalcPercntChng        = CalcPercntChng;
            clone.CalcGrpSize           = CalcGrpSize;
            clone.CalcIntrpGap          = CalcIntrpGap;

            return(clone);
        }