/// <summary>
 /// OnDataSelectionChanged method implementation
 /// </summary>
 private void OnDataSelectionChanged(object sender, SelectionDataEventArgs e)
 {
     if (e.Action != MMCListAction.SelectionChanged)
     {
         return;
     }
     this.SelectionData.BeginUpdates();
     try
     {
         if (e.Selection.Count == 0)
         {
             this.SelectionData.Clear();
         }
         else
         {
             if (e.Selection.Count > 0)
             {
                 SelectionData.Update(e.Selection, e.Selection.Count > 1, null, null);
                 if (e.Selection.Count == 1)
                 {
                     UpdateActionPanelItems(e.Selection);
                     SelectionData.DisplayName = e.Selection[0].UPN;
                 }
                 else
                 {
                     UpdateActionPanelItems(e.Selection);
                     SelectionData.DisplayName = res.USERSFRMSLECTMULTIPLE;
                 }
             }
         }
     }
     finally
     {
         this.SelectionData.EndUpdates();
     }
 }
 /// <summary>
 /// OnDataEditionActivated method implmentation
 /// </summary>
 private void OnDataEditionActivated(object sender, SelectionDataEventArgs e)
 {
     this.SelectionData.ShowPropertySheet(res.USERSFRMPROPERTIES + " : " + SelectionData.DisplayName);
 }
Exemple #3
0
 /// <summary>
 /// OnDataEditionActivated method implmentation
 /// </summary>
 private void OnDataEditionActivated(object sender, SelectionDataEventArgs e)
 {
     this.SelectionData.ShowPropertySheet("Editing Users");
 }