private void NetworkSettingsEvent(Object sender, EventArgs e) { if (_context != null) { Synchronise(this.NetworkSettingsMainThread, e); } else { OnNetworkUpdate?.Invoke(sender, e); } }
private void NetworkSettingsMainThread(object obj) { OnNetworkUpdate?.Invoke(this, (EventArgs)obj); }