コード例 #1
0
ファイル: MgGroupBox.cs プロジェクト: rinavin/RCJS
 public virtual void OnComponentDropped(ComponentDroppedArgs args)
 {
     if (ComponentDropped != null)
     {
         ComponentDropped(this, args);
     }
 }
コード例 #2
0
ファイル: RuntimeHostSurface.cs プロジェクト: rinavin/RCJS
        /// <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);
                }
            }
        }