Ejemplo n.º 1
0
        public ExportApplianceWizard(IXenConnection con, SelectedItemCollection selection)
            : base(con)
        {
            InitializeComponent();

            m_pageExportAppliance = new ExportAppliancePage();
            m_pageRbac            = new RBACWarningPage();
            m_pageExportSelectVMs = new ExportSelectVMsPage();
            m_pageExportEula      = new ExportEulaPage();
            m_pageExportOptions   = new ExportOptionsPage();
            m_pageTvmIp           = new TvmIpPage();
            m_pageFinish          = new ExportFinishPage();

            m_selectedObject = selection.FirstAsXenObject;

            if (selection.Count == 1 && (m_selectedObject is VM || m_selectedObject is VM_appliance))
            {
                m_pageExportAppliance.ApplianceFileName = m_selectedObject.Name();
            }

            m_pageExportAppliance.OvfModeOnly   = m_selectedObject is VM_appliance;
            m_pageTvmIp.IsExportMode            = true;
            m_pageFinish.SummaryRetreiver       = GetSummary;
            m_pageExportSelectVMs.SelectedItems = selection;

            AddPages(m_pageExportAppliance, m_pageExportSelectVMs, m_pageFinish);
        }
Ejemplo n.º 2
0
		public ExportApplianceWizard(IXenConnection con, SelectedItemCollection selection)
			: base(con)
		{
			InitializeComponent();

		    m_pageExportAppliance = new ExportAppliancePage();
            m_pageRbac = new RBACWarningPage();
		    m_pageExportSelectVMs = new ExportSelectVMsPage();
            m_pageExportEula = new ExportEulaPage();
		    m_pageExportOptions = new ExportOptionsPage();
		    m_pageTvmIp = new TvmIpPage();
            m_pageFinish = new ExportFinishPage();

			m_selectedObject = selection.FirstAsXenObject;

			if (selection.Count == 1 && (m_selectedObject is VM || m_selectedObject is VM_appliance))
				m_pageExportAppliance.ApplianceFileName = m_selectedObject.Name;

			m_pageExportAppliance.OvfModeOnly = m_selectedObject is VM_appliance;
			m_pageTvmIp.IsExportMode = true;
			m_pageFinish.SummaryRetreiver = GetSummary;
			m_pageExportSelectVMs.SelectedItems = selection;

            AddPages(m_pageExportAppliance, m_pageExportSelectVMs, m_pageFinish);
		}