Пример #1
0
        public void Copy(ICEDataObject _object)
        {
            if (_object == null)
            {
                return;
            }

            Enabled = _object.Enabled;
            Foldout = _object.Foldout;
        }
Пример #2
0
        public static T Create <T>() where T : new()
        {
            T _object = new T();

            // if the created object is derivated from ICEDataObject we enable and foldout it
            ICEDataObject _data = _object as ICEDataObject;

            if (_data != null)
            {
                _data.Enabled = true;
                _data.Foldout = true;
            }

            return(_object);
        }
Пример #3
0
 public ICEDataObject(ICEDataObject _object)
 {
     Copy(_object);
 }