public void cbCarServices(AddServiceToSTO toSTO)
        {
            int i = 0, j = 0;
            List <CarService> services = ServiceConnection.Service.GetAllCarServices().ToList();

            foreach (CarService cs in services)
            {
                toSTO.cbSTO.Items.Add(services[i].Name);
                i++;
            }
            List <ServiceData> _services = ServiceConnection.Service.GetServiceData().ToList();

            foreach (ServiceData sd in _services)
            {
                toSTO.cbServices.Items.Add(_services[j].Name);
                j++;
            }
        }
示例#2
0
        private void MenuItemNew_Click(Object sender, System.EventArgs e)
        {
            switch (TypeOfMenu)
            {
            case 0:
                AboutSTO aboutSTO = new AboutSTO(SelectedSto);
                aboutSTO.Show();
                break;

            case 1:
                AddServiceToSTO addServiceToSTO = new AddServiceToSTO(SelectedService);
                addServiceToSTO.Show();
                break;

            case 2:
                AutoToSTO autoToSTO = new AutoToSTO(SelectedAuto, SelectedYear, SelectedDate, SelectedId);
                autoToSTO.Show();
                break;

            default:
                break;
            }
        }
示例#3
0
        private void добавитьУслугуКСТОToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AddServiceToSTO addService = new AddServiceToSTO();

            addService.Show();
        }