private static void InsertInputField(InputField inputField, int locationId, Database destination) { var inputFldClone = inputField.Clone(); inputFldClone.LocationId = locationId; destination.InputFields.Add(inputFldClone); }
public object Clone() { return(new ConsoleSkin { ConsoleBackground = ConsoleBackground, HighlightColor = HighlightColor, CursorColor = CursorColor, AutoCompleteBorder = AutoCompleteBorder, AutoCompleteSelectedTextColor = AutoCompleteSelectedTextColor, ScrollBarColor = ScrollBarColor, ScrollBarStripColor = ScrollBarStripColor, ScrollBarPadding = ScrollBarPadding, ScrollBarWidth = ScrollBarWidth, CursorWidth = CursorWidth, CursorBlinkSpeed = CursorBlinkSpeed, HistoryTimeColor = HistoryTimeColor, HistoryWarningColor = HistoryWarningColor, InputField = (FieldSkin)InputField.Clone(), HistoryField = (FieldSkin)HistoryField.Clone(), AutoCompleteField = (FieldSkin)AutoCompleteField.Clone() }); }