private void R01addButton_Click(object sender, EventArgs e) { if (R01_name_category.Text == "") { MessageBox.Show("Заполните поля!"); } else { try { bd_kidsDataSet.R01_people_categoryRow row; row = bd_kidsDataSet.R01_people_category.NewR01_people_categoryRow(); row.name_category = R01_name_category.Text; row.note = R01_note.Text == " " ? " " : R01_note.Text; this.bd_kidsDataSet.R01_people_category.Rows.Add(row); this.r01_people_categoryTableAdapter.Update(this.bd_kidsDataSet.R01_people_category); } catch (Exception ee) { MessageBox.Show("Возникли неприятности"); } } R01_name_category.Clear(); R01_note.Clear(); R01.Refresh(); }
public static X9Record GetObjectFor(XRecord record) { X9Record ret; switch (record.TypeId) { case "01": ret = new R01(); break; case "10": ret = new R10(); break; case "20": ret = new R20(); break; case "25": ret = new R25(); break; case "26": ret = new R26(); break; case "50": ret = new R50(); break; case "52": ret = new R52(); break; case "61": ret = new R61(); break; case "70": ret = new R70(); break; case "90": ret = new R90(); break; case "99": ret = new R99(); break; default: ret = new Unknown(); break; } return(ret); }
public R01RecordTests() { var record = new XRecord("FileHeaderRecord", "01"); var meta = Builder.GetMeta()[record]; _data = Builder.GetTestStringFor(meta); _sut = new R01(); _sut.SetData(_data); }
private void R01deleteButton_Click(object sender, EventArgs e) { try { bd_kidsDataSet.R01_people_categoryRow row; row = bd_kidsDataSet.R01_people_category.FindBycode_category((long)R01.CurrentRow.Cells[0].Value); row.Delete(); this.r01_people_categoryTableAdapter.Update(this.bd_kidsDataSet.R01_people_category); } catch (Exception ee) { MessageBox.Show("Возникли неприятности"); } R01.Refresh(); }