mirror of
https://github.com/DevExpress/netcore-winforms-demos.git
synced 2025-12-22 17:39:24 +00:00
24 lines
814 B
C#
24 lines
814 B
C#
namespace DevExpress.DevAV {
|
|
using System.ComponentModel;
|
|
using DevExpress.Mvvm;
|
|
using DevExpress.Mvvm.DataAnnotations;
|
|
|
|
public abstract class DocumentContentViewModelBase : IDocumentContent {
|
|
protected DocumentContentViewModelBase() { }
|
|
[Command]
|
|
public void Close() {
|
|
((IDocumentContent)this).DocumentOwner.Close(this);
|
|
}
|
|
#region IDocumentContent
|
|
void IDocumentContent.OnClose(CancelEventArgs e) { }
|
|
void IDocumentContent.OnDestroy() { }
|
|
IDocumentOwner IDocumentContent.DocumentOwner { get; set; }
|
|
object IDocumentContent.Title {
|
|
get { return GetTitle(); }
|
|
}
|
|
protected virtual string GetTitle() {
|
|
return null;
|
|
}
|
|
#endregion
|
|
}
|
|
} |