Esempio n. 1
0
        private void loadDictionary()
        {
            Marks marks = Marks.getInstance();

            cbMark.DataSource    = marks.ToDataTable();
            cbMark.DisplayMember = "Название";
            cbMark.ValueMember   = "id";

            ServiceStantions serviceStantions = ServiceStantions.getInstance();

            cbServiceStantion.DataSource    = serviceStantions.ToDataTable();
            cbServiceStantion.DisplayMember = "Название";
            cbServiceStantion.ValueMember   = "id";
        }
Esempio n. 2
0
        private void loadDictionary()
        {
            CarList carList = CarList.getInstance();

            cbCar.DataSource    = carList.ToDataTable(Status.Actual);
            cbCar.ValueMember   = "id";
            cbCar.DisplayMember = "Бортовой номер";

            RepairTypes repairTypes = RepairTypes.getInstance();

            cbRepairType.DataSource    = repairTypes.ToDataTable();
            cbRepairType.ValueMember   = "id";
            cbRepairType.DisplayMember = "Название";

            ServiceStantions serviceStantions = ServiceStantions.getInstance();

            cbServiceStantion.DataSource    = serviceStantions.ToDataTable();
            cbServiceStantion.ValueMember   = "id";
            cbServiceStantion.DisplayMember = "Название";
        }