private void theListView_ContextMenuAction(object sender, ContextMenuActionEventArgs args)
 {
     try
     {
         foreach (SummaryNode sn in theListView.SelectedItems)
         {
             sn.ApplyMenuAction(args.MenuAction);
         }
     }
     catch (Exception ex)
     {
         Interop.Logging.Logger.LogError(ex);
     }
 }
 private void theTreeView_ContextMenuAction(object sender, ContextMenuActionEventArgs args)
 {
     try
     {
         SummaryNode sn = (args.OriginalSource as ChangeTreeNode).DataContext as SummaryNode;
         if (sn == null)
             return;
         sn.ApplyMenuAction(args.MenuAction);
     }
     catch (Exception ex)
     {
         Interop.Logging.Logger.LogError(ex);
     }
 }
		private void RaiseMenuActionEvent(MenuActions act)
		{
			ContextMenuActionEventArgs args = new ContextMenuActionEventArgs(ContextMenuActionEvent, this);
			args.MenuAction = act;
			RaiseEvent(args);
		}