void SetNmric(GPDIDs xID, TextBoxX xNum) { Setting x = xprof.UserGPD.GetSetting(xID, SettingType.UInt32); if (x != null) { xNum.Text = ((uint)x.Data).ToString(); } }
void SetNmric(GPDIDs xID, TextBoxX xNum) { Setting x = xprof.UserGPD.GetSetting(xID, SettingType.UInt32); if (x != null) xNum.Text = ((uint)x.Data).ToString(); }
internal Setting xGetSetting(GPDIDs xIDType) { foreach (Setting x in xUserSettings) { if ((long)x.IDType == (long)xIDType) return x; } return null; }
/// <summary> /// Grabs a setting via ID and Data type /// </summary> /// <param name="xIDType"></param> /// <param name="xDataType"></param> /// <returns></returns> public Setting GetSetting(GPDIDs xIDType, SettingType xDataType) { if (!ParseCheck()) return null; Setting xReturn = xGetSetting(xIDType, xDataType); xActive = false; return xReturn; }
internal Setting xGetSetting(GPDIDs xIDType, SettingType xDataType) { if (!Enum.IsDefined(typeof(SettingType), xDataType)) return null; foreach (Setting x in xUserSettings) { if ((long)x.IDType == (long)xIDType && x.ContentType == xDataType) return x; } return null; }