예제 #1
0
        public ImportWizard(IXenConnection con, IXenObject xenObject, string filename, bool ovfModeOnly)
            : base(con)
        {
            InitializeComponent();

            m_pageStorage        = new ImportSelectStoragePage();
            m_pageNetwork        = new ImportSelectNetworkPage();
            m_pageHost           = new ImportSelectHostPage();
            m_pageSecurity       = new ImportSecurityPage();
            m_pageEula           = new ImportEulaPage();
            m_pageOptions        = new ImportOptionsPage();
            m_pageFinish         = new ImportFinishPage();
            m_pageRbac           = new RBACWarningPage();
            m_pageTvmIp          = new TvmIpPage();
            m_pageVMconfig       = new ImageVMConfigPage();
            m_pageImportSource   = new ImportSourcePage();
            m_pageXvaStorage     = new StoragePickerPage();
            m_pageXvaNetwork     = new NetworkPickerPage();
            m_pageXvaHost        = new GlobalSelectHost();
            lunPerVdiMappingPage = new LunPerVdiImportPage {
                Connection = con
            };

            m_selectedObject = xenObject;
            m_pageFinish.SummaryRetreiver       = GetSummary;
            m_pageXvaStorage.ImportVmCompleted += m_pageXvaStorage_ImportVmCompleted;

            if (!string.IsNullOrEmpty(filename))
            {
                m_pageImportSource.SetFileName(filename);
            }

            m_pageImportSource.OvfModeOnly = ovfModeOnly;
            AddPages(m_pageImportSource, m_pageHost, m_pageStorage, m_pageNetwork, m_pageFinish);
        }
예제 #2
0
		public ImportWizard(IXenConnection con, IXenObject xenObject, string filename, bool ovfModeOnly)
			: base(con)
		{
			InitializeComponent();

		    m_pageStorage = new ImportSelectStoragePage();
		    m_pageNetwork = new ImportSelectNetworkPage();
		    m_pageHost = new ImportSelectHostPage();
		    m_pageSecurity = new ImportSecurityPage();
		    m_pageEula = new ImportEulaPage();
		    m_pageOptions = new ImportOptionsPage();
		    m_pageFinish = new ImportFinishPage();
		    m_pageRbac = new RBACWarningPage();
		    m_pageTvmIp = new TvmIpPage();
		    m_pageVMconfig = new ImageVMConfigPage();
		    m_pageImportSource = new ImportSourcePage();
		    m_pageXvaStorage = new StoragePickerPage();
		    m_pageXvaNetwork = new NetworkPickerPage();
		    m_pageXvaHost = new GlobalSelectHost();
            lunPerVdiMappingPage = new LunPerVdiImportPage { Connection = con };

			m_selectedObject = xenObject;
            m_pageTvmIp.IsExportMode = false;
			m_pageFinish.SummaryRetreiver = GetSummary;
			m_pageXvaStorage.ImportVmCompleted += m_pageXvaStorage_ImportVmCompleted;

			if (!string.IsNullOrEmpty(filename))
				m_pageImportSource.SetFileName(filename);

			m_pageImportSource.OvfModeOnly = ovfModeOnly;
            AddPages(m_pageImportSource, m_pageHost, m_pageStorage, m_pageNetwork, m_pageFinish);
		}