forked from dorisoy/BatchImageConverter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCPopFie.cs
47 lines (37 loc) · 945 Bytes
/
CPopFie.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.IO;
namespace BatchImageConverter
{
[DefaultPropertyAttribute("Name")]
public class CPropFile:CProp
{
private string _name;
[CategoryAttribute("File information"), DescriptionAttribute("FileName"), ReadOnly(true)]
public string Name
{
get
{
return _name;
}
set
{
_name = value;
}
}
public CPropFile()
{
}
public override void setfile(string filename)
{
if (File.Exists(filename))
{
FileInfo fi = new FileInfo(filename);
Name = fi.Name;
base.setfile(filename);
}
}
}
}