Пример #1
0
        public BallooningWizard(List <VM> vms)
            : base(vms[0].Connection)
        {
            InitializeComponent();

            xenTabPageVMs = new ChooseVMs {
                CheckedVMs = vms
            };
            xenTabPageSettings = new MemorySettings();
            xenTabPageSettings.InstallTools += xenTabPageSettings_InstallTools;

            AddPages(xenTabPageVMs, xenTabPageSettings);

            if (vms.Count == 1)  // if there is only one VM, don't offer a choice
            {
                xenTabPageVMs.DisableStep = true;
                NextStep();
            }
        }
Пример #2
0
        public BallooningWizard(List <VM> vms)
            : base(vms[0].Connection)
        {
            InitializeComponent();

            xenTabPageVMs      = new ChooseVMs();
            xenTabPageSettings = new MemorySettings();

            xenTabPageVMs.VMs = vms;
            AddPage(xenTabPageVMs);
            AddPage(xenTabPageSettings);

            if (vms.Count == 1)  // if there is only one VM, don't offer a choice
            {
                xenTabPageVMs.DisableStep = true;
                NextStep();
            }

            origStaticMax  = vms[0].memory_static_max;
            has_ballooning = vms[0].has_ballooning;
        }