Exemplo 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]);
     }
 }
Exemplo 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);
        }
Exemplo n.º 3
0
Arquivo: GridView.cs Projeto: 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);
		}
Exemplo 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]);
			}