private void addUserRecord(QRecUser info) { RecordListDataLine rld = new RecordListDataLine( info.ID, info.GroupMark, info.Time, info.Name, info.Gender, info.Age); mRecordCollection.Add(rld); }
private void amDataGridUser_SelectionChanged(object sender, SelectionChangedEventArgs e) { //update 2 DB //update 2 UI if (mVersion == VERSION.STANDALONE || (mVersion == VERSION.MANAGER && mbConnected)) { if (mRLD != null) { updateDBInfo(); } mRLD = (RecordListDataLine)amDataGridUser.SelectedItem; long id = long.Parse(mRLD.ID); fillUserUIInfo(id); } }