aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Utilities/Tango.Protobuf.UI/FileItem.cs
blob: c60e3fb0f120c72a21aa8139c1380fabfa889e3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.Protobuf.UI
{
    public class FileItem : Item
    {
        public override string ToString()
        {
            return File.ReadAllText(Path);
        }
    }
}
class="k">public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { try { if (value != null) { return value.ToString().Ellipsis(System.Convert.ToInt32(parameter)); } else { return value; } } catch { return value; } } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { throw new NotImplementedException(); } } }