UpdateDetails() public method

public UpdateDetails ( ) : void
return void
Esempio n. 1
0
        private void EditButton_Click(object sender, EventArgs e)
        {
            if (DisksGridView.SelectedRows.Count <= 0)
            {
                return;
            }

            DiskGridRowItem selectedItem = (DiskGridRowItem)DisksGridView.SelectedRows[0];

            using (var dialog = new NewDiskDialog(Connection, Template, Affinity, SrPicker.SRPickerType.LunPerVDI,
                                                  selectedItem.Disk, selectedItem.CanResize, selectedItem.MinSize, AddedVDIs)
            {
                DontCreateVDI = true
            })
            {
                if (dialog.ShowDialog(ParentForm) != DialogResult.OK)
                {
                    return;
                }

                selectedItem.Disk = dialog.NewDisk();
                selectedItem.UpdateDetails();
                UpdateStatusForEachDisk();
                UpdateEnablement();
            }
        }
Esempio n. 2
0
        private void PropertiesButton_Click(object sender, EventArgs e)
        {
            if (DisksGridView.SelectedRows.Count <= 0)
            {
                return;
            }

            DiskGridRowItem selectedItem = ((DiskGridRowItem)DisksGridView.SelectedRows[0]);

            NewDiskDialog dialog = new NewDiskDialog(Connection, Template, SrPicker.SRPickerType.LunPerVDI, selectedItem.Disk, Affinity, selectedItem.CanResize, selectedItem.MinSize, AddedVDIs);

            dialog.DontCreateVDI = true;
            if (dialog.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            selectedItem.Disk = dialog.NewDisk();
            selectedItem.UpdateDetails();

            UpdateEnablement();
        }