Interaction logic for Dashboard.xaml
예제 #1
0
 public SignUpControl(Dashboard dashboard)
 {
     _dashboard = dashboard;
     _appContext = GwupeClientAppContext.CurrentAppContext;
     this.InitializeComponent();
     _validator = new InputValidator(null,ErrorText,Dispatcher);
 }
예제 #2
0
 public LoginControl(Dashboard dashboard)
 {
     this.InitializeComponent();
     _dashboard = dashboard;
     ApplyBlurEffect(dashboard);
     Username.Text = GwupeClientAppContext.CurrentAppContext.LoginManager.LoginDetails.Username ?? "";
     _validator = new InputValidator(null, null, Dispatcher);
 }
예제 #3
0
 public DashboardDataContext(Dashboard dashboard)
 {
     _dashboard = dashboard;
     GwupeClientAppContext.CurrentAppContext.CurrentUserManager.PropertyChanged +=
         (sender, args) => { if (args.PropertyName.Equals("ActiveShoreCode")) OnPropertyChanged("ShortCode"); };
     DashboardStateManager = new DashboardStateManager();
     DashboardStateManager.PropertyChanged += (sender, args) =>
     {
         if (args.PropertyName.Equals("DashboardState"))
         {
             OnPropertyChanged("DashboardState");
         }
     };
 }
예제 #4
0
 private void ClearBlurEffect(Dashboard dashboard)
 {
     dashboard.Opacity = 100;
 }
예제 #5
0
 private void ApplyBlurEffect(Dashboard dashboard)
 {
     dashboard.Opacity = 0.9;
 }
예제 #6
0
파일: UIManager.cs 프로젝트: gwupe/Gwupe
 private void RunUI()
 {
     dashBoard = new Dashboard(GwupeClientAppContext.CurrentAppContext);
     uiReady.Set();
     Dispatcher.Run();
 }
예제 #7
0
 public void SetAsMain(Dashboard dashboard)
 {
 }