コード例 #1
0
ファイル: AvatarImageWindow.xaml.cs プロジェクト: gwupe/Gwupe
 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);
 }
コード例 #2
0
ファイル: SignUpControl.xaml.cs プロジェクト: gwupe/Gwupe
 public SignUpControl(Dashboard dashboard)
 {
     _dashboard = dashboard;
     _appContext = GwupeClientAppContext.CurrentAppContext;
     this.InitializeComponent();
     _validator = new InputValidator(null,ErrorText,Dispatcher);
 }
コード例 #3
0
ファイル: LoginControl.xaml.cs プロジェクト: gwupe/Gwupe
 public LoginControl(Dashboard dashboard)
 {
     this.InitializeComponent();
     _dashboard = dashboard;
     ApplyBlurEffect(dashboard);
     Username.Text = GwupeClientAppContext.CurrentAppContext.LoginManager.LoginDetails.Username ?? "";
     _validator = new InputValidator(null, null, Dispatcher);
 }
コード例 #4
0
ファイル: UiHelper.cs プロジェクト: gwupe/Gwupe
 public UiHelper(Dispatcher dispatcher, ContentPresenter disabler, TextBlock statusText, TextBlock errorText)
 {
     _dispatcher = dispatcher;
     _disabler = new GwupeDisablerContext(dispatcher,disabler);
     _validator = new InputValidator(statusText,errorText,dispatcher);
 }
コード例 #5
0
ファイル: Settings.xaml.cs プロジェクト: gwupe/Gwupe
 public SettingsData(InputValidator validator)
 {
     _validator = validator;
 }
コード例 #6
0
ファイル: Settings.xaml.cs プロジェクト: gwupe/Gwupe
 public Settings()
 {
     this.InitializeComponent();
     _inputValidator = new InputValidator(StatusText, ErrorText, Dispatcher, true);
     DataContext = new SettingsData(_inputValidator);
 }