C# Class to facilitate drag drop from Outlook
$30-40 USD
Bezahlt bei Lieferung
The internet has many examples of how to handle Drag/Drop from Outlook 2007.? But I dont have time to translate these into what i need, so i am posting this project.? I need a quick turnaround.
Write a C# class that will handle all the details of Outlook 2007 drag/drop for me.? ? It will? encapsulate all the Outlook specific parsing and com stuff - so my code will remain fairly clean.? ? I propose it looks like this:
using [url removed, login to view];
using [url removed, login to view];
public class OutlookDropHandler
{
? ? ? public OutlookDropHandler(DragEventArgs args, Directory outDir)
? ? ? {
? ? ? ? ? ? ? ? // args is the object recieved? by the Drop event
? ? ? ? ? ? ? ? // outDir is a directory to store the files
? ? ? }
? ? ? ? public bool Success {get;}? // true if? drop parsed successfully
? ? ? ? public int FileCount {get;}? // return number of files
? ? ? ? public string[] FileNames {get;} // returns list of file names
? }
I would instance this object from my form's DragDrop event? like this:
private void Form1_DragDrop(object sender, DragEventArgs e)
{
? ? Directory tempDir = ...
? ? OutlookDropHandler dropHandler = new? OutlookDropHandler(e, tempDir);
? ? if ([url removed, login to view])
? ? {
? ? ? ? ? ? ? ? foreach (string fileName in [url removed, login to view])
? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? ? ? DoSomethingWithFile(fileName);
? ? ? ? ? ? ? ? }
? ? }
}
## Deliverables
Provide this class as a single C# (.cs) file.? ? Also provide a test project (VS2005) or executable (if you use VS2008) which demonstrates that it works.? This test project should have a Form which handles the drag drop from outlook 2007 and, when files are dropped on it, ? displays (in a listbox) a list of the files dropped.? The file names should retain whatever identifying information is possible.? For example, a PDF document should end if .PDF, a word document with .DOC, etc...
Projekt-ID: #2903805