internal AvatarImageWindow(GwupeClientAppContext appContext, byte[] currentImageBytes)
 {
     _appContext = appContext;
     this.InitializeComponent();
     validator = new InputValidator(StatusText, ErrorText,Dispatcher);
     ProfileImage = new ImageStreamReader() {DefaultImageUri = "pack://application:,,,/ui/wpf/Images/silhoette.png" }.CreateBitmapImage(currentImageBytes);
 }
Exemple #2
0
 public SignUpControl(Dashboard dashboard)
 {
     _dashboard = dashboard;
     _appContext = GwupeClientAppContext.CurrentAppContext;
     this.InitializeComponent();
     _validator = new InputValidator(null,ErrorText,Dispatcher);
 }
Exemple #3
0
 public LoginControl(Dashboard dashboard)
 {
     this.InitializeComponent();
     _dashboard = dashboard;
     ApplyBlurEffect(dashboard);
     Username.Text = GwupeClientAppContext.CurrentAppContext.LoginManager.LoginDetails.Username ?? "";
     _validator = new InputValidator(null, null, Dispatcher);
 }
Exemple #4
0
 public UiHelper(Dispatcher dispatcher, ContentPresenter disabler, TextBlock statusText, TextBlock errorText)
 {
     _dispatcher = dispatcher;
     _disabler = new GwupeDisablerContext(dispatcher,disabler);
     _validator = new InputValidator(statusText,errorText,dispatcher);
 }
Exemple #5
0
 public SettingsData(InputValidator validator)
 {
     _validator = validator;
 }
Exemple #6
0
 public Settings()
 {
     this.InitializeComponent();
     _inputValidator = new InputValidator(StatusText, ErrorText, Dispatcher, true);
     DataContext = new SettingsData(_inputValidator);
 }