예제 #1
0
        public void Write(string name, byte[] data)
        {
            BackupPacket packet = new BackupPacket(name, data);

            foreach (BackupManager mngr in this)
            {
                mngr.Add(packet);
            }
        }
예제 #2
0
        public void Write(string name, string data)
        {
            BackupPacket packet = new BackupPacket(name, GetBytes(data));

            foreach (BackupManager mngr in this)
            {
                mngr.Add(packet);
            }
        }
예제 #3
0
        public void Write(string name, byte[] data, bool autosave)
        {
            BackupPacket packet = new BackupPacket(name, data);

            foreach (BackupManager mngr in this)
            {
                mngr.Add(packet);
            }
            if (autosave)
            {
                this.Save();
            }
        }