예제 #1
0
        protected override bool OnParse(string action, StringDictionary arguments)
        {
            string sFromDate = arguments[Arguments.FromDate];

            if (sFromDate != null)
            {
                fromDate = SwiftDate.Parse(sFromDate, SwiftDateFormat.StandardDate);
            }

            return(true);
        }
예제 #2
0
        protected override bool OnParse(string action, StringDictionary arguments)
        {
            string sFromDate = arguments[Arguments.FromDate];

            if (sFromDate != null)
            {
                m_tFromDate = SwiftDate.Parse(sFromDate, SwiftDateFormat.StandardDate);
            }

            string sFormat = arguments[Arguments.Format];

            switch (sFormat)
            {
            case "csv":
                m_nFormat = OutputFormat.CSV;
                break;

            case "mt940":
                m_nFormat = OutputFormat.MT940;
                break;

            case "mt942":
                m_nFormat = OutputFormat.MT942;
                break;

            case "csv942":
                m_nFormat = OutputFormat.CSV942;
                break;

            case null:
                break;

            default:
                return(false);
            }

            return(true);
        }