private ActionModelNode GetContextMenuModel(int row, int column)
        {
            IStudyItem activeItem = null;

            if (row >= 0 && row < _component.Items.Count)
            {
                activeItem = _component.Items[row];
            }

            StudyFilterColumn activeColumn = null;

            if (column >= 0 && column < _component.Columns.Count)
            {
                activeColumn = _component.Columns[column];
            }

            return(_component.GetContextMenuActionModel(activeItem, activeColumn));
        }
        private void OnAddDicomTagClick(object sender, EventArgs e)
        {
            try
            {
                ushort group   = ushort.Parse(_txtDicomTagGroup.Text, NumberStyles.AllowHexSpecifier);
                ushort element = ushort.Parse(_txtDicomTagElement.Text, NumberStyles.AllowHexSpecifier);
                uint   tag     = (uint)(group << 16) + element;

                StudyFilterColumn.ColumnDefinition column = StudyFilterColumn.GetColumnDefinition(tag);
                if (_lstSelectedColumns.Items.Contains(column))
                {
                    return;
                }

                _lstSelectedColumns.Items.Add(column);
                _component.Columns.Add(column);
            }
            catch (FormatException) {}
        }
			public static CompareValueCompositePredicateFilter Find(IEnumerable<FilterPredicate> collection, StudyFilterColumn column)
			{
				return (CompareValueCompositePredicateFilter)
				       CollectionUtils.SelectFirst(collection,
				                                   delegate(FilterPredicate x) { return x is CompareValueCompositePredicateFilter && ((CompareValueCompositePredicateFilter) x)._column == column; });
			}
 public DescendingSortPredicate(StudyFilterColumn column) : base(column)
 {
 }
 public SortPredicate(StudyFilterColumn column)
 {
     this.Column = column;
 }
 public TextValueFilterPredicate(StudyFilterColumn column, object value) : base(column, value)
 {
 }
 public static QuickValuePredicateFilter Find(IEnumerable <FilterPredicate> collection, StudyFilterColumn column)
 {
     return((QuickValuePredicateFilter)
            CollectionUtils.SelectFirst(collection,
                                        delegate(FilterPredicate x) { return x is QuickValuePredicateFilter && ((QuickValuePredicateFilter)x)._column == column; }));
 }
 public QuickValuePredicateFilter(StudyFilterColumn column) : base()
 {
     _column = column;
 }
Beispiel #9
0
			public LexicalSortPredicate(StudyFilterColumn column, bool descending) : base(column)
			{
				this.Descending = descending;
			}
Beispiel #10
0
 internal Predicate(StudyFilterColumn column, string id)
 {
     _column = column;
     _id     = id;
 }
 public ValueFilterPredicate(StudyFilterColumn column, object value)
 {
     this.Column = column;
     this.Value  = value;
 }
				public TextValueFilterPredicate(StudyFilterColumn column, object value) : base(column, value) {}
			public static QuickValuePredicateFilter Find(IEnumerable<FilterPredicate> collection, StudyFilterColumn column)
			{
				return (QuickValuePredicateFilter)
				       CollectionUtils.SelectFirst(collection,
				                                   delegate(FilterPredicate x) { return x is QuickValuePredicateFilter && ((QuickValuePredicateFilter) x)._column == column; });
			}
			public QuickValuePredicateFilter(StudyFilterColumn column) : base()
			{
				_column = column;
			}
			public CompareValueCompositePredicateFilter(StudyFilterColumn column)
				: base()
			{
				_column = column;
			}
Beispiel #16
0
 public SpatialSortPredicate(StudyFilterColumn column, bool descending)
     : base(column)
 {
     this.Descending = descending;
 }
 public CompareValueCompositePredicateFilter(StudyFilterColumn column)
     : base()
 {
     _column = column;
 }