/// <summary> /// Initializes a new instance of the <see cref="FileRecoveryManagerForm" /> class. /// </summary> /// <param name="storageConfig">The storage config to retrieve the file recovery from.</param> public FileRecoveryManagerForm(Configuration.Storage storageConfig) { InitializeComponent(); SelectedStorageConfig = storageConfig; PopulateFileRecoveryInfo(); }
/// <summary> /// Initializes a new instance of the <see cref="VolumeGroupManagerForm" /> class. /// </summary> public VolumeGroupManagerForm(DataStorage dataStorage) { _storageConfig = dataStorage.Configuration; InitializeComponent(); PopulateVolumeGroups(); }
/// <summary> /// Initializes a new instance of the <see cref="TriggerFileRecoveryForm" /> class. /// </summary> public TriggerFileRecoveryForm(Configuration.Storage storageConfig) { InitializeComponent(); // Get the volumes from the VxStorage and add them to the combobox. foreach (var volume in storageConfig.Volumes) { cbxVolume.Items.Add(new ComboboxItem { Text = volume.Path, Value = volume.Id }); } }
/// <summary> /// Initializes a new instance of the <see cref="AddEditVolumeForm" /> class. /// </summary> /// <param name="currentStorageConfig">The selected storage config.</param> /// <param name="selectedVolume">The selected volume.</param> public AddEditVolumeForm(Configuration.Storage currentStorageConfig, Volume selectedVolume) { InitializeComponent(); SelectedVolume = selectedVolume; CurrentStorageConfig = currentStorageConfig; if (SelectedVolume != null) { Text = @"Edit Volume"; btnAdd.Text = @"Save"; PopulateVolumeInfo(); } }
/// <summary> /// Initializes a new instance of the <see cref="AddEditVolumeGroupForm" /> class. /// </summary> /// <param name="currentStorageConfig">The selected storage config.</param> /// <param name="selectedVolumeGroup">The selected volume group.</param> public AddEditVolumeGroupForm(Configuration.Storage currentStorageConfig, VolumeGroup selectedVolumeGroup) { InitializeComponent(); SelectedVolumeGroup = selectedVolumeGroup; CurrentStorageConfig = currentStorageConfig; if (SelectedVolumeGroup != null) { Text = @"Edit Volume Group"; btnAdd.Text = @"Save"; PopulateVolumeGroupInfo(); } }
public S3UploadGuard(CoreSettings coreSettings, Configuration.Storage storage) { CoreSettings = coreSettings; Storage = storage; }