void IMouseProcessor.PostprocessDrop(DragEventArgs e)
 {
     foreach (var controller in GetControllersForView(TextView))
     {
         IMouseProcessor customProcessor = controller.CustomMouseProcessor;
         if (customProcessor != null)
             customProcessor.PostprocessDrop(e);
     }
 }
 private void udtEditor_Drop(object sender, System.Windows.DragEventArgs e)
 {
     if (_dragDropController.GetDragDropFileNode(e.Data) is Libraries.BauSparkScripts.ViewModels.Solutions.Explorers.Connections.NodeTableViewModel tableNodeViewModel)
     {
         udtEditor.InsertText(tableNodeViewModel.GetSqlSelect(e.KeyStates == System.Windows.DragDropKeyStates.ShiftKey),
                              e.GetPosition(udtEditor));
     }
     else if (_dragDropController.GetDragDropFileNode(e.Data) is Libraries.BauSparkScripts.ViewModels.Solutions.Explorers.Connections.NodeTableFieldViewModel fieldNodeViewModel)
     {
         udtEditor.InsertText(fieldNodeViewModel.GetSqlSelect(e.KeyStates == System.Windows.DragDropKeyStates.ShiftKey),
                              e.GetPosition(udtEditor));
     }
     else if (_dragDropController.GetDragDropFileNode(e.Data) is Libraries.BauSparkScripts.ViewModels.Solutions.Explorers.Files.NodeFileViewModel fileNodeViewModel)
     {
         udtEditor.InsertText(fileNodeViewModel.GetSqlSelect(e.KeyStates == System.Windows.DragDropKeyStates.ShiftKey),
                              e.GetPosition(udtEditor));
     }
 }
Example #3
0
        private void Grid_Drop(object sender, System.Windows.DragEventArgs e)
        {
            Mouse.OverrideCursor = Cursors.Wait;

            string channelName = e.Data.GetData(typeof(string)).ToString();

            var group = GroupManager.GetGroup(ChartName);

            if (group != null)
            {
                if (group.GetAttribute(channelName) == null)
                {
                    GroupManager.GetGroup(ChartName).AddAttribute(channelName, ColorManager.GetChartColor, 1);
                }
            }
            else
            {
                if (!channelNames.Contains(channelName))
                {
                    channelNames.Add(channelName);

                    string oldName = ChartName;

                    var temporaryGroup = GroupManager.GetGroup($"Temporary{GroupManager.TemporaryGroupIndex}");

                    while (temporaryGroup != null)
                    {
                        GroupManager.TemporaryGroupIndex++;
                        temporaryGroup = GroupManager.GetGroup($"Temporary{GroupManager.TemporaryGroupIndex}");
                    }

                    ChartName = $"Temporary{GroupManager.TemporaryGroupIndex}";

                    GroupManager.AddGroup(GroupManager.MakeGroupWirhAttributes(ChartName, channelNames));
                    ((DriverlessMenu)MenuManager.GetTab(TextManager.DriverlessMenuName).Content).ReplaceChannelWithTemporaryGroup(oldName, ChartName);
                }
            }

            GroupManager.SaveGroups();
            ((GroupSettings)((SettingsMenu)MenuManager.GetTab(TextManager.SettingsMenuName).Content).GetTab(TextManager.GroupsSettingsName).Content).InitGroups();
            ((DriverlessMenu)MenuManager.GetTab(TextManager.DriverlessMenuName).Content).BuildCharts();

            Mouse.OverrideCursor = null;
        }
Example #4
0
 /// <summary>
 /// Process the drag over event.
 /// </summary>
 /// <param name="sender">Object that raised the event.</param>
 /// <param name="e">Event arguments.</param>
 private void View_DragOver(object sender, System.Windows.DragEventArgs e)
 {
     string[] formats = e.Data.GetFormats();
     if (formats != null && formats.Contains("SalesForceData.SourceFile[]"))
     {
         e.Effects = System.Windows.DragDropEffects.Copy;
         e.Handled = true;
     }
     else if (formats != null && formats.Contains("SalesForceData.Manifest[]"))
     {
         e.Effects = System.Windows.DragDropEffects.Copy;
         e.Handled = true;
     }
     else
     {
         e.Effects = System.Windows.DragDropEffects.None;
         e.Handled = true;
     }
 }
