static void SideTabItemsExchanged(object source, SideTabItemExchangeEventArgs e) { SideTabDesigner tab = source as SideTabDesigner; ToolboxItem toolboxItem1 = e.Item1.Tag as ToolboxItem; ToolboxItem toolboxItem2 = e.Item2.Tag as ToolboxItem; if (tab != null && toolboxItem1 != null && toolboxItem2 != null) { componentLibraryLoader.ExchangeToolComponents(tab.Name, toolboxItem1.TypeName, toolboxItem2.TypeName); SaveToolbox(); } }
static void SideTabItemsExchanged(object source, SideTabItemExchangeEventArgs e) { SideTabDesigner tab = source as SideTabDesigner; ToolboxItem toolboxItem1 = e.Item1.Tag as ToolboxItem; ToolboxItem toolboxItem2 = e.Item2.Tag as ToolboxItem; if (tab != null && toolboxItem1 != null && toolboxItem2 != null) { componentLibraryLoader.ExchangeToolComponents(tab.Name, toolboxItem1.TypeName, toolboxItem2.TypeName); SaveToolbox(); } }