Exemple #1
0
        /// <summary>
        /// Called on drag and drop event
        /// </summary>
        /// <param name="e">Event args</param>
        protected virtual void OnDragDrop(DragEventArgs e)
        {
            IInstancingContext   instancingContext = m_rootAssetFolder.As <IInstancingContext>();
            IEnumerable <object> converted         = ApplicationUtil.Convert(e.Data, instancingContext, m_dataObjectConverters);

            ApplicationUtil.Drop(converted, instancingContext, m_statusService);
        }
Exemple #2
0
        private void thumbnailControl_DragDrop(object sender, DragEventArgs e)
        {
            m_lastHit = m_currentAssetFolder;
            IInstancingContext   instancingContext = m_rootAssetFolder.As <IInstancingContext>();
            IEnumerable <object> converted         = ApplicationUtil.Convert(e.Data, instancingContext, m_dataObjectConverters);

            ApplicationUtil.Drop(converted, instancingContext, m_statusService);
        }
Exemple #3
0
        /// <summary>
        /// Called on dragging mouse over event
        /// </summary>
        /// <param name="e">Event args</param>
        protected virtual void OnDragOver(DragEventArgs e)
        {
            e.Effect = DragDropEffects.None;
            IInstancingContext instancingContext = m_rootAssetFolder.As <IInstancingContext>();
            IEnumerable        converted         = ApplicationUtil.Convert(e.Data, instancingContext, m_dataObjectConverters);

            if (converted != null)
            {
                e.Effect = DragDropEffects.Move;
            }
        }
Exemple #4
0
        private void thumbnailControl_DragOver(object sender, DragEventArgs e)
        {
            e.Effect  = DragDropEffects.None;
            m_lastHit = m_currentAssetFolder;
            IInstancingContext instancingContext = m_rootAssetFolder.As <IInstancingContext>();
            IEnumerable        converted         = ApplicationUtil.Convert(e.Data, instancingContext, m_dataObjectConverters);

            if (converted != null)
            {
                e.Effect = DragDropEffects.Move;
            }
        }