Пример #1
0
        internal UiViewState InternalModify(UiViewBase view)
        {
            if (view == null)
            {
                throw new ArgumentNullException("view");
            }
            _tooltip = view.Tooltip;
            _icon    = view.Icon;

            return(this);
        }
Пример #2
0
        public static UiViewState Create(IAcDomain acDomain, UiViewBase view)
        {
            if (view == null)
            {
                throw new ArgumentNullException("view");
            }

            return(new UiViewState(view.Id)
            {
                _acDomain = acDomain,
                _createOn = view.CreateOn
            }.InternalModify(view));
        }