Example #1
0
 public Option(OptionNode node, IOptionProvider provider, IOptionView view)
 {
     _node      = node ?? throw new ArgumentNullException(nameof(node));
     _providers = new List <IOptionProvider>()
     {
         provider
     };
     _view    = view;
     _isDirty = false;
 }
Example #2
0
		private void Initialize(OptionNode node, IOptionProvider provider, IOptionView view, IOptionViewBuilder viewBuilder)
		{
			if(node == null)
				throw new ArgumentNullException("node");

			_node = node;
			_provider = provider;
			_view = view;
			_viewBuilder = viewBuilder;
			_isDirty = false;
		}
Example #3
0
        private void Initialize(OptionNode node, IOptionProvider provider, IOptionView view, IOptionViewBuilder viewBuilder)
        {
            if (node == null)
            {
                throw new ArgumentNullException("node");
            }

            _node        = node;
            _provider    = provider;
            _view        = view;
            _viewBuilder = viewBuilder;
            _isDirty     = false;
        }
Example #4
0
		public Option(OptionNode node, IOptionProvider provider, IOptionView view)
		{
			this.Initialize(node, provider, view, null);
		}
Example #5
0
 public Option(OptionNode node, IOptionProvider provider, IOptionView view)
 {
     this.Initialize(node, provider, view, null);
 }