コード例 #1
0
        public object Clone()
        {
            WellsMetroStyleManager newStyleManager = new WellsMetroStyleManager();

            newStyleManager.metroTheme = Theme;
            newStyleManager.metroStyle = Style;
            return(newStyleManager);
        }
コード例 #2
0
        public object Clone(ContainerControl owner)
        {
            WellsMetroStyleManager clonedManager = Clone() as WellsMetroStyleManager;

            if (owner is IWellsMetroForm)
            {
                clonedManager.Owner = owner;
            }

            return(clonedManager);
        }