Beispiel #1
0
 protected internal virtual void OnShowActiveFilesList(ActiveFilesListEventArgs e)
 {
     ShowActiveFilesList?.Invoke(this, e);
 }
Beispiel #2
0
		private void sandDockManager1_ShowActiveFilesList(object sender, ActiveFilesListEventArgs e)
		{
			// Create an array of menu items representing the list of windows
			MenuItem[] items = new MenuItem[e.Windows.Length];
			for (int i = 0; i < e.Windows.Length; i++)
			{
				ActiveFileMenuItem item = new ActiveFileMenuItem(e.Windows[i]);
				items[i] = item;
			}
			ContextMenu menu = new ContextMenu(items);

			// Show a context menu for the user
			menu.Show(e.Control, e.Position);

			// TODO: Ensure menu items are disposed after use
		}