Added GetFileTitle() and GetFileName() methods for implementing agnostic Accessors
This commit is contained in:
parent
5ea0de2c0d
commit
6d2a1d4fa3
@ -85,5 +85,14 @@ namespace UniversalEditor
|
||||
{
|
||||
get { return String.Empty; }
|
||||
}
|
||||
|
||||
public virtual string GetFileTitle()
|
||||
{
|
||||
return String.Empty;
|
||||
}
|
||||
public virtual string GetFileName()
|
||||
{
|
||||
return String.Empty;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -31,6 +31,14 @@ namespace UniversalEditor.Accessors
|
||||
return _ar;
|
||||
}
|
||||
|
||||
public override string GetFileTitle()
|
||||
{
|
||||
return System.IO.Path.GetFileName(mvarFileName);
|
||||
}
|
||||
public override string GetFileName()
|
||||
{
|
||||
return mvarFileName;
|
||||
}
|
||||
protected override long GetPosition()
|
||||
{
|
||||
return mvarFileStream.Position;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user