예제 #1
0
 private double handleException(Title t)
 {
     double r = 0;
     switch (Society.getSociety().Country)
     {
         case "DKK":
             switch (t.Currency)
             {
                 case "EUR":
                     r = 0.0239;
                     break;
                 case "LVL":
                     r = 0.0266;
                     break;
                 case "BGN":
                     r = 0.0345;
                     break;
             }
             break;
         case "LVL":
             switch (t.Currency)
             {
                 case "EUR":
                     r = 0.0264;
                     break;
                 case "LTL":
                     r = 0.0291;
                     break;
                 case "BGN":
                     r = 0.0370;
                     break;
             }
             break;
         case "LTL":
             switch (t.Currency)
             {
                 case "EUR":
                     r = 0.026;
                     break;
                 case "BGN":
                     r = 0.013;
                     break;
             }
             break;
         case "BGN":
             if (t.Currency == "EUR")
                 r = 0.0104;
             break;
     }
     return r;
 }
예제 #2
0
 protected static bool inSpreadModule(Title t)
 {
     return (t is Corp || t is Govt);
 }
예제 #3
0
 protected static bool inEquityModule(Title t)
 {
     return t is Equity;
 }
예제 #4
0
 protected static bool inChangeModule(Title t)
 {
     return t.Country != Society.getSociety().Country;
 }
예제 #5
0
 private static bool inSpreadModule(Title t)
 {
     return (t is Corp || t is Govt);
 }
예제 #6
0
 private static bool inPropertyModule(Title t)
 {
     return t is Property;
 }
예제 #7
0
 private static bool inInterestModule(Title t)
 {
     return t is Titlenominal;
 }
예제 #8
0
 private static bool inEquityModule(Title t)
 {
     return t is Equity;
 }
예제 #9
0
 private static bool inChangeModule(Title t)
 {
     return t.Currency != Society.getSociety().Currency;
 }