示例#1
0
        /// <summary />
        public void ProcessRequest(HttpContext context)
        {
            var presenterBinder = new PresenterBinder(this, context);

            presenterBinder.PerformBinding();

            OnLoad();

            presenterBinder.Release();
        }
示例#2
0
        public void Run()
        {
            _presenterBinder.PerformBinding();

            OnLoad(EventArgs.Empty);

            _presenterBinder.Release();

            OnCompleted(EventArgs.Empty);
        }
示例#3
0
 public KryControlBase()
 {
     if (DesignMode)
     {
         return;
     }
     try
     {
         ThrowExceptionIfNoPresenterBound = true;
         presenterBinder.PerformBinding(this);
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.ToString());
     }
 }
示例#4
0
 public KryViewBase()
 {
     InitializeComponent();
     if (DesignMode)
     {
         return;
     }
     try
     {
         ThrowExceptionIfNoPresenterBound = true;
         presenterBinder.PerformBinding(this);
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.ToString());
     }
 }
示例#5
0
        public MvpPanel()
        {
            ThrowExceptionIfNoPresenterBound = true;

            presenterBinder.PerformBinding(this);
        }
示例#6
0
 void Control_Init(object sender, EventArgs e)
 {
     presenterBinder.PerformBinding();
 }
示例#7
0
 /// <summary />
 protected MvpWebService(bool throwExceptionIfNoPresenterBound)
 {
     this.throwExceptionIfNoPresenterBound = throwExceptionIfNoPresenterBound;
     presenterBinder = new PresenterBinder(this, HttpContext.Current);
     presenterBinder.PerformBinding();
 }
示例#8
0
 void Page_InitComplete(object sender, EventArgs e)
 {
     presenterBinder.PerformBinding();
 }