/// <summary> /// Creates a new object that is a copy of the current instance. /// </summary> /// <returns>A new object that is a copy of this instance.</returns> public object Clone() { ModernStyleManager result = new ModernStyleManager(); result._modernThemeStyle = this.ThemeStyle; result._modernColorStyle = this.ColorStyle; return(result); }
/// <summary> /// Creates a new object that is a copy of the current instance. /// </summary> /// <param name="owner">Owner to set.</param> /// <returns>A new object that is a copy of this instance.</returns> public object Clone(ContainerControl owner) { ModernStyleManager result = this.Clone() as ModernStyleManager; if (owner is IModernForm) { result.Owner = owner; } return(result); }