private void ModifyToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (currentConfiguration != null)
            {
                queryForm = new QueryConfigurationForm();
                queryForm.SetQueryConfiguration(currentConfiguration);
                DialogResult result = queryForm.ShowDialog();


                if (DialogResult.OK == result)
                {
                    currentConfiguration = queryForm.GetQueryConfiguration();

                    int index = configurations.FindIndex(x => x != null && x.Name.Equals(currentConfiguration.Name, StringComparison.OrdinalIgnoreCase));
                    if (index != -1)
                    {
                        configurations.RemoveAt(index);
                        configurations.Insert(index, currentConfiguration);
                    }
                    else
                    {
                        configurations.Add(currentConfiguration);
                    }

                    cbxQueries.Items.Clear();
                    cbxQueries.Items.AddRange(configurations.ToArray());
                }
            }
            else
            {
                MessageBox.Show("Primero seleccione una configuración valida");
            }
        }
        private void BtnCreateQuery_Click(object sender, EventArgs e)
        {
            queryForm = new QueryConfigurationForm();
            DialogResult result = queryForm.ShowDialog();

            if (DialogResult.OK == result)
            {
                currentConfiguration = queryForm.GetQueryConfiguration();
                int index = configurations.FindLastIndex(x => x.Name.Equals(currentConfiguration));
                IQueryConfiguration cloneConfiguration = (IQueryConfiguration)currentConfiguration.Clone();

                configurations.Add(cloneConfiguration);


                cbxQueries.Items.Add(cloneConfiguration);

                cbxQueries.SelectedItem = cloneConfiguration;
            }
        }