Exemple #1
0
        Panel CreateContentErrorPanel(string message)
        {
            StackPanel result = new StackPanel();

            TextBlock titleTextBlock = WebControlBuilder.CreateTitle(
                GitMasterLocalization.GetString(
                    GitMasterLocalization.Name.WaitingLicensePanelErrorTitle));

            titleTextBlock.Margin = new Thickness(0, 40, 0, 15);

            WebErrorPanel errorPanel = new WebErrorPanel();

            errorPanel.ShowError(message);

            mTeamInvitationCodeTextBox = WebControlBuilder.CreateTextBox(
                GitMasterLocalization.GetString(
                    GitMasterLocalization.Name.WaitingLicensePanelTeamInvitationCodeWatermark));

            mGetLicenseButton = WebControlBuilder.CreateMainActionButton(
                GitMasterLocalization.GetString(
                    GitMasterLocalization.Name.GetLicenseButtonUppercase));
            mGetLicenseButton.Click += GetLicenseButton_Click;

            WebEntriesPacker.AddRelatedComponents(
                result,
                titleTextBlock,
                errorPanel,
                mTeamInvitationCodeTextBox,
                mGetLicenseButton);

            return(result);
        }
Exemple #2
0
        Panel CreateHeaderPanel()
        {
            TextBlock titleTextBlock = WebControlBuilder.CreateTitle(
                GitMasterLocalization.GetString(
                    GitMasterLocalization.Name.LoginPanelTitle));

            mSignUpLinkLabel = WebControlBuilder.CreateLinkLabel(
                GitMasterLocalization.GetString(
                    GitMasterLocalization.Name.SignUpLinkLabel));
            mSignUpLinkLabel.HyperLink.Click += SignUpLinkLabel_Click;

            return(WebEntriesPacker.CreateHeaderPanel(
                       titleTextBlock, mSignUpLinkLabel));
        }
Exemple #3
0
        Panel CreateContentPanel()
        {
            StackPanel result = new StackPanel();

            TextBlock titleTextBlock = WebControlBuilder.CreateTitle(
                GitMasterLocalization.GetString(
                    GitMasterLocalization.Name.WaitingLicensePanelTitle));

            titleTextBlock.Margin = new Thickness(0, 25, 0, 15);

            WebEntriesPacker.AddRelatedComponents(
                result,
                titleTextBlock,
                WebEntriesPacker.CreateWaitingPanel(GitMasterLocalization.GetString(
                                                        GitMasterLocalization.Name.DownloadingLicense)));

            return(result);
        }