private void SetCurrAbonement()
        {
            int id;

            if (abonementsIdComboBox.Items.Count < 1)
            {
                return;
            }
            if (Int32.TryParse(abonementsIdComboBox.SelectedItem.ToString(), out id))
            {
                Abonement a = clientManager.GetAbonementById(id);
                //if (a.VisitTypeId != null)
                string typeName = clientManager.GetVisitTypeById(a.VisitTypeId).TypeName;
                if (typeName != null)
                {
                    visitTypeŠ”omboBox.SelectedIndex = visitTypeŠ”omboBox.FindString(typeName);
                }

                string sTypeName = clientManager.GetServiceTypeById(a.ServiceTypeId).TypeName;
                if (sTypeName != null)
                {
                    serviceTypeComboBox.SelectedIndex = serviceTypeComboBox.FindString(sTypeName);
                }
                if (a.TrainingGroupId != null)
                {
                    string grName = clientManager.GetTrainingGroupById((int)a.TrainingGroupId).GroupName;
                    trainingGroupsComboBox.SelectedIndex = trainingGroupsComboBox.FindString(grName);
                }
                else
                {
                    trainingGroupsComboBox.SelectedIndex = trainingGroupsComboBox.Items.Count - 1;
                }

                visitCountTextBox.Text = a.VisitCount.ToString();
                dateEndPicker.Value    = a.DateEnd.Date;
                //dateEndTextBox.Text = a.DateEnd.Date.ToShortDateString();
            }
        }