internal void Add(Diler diller) { if (list.Exists(item => item == diller)) return; list.Add(diller); }
private void ShowAddEdit(Diler diller) { Dictionary_AddEdit view = new Dictionary_AddEdit("Карточка \"Дилера\""); DictionaryPresenter presenter = new DictionaryPresenter(view, diller); if (view.ShowDialog() == System.Windows.Forms.DialogResult.OK) loadData(); }
protected override void loadFromSql() { DataTable dt = _provider.Select("Diller"); foreach (DataRow row in dt.Rows) { Diler diller = new Diler(row); Add(diller); } }