private async void getInfoUser(DropboxApi api) { var account = await client.getInfoAccountAsync(api); diskSpace.Series[0].Points.Clear(); diskSpace.Series[0].Points.AddXY(0, account.Quota.Normal); diskSpace.Series[0].Points[0].LegendText = "Занято " + account.Quota.Normal / 1048576 + " Мб"; diskSpace.Series[0].Points.AddXY(0, account.Quota.Total - account.Quota.Normal); diskSpace.Series[0].Points[1].LegendText = "Свободно " + (account.Quota.Total - account.Quota.Normal) / 1048576 + " Мб"; label1.Text = account.DisplayName; }