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); }
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)); }
Panel CreateContentPanel() { StackPanel result = new StackPanel(); ValidationProgressPanel validationPanel = new ValidationProgressPanel(); Panel headerPanel = CreateHeaderPanel(); mWebErrorPanel = new WebErrorPanel(); mUserTextBox = WebControlBuilder.CreateTextBox( GitMasterLocalization.GetString( GitMasterLocalization.Name.LoginPanelUserWatermark)); mUserErrorLabel = WebControlBuilder.CreateErrorLabel(); mPasswordTextBox = WebControlBuilder.CreatePasswordTextBox( GitMasterLocalization.GetString( GitMasterLocalization.Name.LoginPanelPasswordWatermark)); mPasswordErrorLabel = WebControlBuilder.CreateErrorLabel(); mTeamInvitationCodeTextBox = WebControlBuilder.CreateTextBox( GitMasterLocalization.GetString( GitMasterLocalization.Name.LoginPanelTeamInvitationCodeWatermark)); mLoginButton = WebControlBuilder.CreateMainActionButton( GitMasterLocalization.GetString( GitMasterLocalization.Name.LoginButtonUppercase)); mLoginButton.Click += LoginButton_Click; WebEntriesPacker.AddRelatedComponents( result, headerPanel, mWebErrorPanel, mUserTextBox, mUserErrorLabel, mPasswordTextBox, mPasswordErrorLabel, mTeamInvitationCodeTextBox, validationPanel, mLoginButton); mProgressControls = new ProgressControlsForDialogs( validationPanel, new UIElement[] { mLoginButton }); mLoginButton.IsDefault = true; return(result); }
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); }