public virtual void OnComponentDropped(ComponentDroppedArgs args) { if (ComponentDropped != null) { ComponentDropped(this, args); } }
/// <summary> /// components dropped on tab page panel - set the layer /// </summary> /// <param name="sender"></param> /// <param name="e"></param> internal void MgTabControl_ComponentDropped(object sender, ComponentDroppedArgs e) { int layer = GetCurrentTabControlLayer((MgTabControl)((Control)sender).Parent.Parent); foreach (Object item in e.Components) { if (item is Control) { ComponentWrapper cw = ComponentsDictionary[item]; cw.PropertiesDescriptors[Constants.WinPropLayer].SetValue(cw, layer); } } }