/// <summary> /// Creates the or update. /// </summary> /// <returns></returns> public APIKey CreateOrUpdate() { // Checks whether this API key already exists to update it APIKey apiKey = EveMonClient.APIKeys[ID]; if (apiKey != null) { apiKey.Update(this); // Fires the event regarding the API key info update EveMonClient.OnAPIKeyInfoUpdated(apiKey); } else { apiKey = new APIKey(ID); apiKey.Update(this); EveMonClient.APIKeys.Add(apiKey); } return(apiKey); }