Interaction logic for UserInfo.xaml
Inheritance: IDashboardContentControl, IGwupeUserControl
 private void UserInfo_Click(object sender, System.Windows.RoutedEventArgs e)
 {
     if (_appContext.ConnectionManager.IsOnline())
     {
         if (_appContext.CurrentUserManager.CurrentUser.Guest)
         {
             ThreadPool.QueueUserWorkItem(state => _appContext.UIManager.PromptGuestSignup());
         }
         else
         {
             if (_userInfoControl == null)
             {
                 _userInfoControl = new UserInfoControl(_appContext);
             }
             // Clear currently engaged
             var currentEngaged = _appContext.RosterManager.CurrentlyEngaged;
             if (currentEngaged != null)
             {
                 currentEngaged.IsCurrentlyEngaged = false;
             }
             // Set main active window
             ActiveContent.Content = _userInfoControl;
             _userInfoControl.SetAsMain(this);
         }
     }
 }
Example #2
0
 private void UserInfo_Click(object sender, System.Windows.RoutedEventArgs e)
 {
     if (_appContext.ConnectionManager.IsOnline())
     {
         if (_appContext.CurrentUserManager.CurrentUser.Guest)
         {
             ThreadPool.QueueUserWorkItem(state => _appContext.UIManager.PromptGuestSignup());
         }
         else
         {
             if (_userInfoControl == null)
             {
                 _userInfoControl = new UserInfoControl(_appContext);
             }
             // Clear currently engaged
             var currentEngaged = _appContext.RosterManager.CurrentlyEngaged;
             if (currentEngaged != null) currentEngaged.IsCurrentlyEngaged = false;
             // Set main active window
             ActiveContent.Content = _userInfoControl;
             _userInfoControl.SetAsMain(this);
         }
     }
 }
Example #3
0
 private void ClearBlurEffect(UserInfoControl userControl)
 {
     userControl.Background = new SolidColorBrush(Colors.Transparent);
     userControl.UserControl.Opacity = 100;
 }
Example #4
0
 private void ApplyBlurEffect(UserInfoControl userControl)
 {
     userControl.Background = new SolidColorBrush(Colors.Gray);
     userControl.UserControl.Opacity = 0.4;
 }
Example #5
0
 private void ApplyBlurEffect(UserInfoControl userControl)
 {
     userControl.Background          = new SolidColorBrush(Colors.Gray);
     userControl.UserControl.Opacity = 0.4;
 }
Example #6
0
 private void ClearBlurEffect(UserInfoControl userControl)
 {
     userControl.Background          = new SolidColorBrush(Colors.Transparent);
     userControl.UserControl.Opacity = 100;
 }