Example #5
0
        private void _imageViewerControl_Drop(object sender, System.Windows.DragEventArgs e)
        {
            // Obtaining the Guid of the dropped camera like this
            var cameraGuidList = e.Data.GetData("VideoOS.RemoteClient.Application.DragDrop.DraggedDeviceIdList") as List <Guid>;

            if (cameraGuidList != null && cameraGuidList.Any())
            {
                _viewItemManager.SelectedCamera = Configuration.Instance.GetItem(cameraGuidList[0], Kind.Camera);
                ViewItemManagerPropertyChangedEvent(null, null);
                e.Handled = true;
            }
            else
            {
                MessageBox.Show("DragDrop: the only supported dragged content for this plugin is a camera");

                // Keeping this false lets the SmartClient to continue handling this event (in the case if you dropped another plugin, it will change to this plugin in the view)
                e.Handled = false;
            }
        }
Example #6
0
        void CurrentScheduler_Drop(object sender, System.Windows.DragEventArgs e)
        {
            if (downHitInfo == null)
            {
                return;
            }
            ISchedulerHitInfo dropHitInfo = SchedulerHitInfo.CreateSchedulerHitInfo(CurrentScheduler, e.GetPosition(CurrentScheduler));

            if (dropHitInfo.HitTest == DevExpress.XtraScheduler.Drawing.SchedulerHitTest.ResourceHeader)
            {
                Resource targetResource = dropHitInfo.ViewInfo.Resource;
                Resource sourceResource = downHitInfo.ViewInfo.Resource;
                if (targetResource != sourceResource)
                {
                    int sourceResourceSortOrder = Convert.ToInt32(sourceResource.CustomFields[CustomFieldName]);
                    sourceResource.CustomFields[CustomFieldName] = targetResource.CustomFields[CustomFieldName];
                    targetResource.CustomFields[CustomFieldName] = sourceResourceSortOrder;
                    ApplySorting();
                }
            }
        }
Example #7
0
        private void Grid_Drop(object sender, System.Windows.DragEventArgs e)
        {
            e.Handled = true;
            string[] paths = (string[])e.Data.GetData(System.Windows.DataFormats.FileDrop);

            if (paths.Length != 1)
            {
                UIService.ShowMessage("Please drop one directory only");
                return;
            }
            string repository_path = paths[0];

            if (Util.IsValidGitDirectory(repository_path) == false)
            {
                if (UIService.AskAndGitInit(repository_path) == false)
                {
                    return;
                }
            }
            new_tab_result_(repository_path);
        }
        private void FileDrop(object sender, System.Windows.DragEventArgs e)
        {
            if (e.Data.GetDataPresent(System.Windows.DataFormats.FileDrop))
            {
                var arr = e.Data.GetData(System.Windows.DataFormats.FileDrop) as string[];

                if (arr != null)
                {
                    var viewModel = this.DataContext as ApplicationViewModel;

                    if (viewModel == null)
                    {
                        return;
                    }

                    foreach (var s in arr)
                    {
                        viewModel.LoadReplay(s);
                    }
                }
            }
        }
Example #9
0
        public void DropHandler(DragEventArgs e)
        {
            if (!e.Data.GetDataPresent(DataFormats.FileDrop))
            {
                return;
            }

            string[] droppedFilePaths = e.Data.GetData(DataFormats.FileDrop, true) as string[];
            if (droppedFilePaths == null || droppedFilePaths.Length == 0)
            {
                return;
            }
            try
            {
                ReloadDataGrid(droppedFilePaths);
            }
            catch (Exception ex)
            {
                logger.ErrorException("DropHandler", ex);
                MessageBox.Show(ex.Message);
            }
        }
Example #10
0
        /// <summary>
        /// Process the drop event.
        /// </summary>
        /// <param name="sender">Object that raised the event.</param>
        /// <param name="e">Event arguments.</param>
        private void View_Drop(object sender, System.Windows.DragEventArgs e)
        {
            string[] formats = e.Data.GetFormats();
            if (formats != null && formats.Contains("SalesForceData.SourceFile[]"))
            {
                SalesForceData.SourceFile[] files = e.Data.GetData("SalesForceData.SourceFile[]") as SalesForceData.SourceFile[];
                foreach (SalesForceData.SourceFile file in files)
                {
                    Files.Add(file);
                }

                IsDirty = true;
            }
            else if (formats != null && formats.Contains("SalesForceData.Manifest[]"))
            {
                Manifest[] manifests = e.Data.GetData("SalesForceData.Manifest[]") as Manifest[];
                string     message   = "Merge the selected manifest with this one?";
                if (manifests.Length > 1)
                {
                    message = String.Format("Merge the {0} selected manifests with this one?", manifests.Length);
                }

                if (App.MessageUser(message,
                                    "Merge Manifests",
                                    System.Windows.MessageBoxImage.Question,
                                    new string[] { "Yes", "No" }) == "Yes")
                {
                    foreach (Manifest m in manifests)
                    {
                        Merge(m);
                    }

                    IsDirty = true;
                }
            }
        }
