public static FormatDelegate GetFormatMethod(string format)
        {
            StandartFormats currentFormat;
            FormatDelegate  del;

            if (StandartFormats.TryParse(format.Replace(" ", ""), true, out currentFormat))
            {
                del = GetFormatMethod(currentFormat);
            }
            else
            {
                del = None;
            }
            return(del);
        }
        private static FormatDelegate GetFormatMethod(StandartFormats format)
        {
            FormatDelegate del;

            switch (format)
            {
            case StandartFormats.None:
                del = None;
                break;

            case StandartFormats.StartWithDateTime:
                del = StartWithDateTime;
                break;

            case StandartFormats.EndWithDateTime:
                del = EndWithDateTime;
                break;

            case StandartFormats.Custom:
                del = Custom;
                break;

            case StandartFormats.Lowercase:
                del = Lowercase;
                break;

            case StandartFormats.Uppercase:
                del = Uppercase;
                break;

            default:
                del = None;
                break;
            }
            return(del);
        }