Exemple #1
0
 /// <summary>
 /// Shows controls for viewing an account.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">An <see cref="AccountManagementEventArgs"/> that contains the event data.</param>
 void ShowViewer(object sender, AccountManagementEventArgs e)
 {
     SetView(RenderViewerView);
     _viewer.MessageText = e.Description;
     FillUsers(_accountList);
     if (e.User != null)
     {
         _viewer.SetUser(e.User);
         ListItem selected = _accountList.Items.FindByValue(e.User.UserName);
         if (selected != null)
         {
             selected.Selected = true;
         }
     }
 }
Exemple #2
0
 /// <summary>
 /// Shows controls for creating an account.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">An <see cref="AccountManagementEventArgs"/> that contains the event data.</param>
 void ShowCreator(object sender, AccountManagementEventArgs e)
 {
     SetView(RenderCreatorView);
     _creator.SetCandidate(e.Candidate);
 }
Exemple #3
0
 /// <summary>
 /// Shows default view for account management tasks.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">An <see cref="AccountManagementEventArgs"/> that contains the event data.</param>
 void ShowTasks(object sender, AccountManagementEventArgs e)
 {
     _renderByView = RenderTaskView;
 }