コード例 #1
0
            public ControlInfo(IEditorAdapter adapter)
            {
                if (adapter == null)
                {
                    throw new ArgumentNullException("adapter");
                }

                this.Adapter = adapter;
            }
コード例 #2
0
        public CompareToValidationRule(Control control, string errorText)
        {
            if (control == null)
            {
                throw new ArgumentNullException("control");
            }

            if (errorText == null)
            {
                throw new ArgumentNullException("errorText");
            }

            this.errorText = errorText;
            this.Control = control;
            this.adapter = EditorAdapterFactory.Create(control);
        }
コード例 #3
0
        public CompareToValidationRule(Control control, string errorText)
        {
            if (control == null)
            {
                throw new ArgumentNullException("control");
            }

            if (errorText == null)
            {
                throw new ArgumentNullException("errorText");
            }

            this.errorText = errorText;
            this.Control   = control;
            this.adapter   = EditorAdapterFactory.Create(control);
        }
コード例 #4
0
            public ControlInfo(IEditorAdapter adapter)
            {
                if (adapter == null)
                {
                    throw new ArgumentNullException("adapter");
                }

                this.Adapter = adapter;
            }