Beispiel #1
0
        public void Add(Repair repair)
        {
            if (list.Exists(item => item == repair))
                return;

            list.Add(repair);
        }
Beispiel #2
0
        protected override void loadFromSql()
        {
            DataTable dt = _provider.Select("Repair");

            foreach (DataRow row in dt.Rows)
            {
                Repair repair = new Repair(row);
                Add(repair);
            }
        }
Beispiel #3
0
        public Repair_AddEdit(Repair repair)
        {
            InitializeComponent();

            _repair = repair;
        }