internal CommandProcess(FixCallBack report, FixApplication fixapp) { App = fixapp; this.ReportCallBack = report; App.ReportCallBack = this.CmdReport; }
internal static dynamic CommandProcessInstance(string target, FixCallBack report) { if (!string.IsNullOrEmpty(target)) { switch (target) { case "NHQH": case "GLQH": case "NANHUA": case "SUNGARD": return(new CommandProcess(report, new FixAppKingStar()));//国内金仕达 case "YUTAFOMD3": return(new CommandProcess(report, new FixAppYuanTa()));//台湾元大 case "IB": return(new CommandProcess(report, new FixAppIB()));//IB default: break; } } return(new CommandProcess(report, new FixApplication())); }
internal static dynamic CommandProcessInstance(string target, FixCallBack report) { if (!string.IsNullOrEmpty(target)) switch (target) { case "NHQH": case "GLQH": case "NANHUA": case "SUNGARD": return new CommandProcess(report, new FixAppKingStar());//国内金仕达 case "YUTAFOMD3": return new CommandProcess(report, new FixAppYuanTa());//台湾元大 case "IB": return new CommandProcess(report, new FixAppIB());//IB default: break; } return new CommandProcess(report, new FixApplication()); }
public void RemoveCallBack(FixCallBack fcb) { eventCallBack -= fcb; }
public void AddCallBack(FixCallBack fcb) { eventCallBack += fcb; }