/// <summary> /// The ButtonAddGroup_Click method. /// </summary> /// <param name="sender">The <paramref name="sender"/> parameter.</param> /// <param name="args">The <paramref name="args"/> parameter.</param> private void ButtonAddGroup_Click(object sender, EventArgs args) { // Show the AddEditVolumeGroupForm dialog. using (var addEditVolumeGroupForm = new AddEditVolumeGroupForm(_storageConfig, null)) { addEditVolumeGroupForm.ShowDialog(); } ButtonRefresh_Click(this, null); }
/// <summary> /// The ButtonModifyGroup_Click method. /// </summary> /// <param name="sender">The <paramref name="sender"/> parameter.</param> /// <param name="args">The <paramref name="args"/> parameter.</param> private void ButtonModifyGroup_Click(object sender, EventArgs args) { if (lvVolumeGroups.SelectedItems.Count < 1) { return; } var volumeGroup = (VolumeGroup)lvVolumeGroups.SelectedItems[0].Tag; // Show the AddEditVolumeGroupForm dialog. using (var addEditVolumeGroupForm = new AddEditVolumeGroupForm(_storageConfig, volumeGroup)) { addEditVolumeGroupForm.ShowDialog(); } ButtonRefresh_Click(this, null); }