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(); }
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(); }
public void Update(bool IsReset_, TUpdateFiles Files_) { _NetM.SendAll(new SHeader(EProto.AmUpdate), new SUpdateData(IsReset_, Files_)); }