public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/TERSApplication;component/Views/Login/RegistrationForm.xaml", System.UriKind.Relative)); this.activity = ((System.Windows.Controls.Activity)(this.FindName("activity"))); this.registerForm = ((TERSApplication.Controls.CustomDataForm)(this.FindName("registerForm"))); this.backToLogin = ((System.Windows.Controls.HyperlinkButton)(this.FindName("backToLogin"))); this.registerCancel = ((System.Windows.Controls.Button)(this.FindName("registerCancel"))); this.registerButton = ((System.Windows.Controls.Button)(this.FindName("registerButton"))); }
/// <summary> /// Initializes the <see cref="Application.RootVisual"/> property. The /// initial UI will be displayed before the LoadUser operation has completed /// (The LoadUser operation will cause user to be logged automatically if /// using windows authentication or if the user had selected the "keep /// me signed in" option on a previous login). /// </summary> protected virtual void InitializeRootVisual() { this.progressIndicator = new Activity(); this.progressIndicator.Content = new MainPage(); //this.progressIndicator.IsActive = true; this.progressIndicator.HorizontalContentAlignment = HorizontalAlignment.Stretch; this.progressIndicator.VerticalContentAlignment = VerticalAlignment.Stretch; // Let the user now we're trying to authenticate him this.progressIndicator.ActiveContent = ApplicationStrings.ActivityLoadingUser; this.RootVisual = this.progressIndicator; }
private List<ParameterModel> ExtractParam(Activity a, bool isInput) { #region Validation if ((isInput) && (a.InputParam == null)) return null; else if ((!isInput) && (a.OutputParam == null)) return null; #endregion Collection<Parameter> parameters = isInput ? a.InputParam : a.OutputParam; List<ParameterModel> models = new List<ParameterModel>(); foreach (Parameter p in parameters) models.Add(new ParameterModel(p.Compulsary) { Name = p.Name, DataType = p.DataType, Description = p.Description, IsInputParam = p.IsInputParam, Label = p.Label }); foreach (ParameterModel p in models) p.SiblingModels = models.ToArray(); return models; }