Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using inRiver.PIM.Common.Interface;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Data;
- using System.Windows.Documents;
- using System.Windows.Input;
- using System.Windows.Media;
- using System.Windows.Media.Imaging;
- using System.Windows.Navigation;
- using System.Windows.Shapes;
- using inRiver.PIM.Common;
- using DevExpress.Xpf.Grid;
- using inRiver.PIM.Common.Controls;
- namespace WpfCL_Rozszerzenie_PIM
- {
- /// <summary>
- /// Interaction logic for UserControl1.xaml
- /// </summary>
- public partial class UserControl1 : UserControl, IPIMExtension
- {
- public UserControl1()
- {
- InitializeComponent();
- }
- public bool CanMinimize
- {
- get { return false; }
- }
- public bool CanMove
- {
- get { return false; }
- }
- public BitmapImage CaptionImage
- {
- get { return null; }
- }
- public ExtenionLocation DefaultTabbedGroup
- {
- get { return ExtenionLocation.Menu; }
- }
- public int Order
- {
- get { return 10; }
- }
- public void Dispose()
- {
- }
- private void MenuItem1_Click(object sender, RoutedEventArgs e)
- {
- MenuItem menuItem = (MenuItem)e.Source;
- ContextMenu menu = (ContextMenu)menuItem.Parent;
- GridControl grid = (GridControl)menu.PlacementTarget;
- int[] selectedRows = ((GridViewBase)grid.View).GetSelectedRowHandles();
- //StringBuilder sb = new StringBuilder();
- //sb.Append("Selected Entities:");
- //sb.AppendLine();
- //foreach (var entity in selectedRows)
- //{
- // string row = grid.GetRow(entity).ToString();
- // int EntityId = int.Parse(grid.GetCellDisplayText(entity, "inRiver_$$$_EntityId"));
- // sb.Append(row + " Entity ID: " + EntityId);
- //}
- //string message = sb.ToString();
- //inRiverMessageBoxes.Information(message);
- MessageBox.Show("AAAA");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement