Esempio n. 1
0
        private static void InsertInputField(InputField inputField, int locationId, Database destination)
        {
            var inputFldClone = inputField.Clone();

            inputFldClone.LocationId = locationId;
            destination.InputFields.Add(inputFldClone);
        }
Esempio n. 2
0
 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()
     });
 }