public void addCheck(int section_order, int check_order, CheckPoint cp) { if (!section_checks.ContainsKey(section_order)) { section_checks.Add(section_order, new SortedList <int, CheckPoint>()); } section_checks[section_order].Add(check_order, cp); }
private void checkSaveButton_Click(object sender, EventArgs e) { DB_objects.CheckPoint c = new DB_objects.CheckPoint(); c.name = checkName.Text; c.description = checkDesc.Text; if (selectedCheckView == -1) { checkDao.create(c); } else { c.check_code = selectedCheckView; checkDao.update(c); } fillChecks(); }