void storeTarget(ref string space, ref Generator.Case casing, ref bool shorten, ref int maxLength, Dictionary <string, string> abbreviations)
        {
            if (rbSpaceReplace.Checked)
            {
                space = txtSpaceChar.Text;
            }
            else if (rbSpaceRemove.Checked)
            {
                space = "";
            }
            else
            {
                space = " ";
            }

            if (rbCaseCamel.Checked)
            {
                casing = Generator.Case.Camel;
            }
            else if (rbCaseLower.Checked)
            {
                casing = Generator.Case.Lower;
            }
            else if (rbCasePascal.Checked)
            {
                casing = Generator.Case.Pascal;
            }
            else
            {
                casing = Generator.Case.Upper;
            }

            shorten = rbLongShorten.Checked;

            maxLength = rbLongTargetMax.Checked ? targetMax : int.Parse(txtLongMax.Text);

            abbreviations.Clear();
            foreach (System.Windows.Forms.DataGridViewRow row in dgvTargetAbbreviations.Rows)
            {
                Generator.AddRow(abbreviations, row);
            }
        }
        void loadTarget(string space, Generator.Case casing, bool shorten, int maxLength, Dictionary <string, string> abbreviations)
        {
            txtSpaceChar.Text = "";
            if (space == "")
            {
                rbSpaceRemove.Checked = true;
            }
            else if (space == " ")
            {
                rbSpaceRetain.Checked = true;
            }
            else
            {
                rbSpaceReplace.Checked = true;
                txtSpaceChar.Text      = space;
            }

            switch (casing)
            {
            case Generator.Case.Camel:
                rbCaseCamel.Checked = true;
                break;

            case Generator.Case.Lower:
                rbCaseLower.Checked = true;
                break;

            case Generator.Case.Pascal:
                rbCasePascal.Checked = true;
                break;

            case Generator.Case.Upper:
                rbCaseUpper.Checked = true;
                break;
            }

            if (shorten)
            {
                rbLongShorten.Checked = true;
            }
            else
            {
                rbLongWarn.Checked = true;
            }

            if (maxLength == targetMax)
            {
                rbLongTargetMax.Checked = true;
            }
            else
            {
                rbLongUserMax.Checked = true;
                txtLongMax.Text       = maxLength.ToString();
            }

            dgvTargetAbbreviations.Rows.Clear();
            foreach (string key in abbreviations.Keys)
            {
                dgvTargetAbbreviations.Rows.Add(key, abbreviations[key]);
            }
        }