Beispiel #1
0
        void PackageIdTextBoxChanged(object sender, EventArgs e)
        {
            // Use id as description by default.
            if (wizardPage.Id == wizardPage.Description)
            {
                packageDescriptionTextBox.Text = packageIdTextBox.Text;
            }

            wizardPage.Id = packageIdTextBox.Text;

            if (wizardPage.HasIdError())
            {
                if (idTooltip == null)
                {
                    idTooltip = ShowErrorTooltip(idEventBox, wizardPage.IdError);
                }
            }
            else
            {
                if (idTooltip != null)
                {
                    HideTooltip(idEventBox, idTooltip);
                    idTooltip = null;
                }
            }
        }
Beispiel #2
0
        void PackageIdTextBoxChanged(object sender, EventArgs e)
        {
            wizardPage.Id = packageIdTextBox.Text;

            if (wizardPage.HasIdError())
            {
                if (idTooltip == null)
                {
                    idTooltip = ShowErrorTooltip(idEventBox, wizardPage.IdError);
                }
            }
            else
            {
                if (idTooltip != null)
                {
                    HideTooltip(idEventBox, idTooltip);
                    idTooltip = null;
                }
            }
        }