GetStatusIdAt() public method

public GetStatusIdAt ( int index ) : long
index int
return long
Exemplo n.º 1
0
        private long? GetSelectionMarkStatusId(DetailsListView listView, TabModel tab)
        {
            var selectionMarkIndex = listView.SelectionMark;

            return selectionMarkIndex != -1 ? tab.GetStatusIdAt(selectionMarkIndex) : (long?)null;
        }
Exemplo n.º 2
0
 private long[] GetSelectedStatusIds(DetailsListView listView, TabModel tab)
 {
     var selectedIndices = listView.SelectedIndices;
     if (selectedIndices.Count > 0 && selectedIndices.Count < 61)
         return tab.GetStatusIdAt(selectedIndices.Cast<int>());
     else
         return null;
 }
Exemplo n.º 3
0
        private long? GetFocusedStatusId(DetailsListView listView, TabModel tab)
        {
            var focusedItem = listView.FocusedItem;

            return focusedItem != null ? tab.GetStatusIdAt(focusedItem.Index) : (long?)null;
        }
Exemplo n.º 4
0
        /// <summary>
        /// <see cref="ListView"/> のスクロール位置に関する情報を <see cref="ListViewScroll"/> として返します
        /// </summary>
        private ListViewScroll SaveListViewScroll(DetailsListView listView, TabModel tab)
        {
            var listScroll = new ListViewScroll
            {
                ScrollLockMode = this.GetScrollLockMode(listView),
            };

            if (listScroll.ScrollLockMode == ScrollLockMode.FixedToItem)
            {
                var topItem = listView.TopItem;
                if (topItem != null)
                    listScroll.TopItemStatusId = tab.GetStatusIdAt(topItem.Index);
            }

            return listScroll;
        }