/// <summary> /// Initialize hot key configuration /// </summary> private void InitHotKey() { string config = GetConfigurationFilePath(typeof(HotKeyConfiguration)); HotKeyConfiguration hotKeyConfiguration = this._content.Load <HotKeyConfiguration>(config, false); this.HotKey = hotKeyConfiguration; }
/// <summary> /// Define if an GraphicsConfiguration object is equals with the current object instance /// </summary> /// <param name="conf">GraphicsConfiguration to compare</param> /// <returns>True if equals</returns> public bool Equals(HotKeyConfiguration conf) { if (conf == null) { return(false); } if (HotKeys.Count != conf.HotKeys.Count) { return(false); } for (int i = 0, l = HotKeys.Count; i < l; i++) { if (!HotKeys[i].Equals(conf.HotKeys[i])) { return(false); } } return(true); }