예제 #1
0
 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);
         }
     }
 }
예제 #2
0
 public LayoutSelectionEventArgs(object item = null, LayoutSelectionChange type = LayoutSelectionChange.Add)
     : base()
 {
     Type  = type;
     Value = item;
 }