mirror of
https://github.com/wmjordan/PDFPatcher.git
synced 2026-10-18 13:42:28 +08:00
29 lines
502 B
C#
29 lines
502 B
C#
using System;
|
|
|
|
namespace PDFPatcher.Functions
|
|
{
|
|
interface IDocumentSource
|
|
{
|
|
string DocumentPath { get; }
|
|
}
|
|
|
|
interface IDocumentEditor : IDocumentSource
|
|
{
|
|
bool IsBusy { get; }
|
|
bool IsDirty { get; }
|
|
event EventHandler<DocumentChangedEventArgs> DocumentChanged;
|
|
void CloseDocument();
|
|
void Reopen();
|
|
}
|
|
|
|
public sealed class DocumentChangedEventArgs : EventArgs
|
|
{
|
|
public string Path { get; private set; }
|
|
internal DocumentChangedEventArgs(string path) {
|
|
Path = path;
|
|
}
|
|
}
|
|
|
|
|
|
}
|