protected static string CreateFilterEntry(ImageEditor e)
 {
     string fileDialogDescription = e.GetFileDialogDescription();
     string str2 = CreateExtensionsString(e.GetExtensions(), ",");
     string str3 = CreateExtensionsString(e.GetExtensions(), ";");
     return (fileDialogDescription + "(" + str2 + ")|" + str3);
 }
Beispiel #2
0
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly")] // previously shipped this way. Would be a breaking change.
        protected static string CreateFilterEntry(ImageEditor e)
        {
            string desc      = e.GetFileDialogDescription();
            string exts      = CreateExtensionsString(e.GetExtensions(), ",");
            string extsSemis = CreateExtensionsString(e.GetExtensions(), ";");

            return(desc + "(" + exts + ")|" + extsSemis);
        }
Beispiel #3
0
        protected static string CreateFilterEntry(ImageEditor e)
        {
            string fileDialogDescription = e.GetFileDialogDescription();
            string str2 = CreateExtensionsString(e.GetExtensions(), ",");
            string str3 = CreateExtensionsString(e.GetExtensions(), ";");

            return(fileDialogDescription + "(" + str2 + ")|" + str3);
        }
Beispiel #4
0
        protected static string CreateFilterEntry(ImageEditor e)
        {
            StringBuilder sb     = new StringBuilder();
            string        ExtStr = CreateExtensionsString(e.GetExtensions(), ";");

            sb.Append(e.GetFileDialogDescription());
            sb.Append(" (" + ExtStr + ")" + "|");
            sb.Append(ExtStr);
            return(sb.ToString());
        }
Beispiel #5
0
        protected static string CreateFilterEntry(ImageEditor e)
        {
            ArgumentNullException.ThrowIfNull(e);

            string[] extenders   = e.GetExtensions();
            string   description = e.GetFileDialogDescription();
            string   extensions  = CreateExtensionsString(extenders, ",");
            string   extensionsWithSemicolons = CreateExtensionsString(extenders, ";");

            return($"{description}({extensions})|{extensionsWithSemicolons}");
        }
Beispiel #6
0
        protected static string CreateFilterEntry(ImageEditor e)
        {
            if (e == null)
            {
                throw new ArgumentNullException(nameof(e));
            }

            string[] extenders = e.GetExtensions();
            string   desc      = e.GetFileDialogDescription();
            string   exts      = CreateExtensionsString(extenders, ",");
            string   extsSemis = CreateExtensionsString(extenders, ";");

            return(desc + "(" + exts + ")|" + extsSemis);
        }
Beispiel #7
0
		protected static string CreateFilterEntry (ImageEditor e)
		{
			StringBuilder sb = new StringBuilder();
			string ExtStr = CreateExtensionsString (e.GetExtensions(), ";");

			sb.Append (e.GetFileDialogDescription());
			sb.Append (" (" + ExtStr + ")" + "|");
			sb.Append (ExtStr);
			return sb.ToString();
		}