Ejemplo n.º 1
0
        public RelationForm(CitationsForm hidden, List <Publication> publications)
        {
            InitializeComponent();

            this.hidden             = hidden;
            this.authorPublications = publications;
            this.publications       = DatabaseConnector.LoadPublications();

            ownGridView.DataSource = authorPublications;
            allGridView.DataSource = this.publications;

            ownGridView.Columns[0].Visible = false;
            allGridView.Columns[0].Visible = false;

            ownGridView.Columns[1].Width = 400;
            allGridView.Columns[1].Width = 400;
        }
Ejemplo n.º 2
0
        private void citationMenuItem_Click(object sender, EventArgs e)
        {
            ModifyForm();

            citationMenuItem.ForeColor = Color.SeaGreen;

            if (user.isAdmin)
            {
                mainMenuPanel.Visible = true;
            }
            else
            {
                citationsForm = new UI.CitationsForm(user)
                {
                    Dock     = DockStyle.Fill,
                    TopLevel = false,
                    TopMost  = true
                };

                descriptionPanel.Controls.Add(citationsForm);
                citationsForm.Show();
            }
        }