private static double GetTransparencyFromReg()
        {
            var str = RegUtil.ReadRegKey("Transparency");

            if (string.IsNullOrWhiteSpace(str))
            {
                return(1.0);
            }
            double trans;

            return(Double.TryParse(str, out trans) ? trans : 1.0);
        }
        private static Color GetBgColorFromReg()
        {
            var str = RegUtil.ReadRegKey("BgColor");

            if (string.IsNullOrWhiteSpace(str))
            {
                return(Color.FromArgb(byte.MaxValue, 0, 104, byte.MaxValue));
            }
            var obj = ColorConverter.ConvertFromString(str);

            if (obj != null)
            {
                return((Color)obj);
            }
            return(Color.FromArgb(byte.MaxValue, 0, 104, byte.MaxValue));
        }