private void btnUpdateDelivery_Click(object sender, EventArgs e) { try { frmAssignParcels assign = new frmAssignParcels(userID); assign.Show(); } catch (NullReferenceException m) { MessageBox.Show("No entry selected." + m.Message); } }
private void AllocateParcelsToVehiclesToolStripMenuItem_Click(object sender, EventArgs e) { frmAssignParcels maintain = new frmAssignParcels(getUserID()); frmParent parent = this; maintain.MdiParent = parent; maintain.Show(); }