private void ButtonAddNewJob_Click(object sender, RoutedEventArgs e)
        {
            ComboBoxJobs.SelectedItem = null;

            var job           = new Job(types.Copy, "null", false);
            var addEditDialog = new AddEditDialog(this, dialogTypes.Add, job, -1);

            addEditDialog.ShowDialog();
        }
        private void ButtonEditJob_Click(object sender, RoutedEventArgs e)
        {
            var addEditDialog = new AddEditDialog(this, dialogTypes.Edit, (Job)ComboBoxJobs.SelectedItem, ComboBoxJobs.SelectedIndex);

            addEditDialog.ShowDialog();
        }