private void EditDocuments_Click(object sender, EventArgs e) { if (GetSelectedID(documentsList) != -1) { Document D = DBLayer.Documents.Read(GetSelectedID(documentsList), ParseDocumentType(documentsList)); DialogDocuments dialog = new DialogDocuments(E, D); dialog.Show(); } }
private void AddDocuments_Click(object sender, EventArgs e) { DialogDocuments dialog = new DialogDocuments(E); dialog.Show(); }