public void Add(DiagCard diagCard) { if (list.Exists(item => item == diagCard)) return; list.Add(diagCard); }
public DiagCard_AddEdit(DiagCard diagCard) { InitializeComponent(); _diagCard = diagCard; }
protected override void loadFromSql() { DataTable dt = _provider.Select("DiagCard"); foreach (DataRow row in dt.Rows) { DiagCard diagCard = new DiagCard(row); Add(diagCard); } }
private void showAddEditDiagCard(DiagCard dCard) { DiagCard_AddEdit vAE = new DiagCard_AddEdit(dCard); vAE.ShowDialog(); }