mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 21:43:24 -07:00
moved all sources to trunk directory
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@693 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
commit
a22b7578bd
392 changed files with 61489 additions and 0 deletions
19
Greenshot/Helpers/Log4NET.cs
Normal file
19
Greenshot/Helpers/Log4NET.cs
Normal file
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* User: Robin
|
||||
* Date: 05.04.2010
|
||||
*/
|
||||
using System;
|
||||
using System.IO;
|
||||
using log4net.Util;
|
||||
|
||||
namespace Greenshot.Helpers {
|
||||
/// <summary>
|
||||
/// Description of Log4NET.
|
||||
/// </summary>
|
||||
public class SpecialFolderPatternConverter : PatternConverter {
|
||||
override protected void Convert(TextWriter writer, object state) {
|
||||
Environment.SpecialFolder specialFolder = (Environment.SpecialFolder)Enum.Parse(typeof(Environment.SpecialFolder), base.Option, true);
|
||||
writer.Write(Environment.GetFolderPath(specialFolder));
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue