I am trying to build, deploy, and the run another process against a Database all under one button. The problem is that I don't know when the DeployMetaData is finished before moving on.
Is there a way for me to know that the process has finished from within c#?
As always thanks for the help
-Cory Cory Cookson
Software Developer
Occupational Health Research
I am currently having issues opening the solution for the Database INstaller (tells me that the vbproj files don't exists) but I have opened up the files in the solution seperately as well as serached the project files through Widows search for "BuildComplete" as this is the event that I'd like to use and am unable to find an example of it.
Could someone post an example of how to create the event handler and use this event?
Thanks for all the help,
Cory
Not sure why you can't open the solution. Maybe you could try installing them again.
Anyway, if you can open the project, go to the SampleDataInstallerClass and have a look at the code of the DataProgress.vc (or DataProgress.cs, as I think you are doing C#) and check how the _DatabaseSetup is declared as MicroFour.StrataFrame.DBEngine.SQL.DatabaseMigrator.
If you check the "Handled Events" region, you will find a _DatabaseSetup_DeployDataComplete routine, that closes the form when done.
''' <summary> ''' Indicates that the data deployment started by the DeployData command is complete ''' </summary> ''' <param name="e"></param> ''' <remarks></remarks> Private Sub _DatabaseSetup_DeployDataComplete(ByVal e As MicroFour.StrataFrame.DBEngine.SQL.SQLManagerEventArgs) Handles _DatabaseSetup.DeployDataComplete '-- Since we are finished, close the form with a good result DialogResult = Windows.Forms.DialogResult.OK End Sub