private void OpenJobCardProperties() { MaintenanceJobCardForm form = new MaintenanceJobCardForm(SelectedItem); form.Saved += form_Saved; form.ShowDialog(); }
private void AddJobCard() { OpenFileDialog dialog = new OpenFileDialog(); dialog.Filter = "Adobe PDF Files|*.pdf"; if (dialog.ShowDialog() == DialogResult.OK) { MaintenanceJobCardForm form = new MaintenanceJobCardForm(subCheck, dialog.FileName); //form.Saved += form_Saved; form.ShowDialog(); } }