private void AddJob()
        {
            DataValidator dataValidator = new DataValidator();

            if (name == null || name.Length == 0 || carType == null || carType.Length == 0 || licensePlate == null || licensePlate.Length == 0 || faliure == null || faliure.Length == 0)
            {
                MessageBox.Show("Egyetlen mezőt se hagyjon üresen!", "Hiba", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

            else if (!(licensePlate.Length == 6 || licensePlate.Length == 7))
            {
                MessageBox.Show("A rendszám formátuma: AAA000 vagy AAA-000 lehet!", "Hiba", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else
            {
                name         = dataValidator.correctName(name);
                licensePlate = dataValidator.correctLicensePlate(licensePlate);

                if (dataValidator.checkName(name))
                {
                    if (dataValidator.checkLicensePlate(licensePlate))
                    {
                        Job job = new Job(name, carType, licensePlate, faliure);
                        JobDataProvider.CreateJob(job);
                        var temp = JobDataProvider.GetJobs();
                        Jobs = new ObservableCollection <Job>(temp.Reverse());
                        PropertyChanged(this, new PropertyChangedEventArgs("Jobs"));
                        clearTextBoxes();
                    }
                    else
                    {
                        MessageBox.Show("A rendszám formátuma: AAA000 vagy AAA-000 lehet", "Hiba", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    }
                }
                else
                {
                    MessageBox.Show("A névnek tartalmaznia kell legalább egy vezetéknevet és egy keresztnevet!", "Hiba", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }
        }