Outsource many methods from MemberAdminWindow to abstract classes
This commit is contained in:
1 parent
606bb47203
commit
51b9dcbf41
4 files changed
+324
-249
No files matched your search
@@ -0,0 +1,23 @@
|
||||
using Elwig.Helpers;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
|
||||
namespace Elwig.Windows {
|
||||
public abstract class ContextWindow : Window {
|
||||
protected readonly AppDbContext Context;
|
||||
|
||||
public ContextWindow() : base() {
|
||||
Context = new();
|
||||
}
|
||||
|
||||
protected override void OnClosing(CancelEventArgs evt) {
|
||||
Context.Dispose();
|
||||
base.OnClosing(evt);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user