void updateQuota() { if (storage == null) { throw new InvalidOperationException("Not connected"); } int totalBytes, availBytes; storage.GetQuota(out totalBytes, out availBytes); quotaLabel.Text = string.Format("{0}/{1} bytes used", totalBytes - availBytes, totalBytes); }
void updateQuota() { if (storage == null) { throw new InvalidOperationException("Not connected"); } int totalBytes, availBytes; storage.GetQuota(out totalBytes, out availBytes); var numFiles = remoteListView.Items.Count; quotaLabel.Text = string.Format("{2} files, {0}/{1} bytes used", totalBytes - availBytes, totalBytes, numFiles); }