コード例 #1
0
		private void OnLinkSelectionChanged(object sender, SelectionEventArgs e)
		{
			switch (e.SelectionType)
			{
				case SelectionEventType.SelectionReset:
					ActiveEditor?.UpdateData();
					break;
				case SelectionEventType.LinkSelected:
					ActiveEditor?.UpdateData();
					break;
			}
		}
コード例 #2
0
		private void OnSelectionChanged(object sender, SelectionEventArgs e)
		{
			UpdateLinkButtons();
			linkInfoControl.UpdateData();
			switch (e.SelectionType)
			{
				case SelectionEventType.SelectionReset:
				case SelectionEventType.FolderSelected:
					superFilterControl.Reset();
					break;
				case SelectionEventType.LinkSelected:
					superFilterControl.UpdateData();
					break;
			}
		}
コード例 #3
0
		private void OnSelectionChanged(object sender, SelectionEventArgs e)
		{
			if (IsDisposed) return;
			if (e.SelectionType == SelectionEventType.FolderSelected || e.SelectionType == SelectionEventType.SelectionReset)
			{
				if (IsActive)
				{
					ResetPadding();
					grFiles.ReadOnly = false;
					grFiles.MultiSelect = FormatState.AllowMultiSelect;
				}
				else
				{
					grFiles.ReadOnly = true;
					ResetPadding();
				}
			}

			if (!IsActive &&
				((e.SelectionType == SelectionEventType.FolderSelected && !FormatState.AllowMultiSelect) ||
				 e.SelectionType == SelectionEventType.SelectionReset)
				)
			{
				var storedValue = _outsideChangesInProgress;
				_outsideChangesInProgress = true;
				grFiles.ClearSelection();
				grFiles.CurrentCell = null;
				_outsideChangesInProgress = storedValue;
			}

			grFiles.DefaultCellStyle.SelectionBackColor = SelectedRowBackColor;
		}