Esempio n. 1
0
        internal UiViewState InternalModify(UiViewBase view)
        {
            if (view == null)
            {
                throw new ArgumentNullException("view");
            }
            _tooltip = view.Tooltip;
            _icon    = view.Icon;

            return(this);
        }
Esempio n. 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));
        }