private bool MJBellTimeUpload(string MacSN, ref string MacMsg) { bool ret = true; string Src = SystemInfo.db.ReadConfig("MJFunc", "BellTime"); MJBellTime bt = new MJBellTime(Src); if (bt.Exists) { ret = DeviceObject.objFK623.SetBellTime(bt.BellCount, ref bt.BellTime[0]); } return(ret); }
private void LoadData() { string Src = SystemInfo.db.ReadConfig("MJFunc", "BellTime"); MJBellTime bt = new MJBellTime(Src); if (bt.Exists) { for (int i = 0; i < (int)FKMax.MAX_BELLCOUNT_DAY; i++) { dataGrid[1, i].Value = bt.Allow[i]; dataGrid[2, i].Value = bt.Time[i]; } } cbbCount.SelectedIndex = bt.BellCount; }
private void LoadData() { string Src = SystemInfo.db.ReadConfig("MJFunc", "BellTime"); MJBellTime bt = new MJBellTime(Src); if (bt.Exists) { for (int i = 0; i < rowMax; i++) { dataGrid[1, i].Value = bt.Allow[i]; dataGrid[1, i].ToolTipText = "0 - 60"; dataGrid[2, i].Value = bt.Time[i]; dataGrid[4, i].Value = bt.Allow[i + rowMax]; dataGrid[4, i].ToolTipText = "0 - 60"; dataGrid[5, i].Value = bt.Time[i + rowMax]; } } cbbCount.SelectedIndex = bt.BellCount; }