예제 #1
0
파일: Grid.cs 프로젝트: modulexcite/Eto-1
 public virtual void OnColumnHeaderClick(GridColumnEventArgs e)
 {
     if (_ColumnHeaderClick != null)
     {
         _ColumnHeaderClick(this, e);
     }
 }
예제 #2
0
파일: Grid.cs 프로젝트: CheckTech/Eto
 /// <summary>
 /// Raises the <see cref="Grid.ColumnHeaderClick"/> event
 /// </summary>
 /// <param name="e">Event arguments</param>
 protected virtual void OnColumnHeaderClick(GridColumnEventArgs e)
 {
     Properties.TriggerEvent(ColumnHeaderClickEvent, this, e);
 }
예제 #3
0
파일: Grid.cs 프로젝트: CheckTech/Eto
 /// <summary>
 /// Raises the column header click event.
 /// </summary>
 public void OnColumnHeaderClick(Grid widget, GridColumnEventArgs e)
 {
     widget.Platform.Invoke(() => widget.OnColumnHeaderClick(e));
 }
예제 #4
0
파일: Grid.cs 프로젝트: majorsilence/Eto
		public virtual void OnColumnHeaderClick (GridColumnEventArgs e)
		{
			if (_ColumnHeaderClick != null)
				_ColumnHeaderClick (this, e);
		}
예제 #5
0
 void _gridViewFile_ColumnHeaderClick(object sender, GridColumnEventArgs e)
 {
     var items = _gridViewFile.DataStore as DataStoreCollection<FileInfoView>;
     if (items == null) return;
     switch (e.Column.ID)
     {
         case "Image": //type
             _typeIsAscending = !_typeIsAscending;
             items.Sort((a, b) => SortIntAscending((int)a.Type, (int)b.Type, _typeIsAscending));
             break;
         case "Name":
             _nameIsAscending = !_nameIsAscending;
             items.Sort((a, b) => SortStringAscending(a.Name, b.Name, _nameIsAscending));
             break;
         case "Time":
             _timeIsAscending = !_timeIsAscending;
             items.Sort((a, b) => SortStringAscending(a.FileMTime, b.FileMTime, _timeIsAscending));
             break;
         case "Size":
             _sizeIsAscending = !_sizeIsAscending;
             items.Sort((a, b) => SortIntAscending(a.FileSizeInt, b.FileSizeInt, _sizeIsAscending));
             break;
         case "Attribute":
             _attributeIsAscending = !_attributeIsAscending;
             items.Sort((a, b) => SortStringAscending(a.FileAttributes, b.FileAttributes, _attributeIsAscending));
             break;
         default:
             break;
     }
 }
예제 #6
0
파일: Grid.cs 프로젝트: alexandrebaker/Eto
		/// <summary>
		/// Raises the <see cref="Grid.ColumnHeaderClick"/> event
		/// </summary>
		/// <param name="e">Event arguments</param>
		public virtual void OnColumnHeaderClick(GridColumnEventArgs e)
		{
			Properties.TriggerEvent(ColumnHeaderClickEvent, this, e);
		}
예제 #7
0
 void _gridViewUpdatable_ColumnHeaderClick(object sender, GridColumnEventArgs e)
 {
     Sort(_gridViewUpdatable, e.Column.ID);
 }
예제 #8
0
 void _gridViewInstalled_ColumnHeaderClick(object sender, GridColumnEventArgs e)
 {
     Sort(_gridViewInstalled, e.Column.ID);
 }
예제 #9
0
		void _gridViewShell_ColumnHeaderClick(object sender, GridColumnEventArgs e)
		{
			var items = _gridViewShell.DataStore as DataStoreCollection<Shell>;
			if (items == null) return;
			switch (e.Column.HeaderText)
			{
				case "Id":
					_idIsAscending = !_idIsAscending;
					items.Sort((a, b) => SortIntAscending(a.Id, b.Id, _idIsAscending));
					break;
				case "Name":
					_nameIsAscending = !_nameIsAscending;
					items.Sort((a, b) => SortStringAscending(a.TargetId, b.TargetId, _nameIsAscending));
					break;
				case "Level":
					_levelIsAscending = !_levelIsAscending;
					items.Sort((a, b) => SortStringAscending(a.TargetLevel, b.TargetLevel, _levelIsAscending));
					break;
				case "Status":
					_statusIsAscending = !_statusIsAscending;
					items.Sort((a, b) => SortIntAscending(a.Status, b.Status, _statusIsAscending));
					break;
				case "Type":
					_typeIsAscending = !_typeIsAscending;
					items.Sort((a, b) => SortStringAscending(a.ShellType, b.ShellType, _typeIsAscending));
					break;
				case "AddTime":
					_addTimeIsAscending = !_addTimeIsAscending;
					items.Sort((a, b) => SortTimeAscending(a.AddTime, b.AddTime, _addTimeIsAscending));
					break;
				default:
					break;
			}
		}
예제 #10
0
파일: Grid.cs 프로젝트: zzlvff/Eto
 /// <summary>
 /// Raises the column header click event.
 /// </summary>
 public void OnColumnHeaderClick(Grid widget, GridColumnEventArgs e)
 {
     using (widget.Platform.Context)
         widget.OnColumnHeaderClick(e);
 }