User dialog input with IGraphDataProvider2

Sep 29, 2014 at 4:47 PM
Hello all,
first of all thank you all for this incredible project!
I have built my very first custom graph data provider DLL but now I need user input via a dialog box before calling the TryGetGraphDataAsTemporaryFile .
Is this a limitation by design and what do I do next?

Sep 29, 2014 at 10:06 PM

you can add dialogs just like any other windows forms application. You can show the dialog you added to the project in the TryGetGraphDataAsTemporaryFile method. After the user has finished with the input and clicks OK (or any button), you then can continue with the creation of the network and save it to a temporary file.
An example of the implementation of TryGetGraphDataAsTemporaryFile:
public Boolean
        out string pathToTemporaryFile

        pathToTemporaryFile = null;
        //create and show the dialog
        CustomDialog theDialog = new CustomDialog();       
        //this code will be executed after the dialog is closed

        //TODO: create the network here

        //File to save the created XML file
        pathToTemporaryFile = System.IO.Path.GetTempFileName();
            return (true);

        return (false);

Marked as answer by epokh on 10/1/2014 at 9:42 AM
Oct 1, 2014 at 4:42 PM
Hello arber,
thank you somehow I thought that I couldn't use Windows form.
Now everything is fine!

Thanks for the speedy reply.