/// <summary> /// /// </summary> private void ShowPayloadWindow() { if (listEvents.SelectedObjects.Count != 1) { return; } Event temp = (Event)listEvents.SelectedObjects[0]; if (temp == null) { UserInterface.DisplayErrorMessageBox(this, "Unable to locate event"); return; } using (FormPayload formPayload = new FormPayload(temp)) { formPayload.ShowDialog(this); } }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void listEvents_MouseDoubleClick(object sender, MouseEventArgs e) { if (listEvents.SelectedObjects.Count != 1) { return; } Event temp = (Event)listEvents.SelectedObjects[0]; if (temp == null) { UserInterface.DisplayErrorMessageBox(this, "Unable to locate event"); return; } using (FormPayload formPayload = new FormPayload(temp)) { formPayload.ShowDialog(this); } }