Example #11
0
 public void PostprocessDrop(System.Windows.DragEventArgs e)
 {
 }
Example #12
0
 public void PreprocessDragOver(System.Windows.DragEventArgs e)
 {
 }
Example #13
0
 public void PreprocessDragLeave(System.Windows.DragEventArgs e)
 {
 }
Example #14
0
 public void PreprocessDrop(System.Windows.DragEventArgs args)
 {
 }
Example #15
0
        private void TabItem_DragOver(object sender, System.Windows.DragEventArgs e)
        {
            TabItem tabitem = sender as TabItem;

            tabitem.IsSelected = true;
        }
Example #16
0
        public async void FileDropped(DragEventArgs e)
        {
            string[] fileNames = (string[])e.Data.GetData("FileDrop");

            await InstallAddon(fileNames);
        }
Example #17
0
        public void UploadFileStep1(int ProjectId, int TaskId, System.Windows.DragEventArgs e, bool TaskExists)
        {
            uploaded_files_project_id = ProjectId;
            uploaded_files_task_id    = TaskId;


            string location = "";

            //Get project name for location
            string projectName = "";

            string        SlctProjectNameStr = "Select name from projects where id = @id";
            NpgsqlCommand SlctProjectName    = new NpgsqlCommand(SlctProjectNameStr, log_in_form.prisijungimas);

            SlctProjectName.Parameters.AddWithValue("@id", ProjectId);

            if (log_in_form.prisijungimas.State != System.Data.ConnectionState.Open)
            {
                log_in_form.prisijungimas.Open();
            }

            using (NpgsqlDataReader dr = SlctProjectName.ExecuteReader())
            {
                while (dr.Read())
                {
                    projectName = dr[0].ToString();
                    uploaded_files_project_name = projectName;
                }
                dr.Close();
            }

            projectName = projectName + "/";

            location = projectName;

            if (TaskExists)
            {
                //Get Task name for location
                string taskName = "";

                string        SlctTaskNameStr = "Select name from tasks where id = @id";
                NpgsqlCommand SlctTasktName   = new NpgsqlCommand(SlctTaskNameStr, log_in_form.prisijungimas);

                try
                {
                    SlctTasktName.Parameters.AddWithValue("@id", TaskId);
                }
                catch (Exception exception)
                {
                    throw;
                }


                if (log_in_form.prisijungimas.State != System.Data.ConnectionState.Open)
                {
                    log_in_form.prisijungimas.Open();
                }

                using (NpgsqlDataReader dr = SlctTasktName.ExecuteReader())
                {
                    while (dr.Read())
                    {
                        taskName = dr[0].ToString();
                        uploaded_files_task_name = taskName;
                    }
                    dr.Close();
                }
                taskName = taskName + "/";

                location = projectName + taskName;
            }

            if (e.Data.GetDataPresent(DataFormats.FileDrop))
            {
                string[] files = (string[])e.Data.GetData(DataFormats.FileDrop);

                UploadFileStep2(files, location, TaskExists);
            }
        }
Example #18
0
 private void udtEditor_DragEnter(object sender, System.Windows.DragEventArgs e)
 {
     e.Effects = System.Windows.DragDropEffects.All;
 }
Example #19
0
 private void rtb_DragLeave(object sender, System.Windows.DragEventArgs e)
 {
     VisualStateManager.GoToState(this, "Normal", true);
 }
Example #20
0
 /// <summary>
 /// This method is called when a drag drop item is dropped over this node.
 /// </summary>
 /// <param name="e">The drag drop item that was dropped.</param>
 public virtual void Drop(System.Windows.DragEventArgs e)
 {
 }
Example #21
0
 /// <summary>
 /// This method is called when a drag drop item is dragged over this node.
 /// </summary>
 /// <param name="e">The drag drop item.</param>
 public virtual void DragOver(System.Windows.DragEventArgs e)
 {
     e.Effects = System.Windows.DragDropEffects.None;
 }
Example #22
0
 private void Grid_DragOver(object sender, System.Windows.DragEventArgs e)
 {
     e.Effects = System.Windows.DragDropEffects.All;
 }
