public void SendExchangeContract(ExchangeContract data) { try { ImplementationService.Callback?.SendExchangeContract(data); } catch (Exception ex) { MessageBox.Show("Посылка не удалась " + Environment.NewLine + ex.ToString()); } }
public void SendExchangeContract(ExchangeContract data) => ImplementationService.IncomingExchangeContract?.Invoke(data);
public void SendExchangeContract(ExchangeContract data) => ImplementationCallback.IncomingExchangeContract?.Invoke(data);
public void SendExchangeContract(ExchangeContract data) { Service?.SendExchangeContract(data); }