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)
 {
 }