private void CreatingObjectForm_Load(object sender, EventArgs e)
        {
            Control.tempUsers.Clear();
            Control.tempUsers.Add(Control.currentUser);

            CompleteForm.dgvExistingUsers(this);
            CompleteForm.dgvExistingCollections(this);
            CompleteForm.dgvExistingCategories(this);

            CompleteForm.dgvObjectUsers(this);
            CompleteForm.dgvObjectCollections(this);
            CompleteForm.dgvObjectCategories(this);
        }
예제 #2
0
        private void EditObjectForm_Load(object sender, EventArgs e)
        {
            tbObjectName.Text          = Control.currentObject.Name;
            tbObjectDescription.Text   = Control.currentObject.Description;
            lblFilename.Text           = Control.currentObject.File.Name;
            pbOverview.BackgroundImage = Image.FromFile(Control.currentObject.File.Name);

            CompleteForm.dgvExistingUsers(this);
            CompleteForm.dgvExistingCollections(this);
            CompleteForm.dgvExistingCategories(this);

            Control.tempUsers       = Control.currentObject.Users.ToList();
            Control.tempCategories  = Control.currentObject.Categories.ToList();
            Control.tempCollections = Control.currentObject.Collections.ToList();

            CompleteForm.dgvObjectUsers(this);
            CompleteForm.dgvObjectCollections(this);
            CompleteForm.dgvObjectCategories(this);
        }