// this should go away now public static void SyncCoreCommInputSignals(CoreComm target) { var cfp = new CoreFileProvider(target.ShowMessage); target.CoreFileProvider = cfp; cfp.FirmwareManager = Global.FirmwareManager; }
// this should go away now public static void SyncCoreCommInputSignals(CoreComm target) { string superhack = null; if (target.CoreFileProvider != null && target.CoreFileProvider is CoreFileProvider) { superhack = ((CoreFileProvider)target.CoreFileProvider).SubfileDirectory; } var cfp = new CoreFileProvider(target.ShowMessage); cfp.SubfileDirectory = superhack; target.CoreFileProvider = cfp; cfp.FirmwareManager = Global.FirmwareManager; }
// this should go away now public static void SyncCoreCommInputSignals(CoreComm target) { string superhack = null; if (target.CoreFileProvider != null && target.CoreFileProvider is CoreFileProvider) superhack = ((CoreFileProvider)target.CoreFileProvider ).SubfileDirectory; var cfp = new CoreFileProvider(target.ShowMessage); cfp.SubfileDirectory = superhack; target.CoreFileProvider = cfp; cfp.FirmwareManager = Global.FirmwareManager; }
// this should go away now public static void SyncCoreCommInputSignals(CoreComm target = null) { if (target == null) { target = Global.CoreComm; } var cfp = new CoreFileProvider(target.ShowMessage); target.CoreFileProvider = cfp; cfp.FirmwareManager = Global.FirmwareManager; }