private void buttonAddActiveUserFiles_Click(object sender, EventArgs e) { if (CaseComputers.Any()) { newActiveUserFileSubForm = new Create_ActiveUserFile(); newActiveUserFileSubForm.ReferenceComputers = CaseComputers; newActiveUserFileSubForm.OnDataAvailable += AddActiveUserFilesToList; newActiveUserFileSubForm.FormClosed += UpdateFormEvent; newActiveUserFileSubForm.MdiParent = MdiParent; newActiveUserFileSubForm.Show(); } else { MessageBox.Show( "You need to have Computers associated with the Case, before you can add any Active User Files."); } }
private void buttonAddActiveUserFiles_Click(object sender, EventArgs e) { this.newActiveUserFileSubForm = new Create_ActiveUserFile(); newActiveUserFileSubForm.ReferenceComputers = CaseComputers; newActiveUserFileSubForm.OnDataAvailable += AddActiveUserFilesToList; newActiveUserFileSubForm.FormClosed += UpdateFormEvent; newActiveUserFileSubForm.Show(); }