// <summary>
 //     Helper method used to show the ProgressDialog and collect return type information about sprocs
 // </summary>
 // <param name="owner">Window that owns the dialog</param>
 // <param name="newFunctionEntries">list of Functions for which we should collect information</param>
 // <param name="modelBuilderSettings">ModelBuilderSettings where collected information will be stored</param>
 public static DialogResult ShowProgressDialog(
     IWin32Window owner, IList<EntityStoreSchemaFilterEntry> newFunctionEntries, ModelBuilderSettings modelBuilderSettings)
 {
     var args = new GatherAndReturnSprocInfo(newFunctionEntries, modelBuilderSettings);
     using (var pd = new ProgressDialog(
         Design.Resources.RetrievingSprocReturnTypeProgressDialogTitle,
         Design.Resources.RetrievingSprocReturnTypeProgressDialogDescription,
         Design.Resources.RetrievingSprocReturnTypeProgressDialogInitialStatus, GatherAndStoreSchemaProcedureInformation, args))
     {
         return pd.ShowDialog(owner);
     }
 }
Exemple #2
0
        /// <summary>
        ///     Helper method used to show the ProgressDialog and collect return type information about sprocs
        /// </summary>
        /// <param name="owner">Window that owns the dialog</param>
        /// <param name="newFunctionEntries">list of Functions for which we should collect information</param>
        /// <param name="modelBuilderSettings">ModelBuilderSettings where collected information will be stored</param>
        internal static DialogResult ShowProgressDialog(
            IWin32Window owner, IList <EntityStoreSchemaFilterEntry> newFunctionEntries, ModelBuilderSettings modelBuilderSettings)
        {
            var args = new GatherAndReturnSprocInfo(newFunctionEntries, modelBuilderSettings);

            using (var pd = new ProgressDialog(
                       Design.Resources.RetrievingSprocReturnTypeProgressDialogTitle,
                       Design.Resources.RetrievingSprocReturnTypeProgressDialogDescription,
                       Design.Resources.RetrievingSprocReturnTypeProgressDialogInitialStatus, GatherAndStoreSchemaProcedureInformation, args))
            {
                return(pd.ShowDialog(owner));
            }
        }