Example #23
0
        public bool TryGetQuery(System.Windows.DragEventArgs e, ref string query, ref InputQueryType type)
        {
            StringBuilder sb = new StringBuilder();

            query = "";
            type  = InputQueryType.Unknown;
            if (e.Data.GetDataPresent("Text", true))
            {
                sb.AppendLine("Text:" + e.Data.GetData("Text", true));
                query = e.Data.GetData("Text", true).ToString();
                type  = InputQueryType.Text;
                return(true);
            }
            if (e.Data.GetDataPresent("text/html", true))
            {
                sb.AppendLine("text/html:" + e.Data.GetData("text/html", true));
            }
            if (e.Data.GetDataPresent("text/x-moz-url", true))
            {
                sb.AppendLine("text/x-moz-url:" + e.Data.GetData("text/x-moz-url", true));
            }
            if (e.Data.GetDataPresent("text/html", true))
            {
                sb.AppendLine("text/html:" + e.Data.GetData("text/html", true));
            }
            if (e.Data.GetDataPresent("HTML Format", true))
            {
                sb.AppendLine("HTML Format:" + e.Data.GetData("HTML Format", true));
            }
            if (e.Data.GetDataPresent("UniformText", true))
            {
                sb.AppendLine("UniformText:" + e.Data.GetData("UniformText", true));
            }
            if (e.Data.GetDataPresent("FileName", true))
            {
                sb.AppendLine("FileName:" + e.Data.GetData("FileName", true));
            }
            if (e.Data.GetDataPresent("FileNameW", true))
            {
                sb.AppendLine("FileNameW:" + e.Data.GetData("FileNameW", true));
            }
            if (e.Data.GetDataPresent("FileName", true))
            {
                sb.AppendLine("FileName:" + string.Join("; ", (String[])e.Data.GetData("FileName", true)));
            }
            if (e.Data.GetDataPresent("FileNameW", true))
            {
                sb.AppendLine("FileNameW:" + string.Join("; ", (String[])e.Data.GetData("FileNameW", true)));
                object   data = e.Data.GetData("FileNameW", true);
                String[] strs = data as String[];
                if (strs != null && strs.Length > 0)
                {
                    string filepath = strs[strs.Length - 1];
                    try
                    {
                        filepath = System.IO.Path.GetFileName(filepath);
                    }
                    catch (System.Exception exception) {
                        App.Logger.Warn("Cannot handle: " + filepath);
                        App.Logger.Warn(exception.Message);
                        App.Logger.Warn(exception.StackTrace);
                    }
                    query = filepath;
                    type  = InputQueryType.FileName;
                    return(true);
                }
            }
            if (e.Data.GetDataPresent("UniformResourceLocator", true))
            {
                sb.AppendLine("UniformResourceLocator:" + e.Data.GetData("UniformResourceLocator", true));
            }
            if (e.Data.GetDataPresent("UniformResourceLocatorW", true))
            {
                sb.AppendLine("UniformResourceLocatorW:" + e.Data.GetData("UniformResourceLocatorW", true));
                query = e.Data.GetData("UniformResourceLocatorW", true).ToString();
                type  = InputQueryType.HttpUri;
                return(true);
            }
            return(false);
        }
 private void WindowClientRasterWriteToFileButton_Drop(object sender, System.Windows.DragEventArgs e)
 {
     WindowClientRasterWriteToFile(Bib3.FCL.Glob.DataiPfaadAlsKombinatioonAusSctandardPfaadUndFileDrop(WindowClientRasterFileName, e));
 }
Example #25
0
 private void htmlRtb_DragEnter(object sender, DragEventArgs e)
 {
     if (e.Data.GetDataPresent(DataFormats.FileDrop))
     {
         e.Effects = DragDropEffects.Link;
     }
     else
     {
         e.Effects = DragDropEffects.None;
     }
 }
 private void RadioButton_DragOver(object sender, System.Windows.DragEventArgs e)
 {
     /*RadioButton rb = sender as RadioButton;
      * rb.IsChecked = true;*/
 }
Example #27
0
 public void PostprocessDragOver(System.Windows.DragEventArgs args)
 {
 }
