protected override bool OnParse(string action, StringDictionary arguments) { string sFromDate = arguments[Arguments.FromDate]; if (sFromDate != null) { fromDate = SwiftDate.Parse(sFromDate, SwiftDateFormat.StandardDate); } return(true); }
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); }