示例#1
0
        public override void InitializeBinding()
        {
            _gridViewBinder.Bind(x => x.NotificationType)
            .WithRepository(configureStatusRepository)
            .WithCaption("Type")
            .WithFixedWidth(UIConstants.STATUS_WIDTH)
            .AsReadOnly();

            _gridViewBinder.Bind(x => x.Text)
            .WithCaption("Message")
            .AsReadOnly();

            _screenBinder.Bind(x => x.Error).To(chkError);
            _screenBinder.Bind(x => x.Warning).To(chkWarning);

            btnSaveLog.Click      += (o, e) => this.DoWithinExceptionHandler(() => _presenter.SaveLogToFile());
            _screenBinder.Changed += () => this.DoWithinExceptionHandler(() => _presenter.FilterChanged());
        }