Esempio n. 1
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            var Files = new TUpdateFiles();

            foreach (var i in _UpdateList)
            {
                Files.Add(i.Key, i.Value.IsAdded);
            }

            _Net.Update(false, Files);
            ClearUpdateList();
        }
Esempio n. 2
0
        private void btnReset_Click(object sender, EventArgs e)
        {
            var Files = new TUpdateFiles();

            foreach (var i in _UpdateList)
            {
                if (!i.Value.IsAdded)
                {
                    continue;
                }

                Files.Add(i.Key, i.Value.IsAdded);
            }

            _Net.Update(true, Files);
            ClearUpdateList();
        }
Esempio n. 3
0
 public void Update(bool IsReset_, TUpdateFiles Files_)
 {
     _NetM.SendAll(new SHeader(EProto.AmUpdate), new SUpdateData(IsReset_, Files_));
 }