示例#1
0
 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);
     }
 }
示例#2
0
 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);
     }
 }
示例#3
0
		private void RaiseMenuActionEvent(MenuActions act)
		{
			ContextMenuActionEventArgs args = new ContextMenuActionEventArgs(ContextMenuActionEvent, this);
			args.MenuAction = act;
			RaiseEvent(args);
		}