/// <summary>
 /// An event handler called when the user selects the properies of a person.
 /// </summary>
 /// <param name="sender">The sender object.</param>
 /// <param name="e">The event arguments.</param>
 private void OnPersonProperties(object sender, EventArgs e)
 {
     // If there are no selected persons, do nothing.
     if (this.listViewPersons.SelectedItems.Count == 0) return;
     // Get the selected person ID.
     int id = (int)this.listViewPersons.SelectedItems[0].Tag;
     using (FormObjectProperties<ControlPersonProperties> form = new FormObjectProperties<ControlPersonProperties>())
     {
         form.ShowDialog(this, "Person", id);
     }
 }
 /// <summary>
 /// An event handler called when the user selects the properties of an address type.
 /// </summary>
 /// <param name="sender">The sender object.</param>
 /// <param name="e">The event arguments.</param>
 private void OnTypeProperties(object sender, EventArgs e)
 {
     // If there are no selected types, do nothing.
     if (this.listViewTypes.SelectedItems.Count == 0) return;
     // Get the selected type ID.
     int id = (int)this.listViewTypes.SelectedItems[0].Tag;
     using (FormObjectProperties<ControlAddressTypeProperties> form = new FormObjectProperties<ControlAddressTypeProperties>())
     {
         form.ShowDialog(this, "Address Type", id);
     }
 }
 /// <summary>
 /// An event handler called when the user selects the properties of a node group.
 /// </summary>
 /// <param name="sender">The sender object.</param>
 /// <param name="e">The event arguments.</param>
 private void OnNodeGroupProperties(object sender, EventArgs e)
 {
     // If there are no selected node group, do nothing.
     if (this.listViewNodeGroups.SelectedItems.Count == 0) return;
     // Get the selected node group.
     int id = (int)this.listViewNodeGroups.SelectedItems[0].Tag;
     using (FormObjectProperties<ControlNodeGroupProperties> form = new FormObjectProperties<ControlNodeGroupProperties>())
     {
         form.ShowDialog(this, "Node Group", id);
     }
 }
 /// <summary>
 /// An event handler called when the user selects the properties of a node tag.
 /// </summary>
 /// <param name="sender">The sender object.</param>
 /// <param name="e">The event arguments.</param>
 private void OnInterfaceTagProperties(object sender, EventArgs e)
 {
     // If there are no selected tag, do nothing.
     if (this.listViewInterfaceTags.SelectedItems.Count == 0) return;
     // Get the selected address ID.
     int id = (int)this.listViewInterfaceTags.SelectedItems[0].Tag;
     using (FormObjectProperties<ControlInterfaceTagProperties> form = new FormObjectProperties<ControlInterfaceTagProperties>())
     {
         form.ShowDialog(this, "Interface Tag", id);
     }
 }
 /// <summary>
 /// An event handler called when the user selects the properties of a whitelisted site.
 /// </summary>
 /// <param name="sender">The sender object.</param>
 /// <param name="e">The event arguments.</param>
 private void OnSliceWhitelistProperties(object sender, EventArgs e)
 {
     // If there are no selected slices, do nothing.
     if (this.listViewSlices.SelectedItems.Count == 0) return;
     // Get the selected slice ID.
     int id = (int)this.listViewSlices.SelectedItems[0].Tag;
     using (FormObjectProperties<ControlSliceProperties> form = new FormObjectProperties<ControlSliceProperties>())
     {
         form.ShowDialog(this, "Whitelisted Slice", id);
     }
 }
 /// <summary>
 /// An event handler called when the user selects the properties of a configuration file.
 /// </summary>
 /// <param name="sender">The sender object.</param>
 /// <param name="e">The event arguments.</param>
 private void OnConfigurationFileProperties(object sender, EventArgs e)
 {
     // If there are no selected configuration files, do nothing.
     if (this.listViewConfigurationFiles.SelectedItems.Count == 0) return;
     // Get the selected configuration file ID.
     int id = (int)this.listViewConfigurationFiles.SelectedItems[0].Tag;
     using (FormObjectProperties<ControlConfigurationFileProperties> form = new FormObjectProperties<ControlConfigurationFileProperties>())
     {
         form.ShowDialog(this, "Configuration File", id);
     }
 }