Beispiel #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;
 }
Beispiel #2
0
 protected static bool inSpreadModule(Title t)
 {
     return (t is Corp || t is Govt);
 }
Beispiel #3
0
 protected static bool inEquityModule(Title t)
 {
     return t is Equity;
 }
Beispiel #4
0
 protected static bool inChangeModule(Title t)
 {
     return t.Country != Society.getSociety().Country;
 }
Beispiel #5
0
 private static bool inSpreadModule(Title t)
 {
     return (t is Corp || t is Govt);
 }
Beispiel #6
0
 private static bool inPropertyModule(Title t)
 {
     return t is Property;
 }
Beispiel #7
0
 private static bool inInterestModule(Title t)
 {
     return t is Titlenominal;
 }
Beispiel #8
0
 private static bool inEquityModule(Title t)
 {
     return t is Equity;
 }
Beispiel #9
0
 private static bool inChangeModule(Title t)
 {
     return t.Currency != Society.getSociety().Currency;
 }