Esempio n. 1
0
        private void Update()
        {
            Text = TheSR.Name();
            SetImage();

            if (UnsupportedSR || !TheSR.SupportsVdiCreate() ||
                !TheSR.Show(Properties.Settings.Default.ShowHiddenVMs))
            {
                return;
            }

            if (CanBeEnabled)
            {
                Description = string.Format(Messages.SRPICKER_DISK_FREE, Util.DiskSizeString(TheSR.FreeSpace(), 2),
                                            Util.DiskSizeString(TheSR.physical_size, 2));
                Enabled = true;
                Show    = true;
            }
            else
            {
                Description = DisabledReason;
                Enabled     = false;
                Show        = true;
            }
        }
Esempio n. 2
0
        public void Update()
        {
            Text = TheSR.Name();
            SetImage();

            if (UnsupportedSR)
            {
                DoNotShowSR();
            }
            else if (ShowHiddenVDIs && CanBeEnabled && !ExistingVDILocation())
            {
                ShowSREnabled();
            }
            else if (TheSR.PBDs.Count > 0 && TheSR.SupportsVdiCreate())
            {
                ShowSRDisabled();
            }
            else
            {
                DoNotShowSR();
            }
        }
Esempio n. 3
0
        private void Update()
        {
            Text = TheSR.Name();
            SetImage();

            if (UnsupportedSR)
            {
                return;
            }

            if (ShowHiddenVDIs && !ExistingVDILocation() && CanBeEnabled)
            {
                Description = string.Format(Messages.SRPICKER_DISK_FREE, Util.DiskSizeString(TheSR.FreeSpace(), 2),
                                            Util.DiskSizeString(TheSR.physical_size, 2));
                Enabled = true;
                Show    = true;
            }
            else if (TheSR.PBDs.Count > 0 && TheSR.SupportsVdiCreate())
            {
                Description = DisabledReason;
                Enabled     = false;
                Show        = true;
            }
        }