private static Mode ConvertMode(GMode mode)
        {
            switch (mode)
            {
            case GMode.Numeric:
                return(Mode.NUMERIC);

            case GMode.Alphanumeric:
                return(Mode.ALPHANUMERIC);

            case GMode.EightBitByte:
                return(Mode.BYTE);

            case GMode.Kanji:
                return(Mode.KANJI);

            default:
                throw new ArgumentOutOfRangeException("mode", mode, string.Format("Gma mode doesn't contain {0}", mode));
            }
        }
 private static Mode ConvertMode(GMode mode)
 {
 	switch(mode)
 	{
 		case GMode.Numeric:
 			return Mode.NUMERIC;
 		case GMode.Alphanumeric:
 			return Mode.ALPHANUMERIC;
 		case GMode.EightBitByte:
 			return Mode.BYTE;
 		case GMode.Kanji:
 			return Mode.KANJI;
 		default:
 			throw new ArgumentOutOfRangeException("mode", mode, string.Format("Gma mode doesn't contain {0}", mode));
 	}
 }