Ejemplo n.º 1
0
        private static String CreateIdNumber(TypeSMS type)
        {
            switch (type)
            {
            case TypeSMS.Broadcast:
                return("b" + DateTime.Now.ToString("yyyyMMddHHmmssff"));

            case TypeSMS.Input:
                return("i" + DateTime.Now.ToString("yyyyMMddHHmmssff"));

            case TypeSMS.Output:
                return("o" + DateTime.Now.ToString("yyyyMMddHHmmssff"));

            default:
                return("u" + DateTime.Now.ToString("yyyyMMddHHmmssff"));
            }
        }
Ejemplo n.º 2
0
 private static String CreateIdNumber(TypeSMS type) {
     switch (type) {
         case TypeSMS.Broadcast:
             return "b" + DateTime.Now.ToString("yyyyMMddHHmmssff");
         case TypeSMS.Input:
             return "i" + DateTime.Now.ToString("yyyyMMddHHmmssff");
         case TypeSMS.Output:
             return "o" + DateTime.Now.ToString("yyyyMMddHHmmssff");
         default:
             return "u" + DateTime.Now.ToString("yyyyMMddHHmmssff");
     }
 }