Example #28
0
 private void rtb_DragEnter(object sender, System.Windows.DragEventArgs e)
 {
     VisualStateManager.GoToState(this, "DragOver", true);
 }
        public List <UploadItem> GetUploadItems(string webURL, ISiteSetting siteSetting, Folder destinationFolder, System.Windows.DragEventArgs e, GetFieldMappings getFieldMappings)
        {
            try
            {
                IServiceManager serviceManager = ServiceManagerFactory.GetServiceManager(siteSetting.SiteSettingType);
                //List<Field> fieldCollection = serviceManager.GetFields(destinationFolder).GetEditableFields();
                List <ContentType> contentTypes = serviceManager.GetContentTypes(siteSetting, destinationFolder, false);

                if (e.Data.GetDataPresent(System.Windows.DataFormats.FileDrop, false) == true)
                {
                    // Files are dragged from outside Outlook
                    List <UploadItem> uploadItems = new List <UploadItem>();
                    string[]          fileNames   = (string[])e.Data.GetData(System.Windows.DataFormats.FileDrop);
                    // handle each file passed as needed
                    foreach (string fileName in fileNames)
                    {
                        Dictionary <object, object> fileFields = new Dictionary <object, object>();
                        FileInfo info = new FileInfo(fileName);
                        fileFields.Add("Name", info.Name);
                        fileFields.Add("CreationTime", info.CreationTime.ToLongDateString()); //TODO: Date formatting may be optional
                        fileFields.Add("CreationTimeUtc", info.CreationTimeUtc.ToLongDateString());
                        fileFields.Add("DirectoryName", info.DirectoryName);
                        fileFields.Add("Extension", info.Extension);
                        fileFields.Add("FullName", info.FullName);
                        fileFields.Add("LastWriteTime", info.LastWriteTime.ToLongDateString());
                        fileFields.Add("LastWriteTimeUtc", info.LastWriteTimeUtc.ToLongDateString());
                        fileFields.Add("Length", info.Length.ToString());

                        UploadItem uploadItem = new UploadItem();
                        uploadItem.UniqueID = Guid.NewGuid();
                        //uploadItem.ContentType = user defined //SharePointManager.GetContentTypes(folder.SiteSetting, folder.WebUrl, folder.ListName);
                        //uploadItem.FieldInformations = field -> value mapping
                        uploadItem.FieldInformations = new System.Collections.Generic.Dictionary <object, object>();
                        //                        //uploadItem.FieldInformations.Add(fieldCollection[0], fileName);
                        //                      //uploadItem.FieldInformations.Add(fieldCollection[1], fileName);
                        uploadItem.FilePath = fileName;
                        uploadItem.Folder   = destinationFolder;
                        //uploadItem.Fields = not needed //SharePointManager.GetFields(dragedSPFolder.SiteSetting, dragedSPFolder.WebUrl, dragedSPFolder.ListName);
                        //uploadItem.UniqueID = Unique ID used in UI for delegate status update (uploading -> done)
                        uploadItems.Add(uploadItem);
                    }
                    return(uploadItems);
                }
                else if (e.Data.GetDataPresent("FileGroupDescriptorW"))
                {
                    string[] fileFieldsData        = null;
                    string[] fileFieldsKeys        = null;
                    bool     isApplicationFileDrop = e.Data.GetDataPresent(typeof(string));

                    if (isApplicationFileDrop)
                    {
                        // Application files are dragged
                        string[] separator = { "\r\n" };
                        fileFieldsData = ((string)e.Data.GetData(typeof(string))).Split(separator, StringSplitOptions.None);
                        fileFieldsKeys = fileFieldsData[0].Split('\t');
                    }

                    List <UploadItem> uploadItems = new List <UploadItem>();
                    string            tempPath    = Path.GetTempPath();

                    string[]       filenames;
                    MemoryStream[] filestreams;
                    GetApplicationDragDropInformation(e.Data, out filenames, out filestreams);
                    List <ApplicationItemProperty> generalProperties = GetApplicationFields(null);
                    ContentType contentType;

                    FolderSettings folderSettings       = ConfigurationManager.GetInstance().GetFolderSettings(ApplicationContext.Current.GetApplicationType()).GetRelatedFolderSettings(destinationFolder.GetUrl());
                    FolderSetting  defaultFolderSetting = ConfigurationManager.GetInstance().GetFolderSettings(ApplicationContext.Current.GetApplicationType()).GetDefaultFolderSetting();

                    Dictionary <object, object> fieldMappings;
                    string initialFileName = tempPath + filenames[0];

                    if (Path.GetExtension(initialFileName) == ".msg")//this is a mail
                    {
                        fieldMappings = getFieldMappings(destinationFolder.GetWebUrl(), generalProperties, contentTypes, folderSettings, defaultFolderSetting, siteSetting, destinationFolder.GetUrl(), out contentType, false);
                    }
                    else//this an attachement
                    {
                        fieldMappings = getFieldMappings(destinationFolder.GetWebUrl(), null, contentTypes, folderSettings, defaultFolderSetting, siteSetting, destinationFolder.GetUrl(), out contentType, true);
                    }

                    if (fieldMappings == null || fieldMappings.Count == 0)
                    {
                        return(null);
                    }

                    for (int fileIndex = 0; fileIndex < filenames.Length; fileIndex++)
                    {
                        //use the fileindex to get the name and data stream
                        string       filename   = tempPath + filenames[fileIndex];
                        MemoryStream filestream = filestreams[fileIndex];

                        //save the file stream using its name to the application path
                        FileStream outputStream = File.Create(filename);
                        filestream.WriteTo(outputStream);
                        outputStream.Close();

                        FileInfo tempFile = new FileInfo(filename);

                        // always good to make sure we actually created the file
                        if (tempFile.Exists == true)
                        {
                            Hashtable fileFields = new Hashtable();
                            if (isApplicationFileDrop)
                            {
                                // Application files are dragged
                                string[] fileFieldsValues = fileFieldsData[fileIndex + 1].Split('\t');
                                for (int i = 0; i < fileFieldsKeys.Count() - 1; i++)
                                {
                                    fileFields.Add(fileFieldsKeys[i], fileFieldsValues[i]);
                                }
                            }
                            else
                            {
                                //Application attachments are dragged
                                fileFields.Add("Name", filenames[fileIndex]);
                            }

                            UploadItem uploadItem = new UploadItem();
                            uploadItem.UniqueID          = Guid.NewGuid();
                            uploadItem.FieldInformations = new System.Collections.Generic.Dictionary <object, object>();

                            if (Path.GetExtension(filename) == ".msg")
                            {//for message mapping needed
                                List <ApplicationItemProperty> properties = GetApplicationFields(filename);

                                foreach (Field field in fieldMappings.Keys)
                                {
                                    object obj   = fieldMappings[field];
                                    object value = string.Empty;
                                    if (obj is ApplicationItemProperty)
                                    {
                                        value = properties.FirstOrDefault(p => p.Name == ((ApplicationItemProperty)obj).Name).Value;
                                    }
                                    else
                                    {
                                        value = obj;
                                    }
                                    uploadItem.FieldInformations.Add(field, value);
                                }
                            }
                            else
                            {//for single attachement file
                                uploadItem.FieldInformations = fieldMappings;
                            }

                            uploadItem.Folder      = destinationFolder;
                            uploadItem.ContentType = contentType;
                            List <UploadItem> additionalItems = SetUploadItemFilePath(tempPath, filename, uploadItem);
                            //uploadItem.Fields = not needed //SharePointManager.GetFields(dragedSPFolder.SiteSetting, dragedSPFolder.WebUrl, dragedSPFolder.ListName);
                            //uploadItem.UniqueID = Unique ID used in UI for delegate status update (uploading -> done)
                            uploadItems.Add(uploadItem);

                            if (additionalItems != null)
                            {
                                foreach (UploadItem item in additionalItems)
                                {
                                    uploadItems.Add(item);
                                }
                            }

                            //tempFile.Delete(); TODO: cannot delete so soon, delete later
                        }
                        else
                        {
                            //Trace.WriteLine("File was not created!");
                        }
                    }
                    return(uploadItems);
                }
            }
            catch (Exception ex)
            {
                int y = 3;
                //Trace.WriteLine("Error in DragDrop function: " + ex.Message);
                // don't use MessageBox here - Outlook or Explorer is waiting !
            }

            return(null);
        }
Example #30
0
 protected override void OnDrop(System.Windows.DragEventArgs e)
 {
 }
Example #31
0
 protected override void OnDragEnter(System.Windows.DragEventArgs e)
 {
     base.OnDragEnter(e);
 }
Example #32
0
 private void daxEditor_DragEnter(object sender, System.Windows.DragEventArgs e)
 {
     System.Diagnostics.Debug.WriteLine("DragEnter Event");
 }
Example #33
0
        private void htmlRtb_DragDrop(object sender, DragEventArgs e)
        {
            var arrayFileName = (Array)e.Data.GetData(DataFormats.FileDrop);

            string strFileName = arrayFileName.GetValue(0).ToString();

            var data = (string[])e.Data.GetData(DataFormats.FileDrop);
            _thisForm.openfiles(data);
        }