Esempio n. 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]);
     }
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
File: GridView.cs Progetto: 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);
		}
Esempio n. 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]);
			}