static public void dgvCollectionObjects(CreatingCollectionForm form)
 {
     form.dgvCollectionObjects.DataSource         = (from obj in Control.tempObjects select new { obj.Id, obj.Name }).ToList();
     form.dgvCollectionObjects.Columns[0].Visible = false;
     if (form.dgvCollectionObjects.Rows.Count != 0)
     {
         form.dgvCollectionObjects[1, 0].Selected = true;
     }
     form.dgvCollectionObjects.Update();
 }
Beispiel #2
0
 private void btnCreateCollection_Click(object sender, EventArgs e)
 {
     if (Control.currentUser.Objects.Count != 0)
     {
         CreatingCollectionForm creatingCollectionForm = new CreatingCollectionForm();
         creatingCollectionForm.ShowDialog();
         CompleteForm.dgvObjects(this);
         CompleteForm.dgvCollections(this);
     }
     else
     {
         Control.Exclamation("У вас еще нет ни одного объекта для создания коллекции.", "Создание коллекции");
     }
 }