Example #1
0
        internal void Add(Diler diller)
        {
            if (list.Exists(item => item == diller))
                return;

            list.Add(diller);
        }
Example #2
0
 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();
 }
Example #3
0
        protected override void loadFromSql()
        {
            DataTable dt = _provider.Select("Diller");

            foreach (DataRow row in dt.Rows)
            {
                Diler diller = new Diler(row);
                Add(diller);
            }
        }