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
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