public void OnSelectionChanged(LayoutSelectionChange type, object item = null) { if (SelectionChanged != null) { if (GuiService.InvokeRequired) { Xwt.Application.Invoke(() => OnSelectionChanged(type, item)); } else { cacheArg.Type = type; cacheArg.Value = item; SelectionChanged(this, cacheArg); } } }
public LayoutSelectionEventArgs(object item = null, LayoutSelectionChange type = LayoutSelectionChange.Add) : base() { Type = type; Value = item; }