private void defaultFormAddButton_Click(object sender, EventArgs e) { AddElement addElementForm = new AddElement(this.currentUser, this.parentForm, this); addElementForm.ShowDialog(); }
private void addBookToolStripMenuItem_Click(object sender, EventArgs e) { AddElement addBookForm = new AddElement(this.currentUser, this); addBookForm.ShowDialog(); }