private void SetFeaturedConfig() { if (string.IsNullOrEmpty(txtConfigBaseId.Text) || string.IsNullOrWhiteSpace(txtConfigBaseId.Text)) return; if (!ConnectionManager.IsConected) return; _BaseManage = new BaseManage(); _BaseManage.BaseConnection = ConnectionManager.GetConection(); _BaseManage.BasicFeature += new IBaseManageEvents_BasicFeatureEventHandler(_BaseManage_SetBasicFeature); FeatureConfig fconf = GetFeatureConfigFromView(); _BaseManage.SetBasicFeature(Convert.ToInt32(txtConfigBaseId.Text), fconf.KeyReportMode, fconf.KeyOffTime, fconf.BackLightMode, fconf.BuzzerMode, fconf.CommitMode); Globals.ThisAddIn.Session.HardwareConfiguration.FeaturedConfig = fconf; }
public KeypadPairing() { InitializeComponent(); _baseManage = new BaseManage(); grdKeyPadsMath.DataSource = _keyPadList; }
private void GetFeatureConfig() { if (string.IsNullOrEmpty(txtConfigBaseId.Text) || string.IsNullOrWhiteSpace(txtConfigBaseId.Text)) return; if (!ConnectionManager.IsConected) return; _BaseManage = new BaseManage(); _BaseManage.BaseConnection = ConnectionManager.GetConection(); _BaseManage.BasicFeature += new IBaseManageEvents_BasicFeatureEventHandler(_BaseManage_BasicFeature); _BaseManage.GetBasicFeature(Convert.ToInt32(txtConfigBaseId.Text)); }