private void cmbLayouts_SelectedValueChanged(object sender, EventArgs e)
        {
            switch (cmbLayouts.SelectedItem.ToString())
            {
            case CodeIssueOptions.AllString:
                gridView1.RestoreLayoutFromStream(GetEmbeddedFile("All.xml"));
                break;

            case CodeIssueOptions.SaveString:
                using (SaveLayout saveLayout = new SaveLayout(gridView1))
                {
                    saveLayout.ShowDialog();

                    if (saveLayout.DialogResult == DialogResult.OK)
                    {
                        CodeIssueOptions.UpdateLayoutsList(cmbLayouts, true, saveLayout.saveName);
                    }
                }
                break;

            case CodeIssueOptions.RemoveString:
                using (RemoveLayout removeLayout = new RemoveLayout())
                {
                    removeLayout.ShowDialog();

                    if (removeLayout.DialogResult == DialogResult.OK)
                    {
                        CodeIssueOptions.UpdateLayoutsList(cmbLayouts, true);
                    }
                }
                break;

            case CodeIssueOptions.Separator:
                break;

            default:
                CodeIssueOptions.LoadLayout(gridView1, cmbLayouts.SelectedItem.ToString());
                break;
            }
        }
        private void cmbLayouts_SelectedValueChanged(object sender, EventArgs e)
        {

            switch (cmbLayouts.SelectedItem.ToString())
            {
                case CodeIssueOptions.AllString:
                    gridView1.RestoreLayoutFromStream(GetEmbeddedFile("All.xml"));
                    break;
                case CodeIssueOptions.SaveString:
                    using (SaveLayout saveLayout = new SaveLayout(gridView1))
                    {
                        saveLayout.ShowDialog();

                        if (saveLayout.DialogResult == DialogResult.OK)
                            CodeIssueOptions.UpdateLayoutsList(cmbLayouts, true, saveLayout.saveName);
                    }
                    break;
                case CodeIssueOptions.RemoveString:
                    using (RemoveLayout removeLayout = new RemoveLayout())
                    {
                        removeLayout.ShowDialog();

                        if (removeLayout.DialogResult == DialogResult.OK)
                            CodeIssueOptions.UpdateLayoutsList(cmbLayouts, true);
                    }
                    break;
                case CodeIssueOptions.Separator:
                    break;
                default:
                    CodeIssueOptions.LoadLayout(gridView1, cmbLayouts.SelectedItem.ToString());
                    break;
            }
        }