public override WritingSystemDefinition ShowDialogIfNeededAndGetDefinition()
		{
			var dlg = new GetDialectNameDialog();
			if (DialogResult.OK != dlg.ShowDialog())
				return null;

			WritingSystemDefinition ws = WritingSystemFactory.Create(_templateWritingSystemDefinition);
			IEnumerable<VariantSubtag> variantSubtags;
			if (IetfLanguageTag.TryGetVariantSubtags(dlg.DialectName.ToValidVariantString(), out variantSubtags))
				ws.Variants.ReplaceAll(variantSubtags);
			return ws;
		}
        public override WritingSystemDefinition ShowDialogIfNeededAndGetDefinition()
        {
            var dlg = new GetDialectNameDialog();

            if (DialogResult.OK != dlg.ShowDialog())
            {
                return(null);
            }

            WritingSystemDefinition     ws = WritingSystemFactory.Create(_templateWritingSystemDefinition);
            IEnumerable <VariantSubtag> variantSubtags;

            if (IetfLanguageTag.TryGetVariantSubtags(dlg.DialectName.ToValidVariantString(), out variantSubtags))
            {
                ws.Variants.ReplaceAll(variantSubtags);
            }
            return(ws);
        }