예제 #1
0
        private void ShowUpdates(WUApiLib.UpdateCollection updates)
        {
            dgvPendingUpdates.Rows.Clear();

            try
            {
                foreach (WUApiLib.IUpdate update in updates)
                {
                    int             index = dgvPendingUpdates.Rows.Add();
                    DataGridViewRow row   = dgvPendingUpdates.Rows[index];
                    row.Cells["Title"].Value       = update.Title;
                    row.Cells["Description"].Value = update.Description;
                }
                lblInformations.Text = resMan.GetString("PendingUpdates") + " " + updates.Count;
            }
            catch (Exception ex) { MessageBox.Show(ex.Message); }
        }