示例#1
0
 public Menu(List<Employee> emploees, SerializableObject obj, ISerialized serializer, string pathFileSerializ)
 {
     Emploees = emploees;
     Obj = obj;
     Serializer = serializer;
     PathFileSerializ = pathFileSerializ;
 }
示例#2
0
        public void Write(ISerialized serializable)
        {
            if (serializable == null)
            {
                throw new System.ArgumentNullException(nameof(serializable));
            }

            serializable.Serialize(this);
        }
示例#3
0
        public void ReadSerializable(ref ISerialized obj)
        {
            if (obj == null)
            {
                throw new System.ArgumentNullException(nameof(obj), "The object to deserialize to cannot be null.");
            }

            obj.Deserialize(this);
        }
示例#4
0
        public ContainerGraphics(ISerialized serializable, IOpenFileWindow openFileWindow,
                                 ISaveFileWindow saveFileWindow, IClipboard clipboard)
        {
            _serializable   = serializable;
            _openFileWindow = openFileWindow;
            _saveFileWindow = saveFileWindow;
            _clipboard      = clipboard;

            Graphics = new List <Graphic>();
            CreateGraphic();
        }
 internal static void SetID(string IDRef, ISerialized ob)
 {
     ob.ID_ = IDRef;
     refSerialClass.Add(IDRef,ob);
 }