Exemplo n.º 1
0
 private static TimeScheme NewTimeScheme(string[] y)
 {
     TimeScheme x = null;
     if (y.Length > 1)
     {
         x = new TimeScheme();
         x.type = y[1].ToEnum<TimeSchemeType>();
         if (y.Length > 2)
         {
             x.psi = Convert.ToDecimal(y[2]);
         }
     }
     return x;
 }
Exemplo n.º 2
0
        private static TimeScheme NewTimeScheme(string[] y)
        {
            TimeScheme x = null;

            if (y.Length > 1)
            {
                x      = new TimeScheme();
                x.type = y[1].ToEnum <TimeSchemeType>();
                if (y.Length > 2)
                {
                    x.psi = Convert.ToDecimal(y[2]);
                }
            }
            return(x);
        }