/// <summary> /// Loggedin user Profile window /// </summary> /// <param name="userProfileWindowOpen">opens the window</param> /// <param name="userProfile">user</param> public ProfileViewModel(UserProfileWindow userProfileWindowOpen, tblUser userProfile) { user = LoggedInUser.CurrentUser; user = userProfile; userProfileWindow = userProfileWindowOpen; ViewChangePassword = Visibility.Collapsed; }
private void ProfileMouseUp(object sender, MouseButtonEventArgs e) { var fe = sender as FrameworkElement; var play = fe.DataContext as Octgn.Play.Player; if (play == null) { return; } UserProfileWindow.Show(new User(play.Name + "@" + AppConfig.ChatServerPath)); }
private async void ProfileMouseUp(object sender, MouseButtonEventArgs e) { var fe = sender as FrameworkElement; var play = fe.DataContext as Octgn.Play.Player; if (play == null) { return; } await UserProfileWindow.Show(new User(play.UserId)); }
private void ExecuteOnProfileSettings() { try { view.Hide(false); var profEditWnd = new UserProfileWindow(); profEditWnd.Owner = (Window)view; profEditWnd.ShowDialog(); UpdateUI(); GlobalBase.UpdateContactList.Invoke(); view.Hide(true); } catch (System.Exception) { } }
protected virtual void ShowUserMenu() { var page = NavigationService.CurrentPage as IHasDisplayPreferences; DisplayPreferences displayPreferences = null; ListPageConfig options = null; if (page != null) { displayPreferences = page.GetDisplayPreferences(); options = page.GetListPageConfig(); } var userProfileWindow = new UserProfileWindow(this, SessionManager, PresentationManager, ImageManager, ApiClient, ConfigurationManager, displayPreferences, options); userProfileWindow.Closed += userProfileWindow_Closed; userProfileWindow.ShowModal(PresentationManager.Window); }
private void ProfileOnClick(object sender, RoutedEventArgs e) { var mi = sender as MenuItem; if (mi == null) { return; } var cm = mi.Parent as ContextMenu; if (cm == null) { return; } var ui = cm.PlacementTarget as UserListItem; if (ui == null) { return; } UserProfileWindow.Show(ui.User); }
public void ShowUserProfileWindow() { UserProfileWindow window = new UserProfileWindow(); window.ShowDialog(); }
public UserProfileViewModel(UserProfileWindow owner) : this() { _owner = owner; LoadProfiles(); }