public static void InvokeDispatcherRemoveContract(EoiContract eoiContract) { var dispatcher = Dispatcher.FromThread(BackgroundWorker.MainThread); if (dispatcher != null) { dispatcher.Invoke(DispatcherPriority.Background, new Action(() => { RemoveContract(eoiContract); })); } }
internal static void AddContract(EoiContract eoiContract) { _eoiContracts.Add(eoiContract); }
internal static void RemoveContract(EoiContract eoiContract) { _eoiContracts.Remove(eoiContract); }
public static bool AcceptIndustryContract(EoiContract contract, int selectedVolume) { return(EoiDataInterface.AcceptContract(contract, selectedVolume)); }