//Клонинг конструктор когато стойността е различна от Null public Step Clone() { Step newStep = new Step(); newStep.Highlight = Highlight; newStep.Message = Message; newStep.Command = Command; if (AttachNames != null) { newStep.AttachNames = AttachNames.ToList <string>(); } if (AttachTo != null) { newStep.AttachTo = AttachTo.ToList <int>(); } if (Rows != null) { newStep.Rows = Rows.ToList <int>(); } if (VariableNames != null) { newStep.VariableNames = VariableNames.ToList <string>(); } if (VariableIndexes != null) { newStep.VariableIndexes = VariableIndexes.ToList <int>(); } if (Values != null) { newStep.Values = Values.ToList <string>(); } if (HighlightenedBlockIndexes != null) { newStep.HighlightenedBlockIndexes = HighlightenedBlockIndexes.ToList <int>(); } if (HighlightenedLabelIndexes != null) { newStep.HighlightenedLabelIndexes = HighlightenedLabelIndexes.ToList <int>(); } if (HighlightedTableIndexes != null) { newStep.HighlightedTableIndexes = HighlightedTableIndexes.ToList <int>(); } newStep.Swit = Swit; newStep.Delimiter = Delimiter; newStep.UsedelimForUpdateInit = UsedelimForUpdateInit; return(newStep); }