示例#1
0
 public SelectionPreserver(GridViewSelection s)
 {
     this.s = s;
     previousSelectedItems = new HashSet <object>();
     foreach (var i in s.SelectedRows)
     {
         previousSelectedItems.Add(s.DataStoreView.Model[i]);
     }
 }
示例#2
0
文件: GridView.cs 项目: sami1971/Eto
        private new void Initialize()
        {
            // Always attach the SelectionChangedEvent
            // since it is always handled in the GridView.
            HandleEvent(Grid.SelectionChangedEvent);

            // Create a selection so that Filter and SortComparer
            // can be set before DataStore.
            selection = new GridViewSelection(this, null);
        }
示例#3
0
文件: GridView.cs 项目: Exe0/Eto
		private new void Initialize()
		{
			// Always attach the SelectionChangedEvent
			// since it is always handled in the GridView.
			HandleEvent(Grid.SelectionChangedEvent);

			// Create a selection so that Filter and SortComparer
			// can be set before DataStore.
			selection = new GridViewSelection(this, null);
		}
示例#4
0
			public SelectionPreserver(GridViewSelection s)
			{
				this.s = s;
				previousSelectedItems = new HashSet<object>();
				foreach (var i in s.SelectedRows)
					previousSelectedItems.Add(s.DataStoreView.Model[i]);
			}