public void ShowLocalValidationMessages()
 {
     if (!ValidToSave)
     {
         HelpersGUI.ShowBalloonMessage(comboBoxNetwork, SelectNetworkToolTip);
     }
 }
示例#2
0
 public void ShowLocalValidationMessages()
 {
     if (_invalidParamToolTip.Tag is Control ctrl)
     {
         HelpersGUI.ShowBalloonMessage(ctrl, _invalidParamToolTip);
     }
 }
 public void ShowLocalValidationMessages()
 {
     if (!_validToSave)
     {
         HelpersGUI.ShowBalloonMessage(ServerTextBox, Messages.GENERAL_EDIT_INVALID_REMOTE, InvalidParamToolTip);
     }
 }
示例#4
0
 public void ShowValidationMessages()
 {
     if (invalidControl != null)
     {
         HelpersGUI.ShowBalloonMessage(invalidControl, validationToolTip);
     }
 }
 /** Show local validation balloon tooltips */
 public void ShowLocalValidationMessages()
 {
     if (RemoteRadioButton.Checked && (ServerTextBox.Text.Trim() == "" || !regex.IsMatch(ServerTextBox.Text)) && ServerTextBox.Text != _OrigLocation)
     {
         // Show invalid host message.
         HelpersGUI.ShowBalloonMessage(ServerTextBox, Messages.GENERAL_EDIT_INVALID_HOSTNAME, InvalidParamToolTip);
     }
 }
示例#6
0
 public void ShowLocalValidationMessages()
 {
     if (!ValidToSave)
     {
         HelpersGUI.ShowBalloonMessage(ShadowMultiplierTextBox,
                                       m_invalidParamToolTip, Messages.SHADOW_MEMORY_MULTIPLIER_VALUE);
     }
 }
示例#7
0
        public void ShowLocalValidationMessages()
        {
            decimal val;

            if (decimal.TryParse(nudAlertInterval.Text, NumberStyles.Any, CultureInfo.InvariantCulture, out val) &&
                val % 5 != 0)
            {
                HelpersGUI.ShowBalloonMessage(nudAlertInterval,
                                              m_invalidParamToolTip, Messages.PERFORM_ALERT_EDIT_INTERVAL_WRONG_MULTIPLE);
            }
        }
示例#8
0
        public void ShowLocalValidationMessages()
        {
            double v;

            if (!(double.TryParse(ShadowMultiplierTextBox.Text, NumberStyles.Any, CultureInfo.InvariantCulture, out v) &&
                  v > 0.1))
            {
                HelpersGUI.ShowBalloonMessage(ShadowMultiplierTextBox,
                                              Messages.SHADOW_MEMORY_MULTIPLIER_VALUE,
                                              m_invalidParamToolTip);
            }
        }
示例#9
0
        public void ShowLocalValidationMessages()
        {
            if (!this.ValidToSave)
            {
                HelpersGUI.ShowBalloonMessage(textBoxSMTPServer, Messages.INVALID_PARAMETER, InvalidParamToolTip);
            }
            //BL: Disable it for now, will enable it after adding the port to WLB side

            /*
             * else if (!PerfmonAlertOptionsPage.IsValidPort(TextBoxSMTPServerPort.Text))
             * {
             *  Dialogs.EditVIFDialog.ShowBalloonMessage(TextBoxSMTPServerPort, Messages.INVALID_PARAMETER, InvalidParamToolTip);
             * }
             */
        }
 public void ShowLocalValidationMessages()
 {
     if (!IsValidEmail(EmailAddressTextBox.Text))
     {
         HelpersGUI.ShowBalloonMessage(EmailAddressTextBox, Messages.INVALID_PARAMETER, InvalidParamToolTip);
     }
     else if (!IsValidSmtpAddress())
     {
         HelpersGUI.ShowBalloonMessage(SmtpServerAddrTextBox, Messages.INVALID_PARAMETER, InvalidParamToolTip);
     }
     else if (!Util.IsValidPort(SmtpServerPortTextBox.Text))
     {
         HelpersGUI.ShowBalloonMessage(SmtpServerPortTextBox, Messages.INVALID_PARAMETER, InvalidParamToolTip);
     }
 }
示例#11
0
        public void ShowLocalValidationMessages()
        {
            if (txtName.Text.Trim() == "")
            {
                // Show invalid target host local validation error message.
                HelpersGUI.ShowBalloonMessage(txtName, Messages.GENERAL_EDIT_INVALID_NAME, InvalidParamToolTip);
            }
            else if (xenObjectCopy is Host)
            {
                Host host = xenObjectCopy as Host;

                if (Helpers.ValidateIscsiIQN(ServerIQN) || ServerIQN == host.GetIscsiIqn())
                {
                    return;
                }

                // Allow invalid IQN only if previously set from CLI
                HelpersGUI.ShowBalloonMessage(txtIQN, Messages.GENERAL_EDIT_INVALID_IQN, InvalidParamToolTip);
            }
        }
        private bool ValidToSave()
        {
            foreach (Control ctl in this.tableLayoutPanelSubscriptionName.Controls)
            {
                if (!IsValidControl(ctl))
                {
                    HelpersGUI.ShowBalloonMessage(ctl, Messages.INVALID_PARAMETER, InvalidParamToolTip);
                    return(false);
                }
            }

            foreach (Control ctl in this.tableLayoutPanelDeliveryOptions.Controls)
            {
                if (!IsValidControl(ctl))
                {
                    HelpersGUI.ShowBalloonMessage(ctl, Messages.INVALID_PARAMETER, InvalidParamToolTip);
                    return(false);
                }
            }

            return(true);
        }
示例#13
0
 public void ShowLocalValidationMessages()
 {
     HelpersGUI.ShowBalloonMessage(textBoxInterface, _invalidParamToolTip);
 }
示例#14
0
 public void ShowLocalValidationMessages()
 {
     HelpersGUI.ShowBalloonMessage(flowLayoutPanel1, Messages.VMSS_INVALID_SCHEDULE, InvalidParamToolTip);
 }