main
 1using momoney.presentation.views;
 2
 3namespace MoMoney.Presentation.Core
 4{
 5    public abstract class ContentPresenter<T> : IContentPresenter where T : IDockedContentView
 6    {
 7        protected readonly T view;
 8
 9        protected ContentPresenter(T view)
10        {
11            this.view = view;
12        }
13
14        IDockedContentView IContentPresenter.View
15        {
16            get { return view; }
17        }
18
19        public abstract void run();
20
21        public virtual void activate()
22        {
23        }
24
25        public virtual void deactivate()
26        {
27        }
28
29        public virtual bool can_close()
30        {
31            return true;
32        }
33    }
34}