Пример #1
0
        public VIFDialog(IXenConnection Connection, VIF ExistingVif, int Device, bool allowSriov = false)
            : base(Connection)
        {
            InitializeComponent();
            CueBannersManager.SetWatermark(promptTextBoxMac, "aa:bb:cc:dd:ee:ff");

            this.ExistingVif = ExistingVif;
            this.Device      = Device;
            if (ExistingVif != null)
            {
                changeToPropertiesTitle();
            }
            this.allowSriov = allowSriov;

            // Check if vSwitch Controller is configured for the pool (CA-46299)
            Pool pool = Helpers.GetPoolOfOne(connection);

            vSwitchController = pool != null && pool.vSwitchController();

            label1.Text = vSwitchController ? Messages.VIF_VSWITCH_CONTROLLER : Messages.VIF_LICENSE_RESTRICTION;
            LoadNetworks();
            LoadDetails();
            updateEnablement();
            SetupEventHandlers();
        }
Пример #2
0
        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (InstallMethod == RollingUpgradeInstallMethod.nfs)
            {
                labelUser.Visible = labelPassword.Visible = textBoxPassword.Visible = textBoxUser.Visible = false;
            }
            //FTP or HTTP
            else
            {
                labelUser.Visible = labelPassword.Visible = textBoxPassword.Visible = textBoxUser.Visible = true;
            }

            switch (InstallMethod)
            {
            case RollingUpgradeInstallMethod.nfs:
                CueBannersManager.SetWatermark(watermarkTextBox1, "server:path/");
                break;

            case RollingUpgradeInstallMethod.ftp:
                CueBannersManager.SetWatermark(watermarkTextBox1, "ftp.example.com/");
                break;

            case RollingUpgradeInstallMethod.http:
                CueBannersManager.SetWatermark(watermarkTextBox1, "www.example.com/");
                break;
            }

            ResetCheckControls();
        }
        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            radioButtonAutomatic.Checked = true;

            switch (comboBoxUpgradeMethod.SelectedIndex)
            {
            case 0:
                _installMethod = RollingUpgradeInstallMethod.http;
                CueBannersManager.SetWatermark(watermarkTextBox1, "www.example.com/");
                break;

            case 1:
                _installMethod = RollingUpgradeInstallMethod.nfs;
                CueBannersManager.SetWatermark(watermarkTextBox1, "server:path/");
                break;

            case 2:
                _installMethod = RollingUpgradeInstallMethod.ftp;
                CueBannersManager.SetWatermark(watermarkTextBox1, "ftp.example.com/");
                break;

            default:
                throw new ArgumentException();
            }

            labelUser.Visible         = textBoxUser.Visible =
                labelPassword.Visible = textBoxPassword.Visible = _installMethod != RollingUpgradeInstallMethod.nfs;

            OnPageUpdated();
        }
Пример #4
0
        public NewPolicyArchivePage()
        {
            InitializeComponent();

            CueBannersManager.SetWatermark(textBoxPath, Messages.ARCHIVE_VMPP_EXAMPLE_STORAGE_PATH);
            m_labelError.Visible            = false;
            radioButtonDoNotArchive.Checked = true;
            ArchiveTargetType = vmpp_archive_target_type.none;
            daysWeekCheckboxes1.CheckBoxChanged += checkBox_CheckedChanged;
        }
        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            radioButtonAutomatic.Checked = true;

            if (comboBoxUpgradeMethod.SelectedItem is UpgradeMethodItem item)
            {
                CueBannersManager.SetWatermark(watermarkTextBox1, item.ExampleUrl);

                labelUser.Visible         = textBoxUser.Visible =
                    labelPassword.Visible = textBoxPassword.Visible = !(item is NfsItem);
            }

            OnPageUpdated();
        }
Пример #6
0
        public VIFDialog(IXenConnection connection, VIF existingVif, int device, bool allowSriov = false)
            : base(connection)
        {
            InitializeComponent();
            CueBannersManager.SetWatermark(promptTextBoxMac, "aa:bb:cc:dd:ee:ff");

            ExistingVif     = existingVif;
            Device          = device;
            this.allowSriov = allowSriov;

            if (ExistingVif != null)
            {
                Text          = Messages.VIRTUAL_INTERFACE_PROPERTIES;
                buttonOk.Text = Messages.OK;
            }
        }
Пример #7
0
 public NFS_ISO()
 {
     InitializeComponent();
     passwordFailure1.Visible = false;
     CueBannersManager.SetWatermark(NfsServerPathComboBox, Messages.NFS_ISO_PATH_EXAMPLE);
 }