}//public string FilenameStylesheet /// <summary>ButtonSubmit_Click().</summary> public void ButtonSubmit_Click ( Object sender, EventArgs e ) { int theWordId = -1; String exceptionMessage = null; DataSet dataSetTheWord = null; TheWordSerializationArgument theWordSerializationArgument = null; if ( TheWordId != null && TheWordId != String.Empty ) { theWordId = System.Convert.ToInt32( TheWordId ); } theWordSerializationArgument = new TheWordSerializationArgument ( theWordId, TheWordDated, FilenameXmlDocument, FilenameXmlDocumentGenerate, FilenameStylesheet ); TheWord.UtilitySerialization ( ref FilenameConfigurationXml, ref DatabaseConnectionString, ref theWordSerializationArgument, ref dataSetTheWord, ref exceptionMessage ); Feedback = exceptionMessage; }//public void ButtonSubmit_Click()
///<summary>The entry point for the application.</summary> ///<param name="argv">A list of command line arguments</param> public static void Main ( String[] argv ) { Boolean booleanParseCommandLineArguments = false; String exceptionMessage = null; DataSet dataSetTheWord = null; TheWordSerializationArgument theWordSerializationArgument = null; theWordSerializationArgument = new TheWordSerializationArgument(); booleanParseCommandLineArguments = UtilityParseCommandLineArgument.ParseCommandLineArguments ( argv, theWordSerializationArgument ); if ( booleanParseCommandLineArguments == false ) { // error encountered in arguments. Display usage message System.Console.Write ( UtilityParseCommandLineArgument.CommandLineArgumentsUsage( typeof ( TheWordSerializationArgument ) ) ); return; }//if ( booleanParseCommandLineArguments == false ) if ( theWordSerializationArgument.files.Length > TheWordSerializationArgumentFilenameXmlDocument ) { theWordSerializationArgument.filenameXmlDocument = theWordSerializationArgument.files[TheWordSerializationArgumentFilenameXmlDocument]; }//if ( theWordSerializationArgument.files.Length > TheWordSerializationArgumentFilenameXmlDocument ) if ( theWordSerializationArgument.files.Length > TheWordSerializationArgumentFilenameXmlDocumentGenerate ) { theWordSerializationArgument.filenameXmlDocumentGenerate = theWordSerializationArgument.files[TheWordSerializationArgumentFilenameXmlDocumentGenerate]; }//if ( theWordSerializationArgument.files.Length > TheWordSerializationArgumentFilenameXmlDocumentGenerate ) if ( theWordSerializationArgument.files.Length > TheWordSerializationArgumentFilenameStylesheet ) { theWordSerializationArgument.filenameStylesheet = theWordSerializationArgument.files[TheWordSerializationArgumentFilenameStylesheet]; }//if ( theWordSerializationArgument.files.Length > TheWordSerializationArgumentFilenameStylesheet ) #if (DEBUG) System.Console.WriteLine ( "Argument TheWordId: {0} | Dated: {1} | FilenameXmlDocument: {2} | FilenameXmlDocumentGenerate: {3} | FilenameStylesheet: {4} | Files: {5}", theWordSerializationArgument.theWordId, theWordSerializationArgument.dated, theWordSerializationArgument.filenameXmlDocument, theWordSerializationArgument.filenameXmlDocumentGenerate, theWordSerializationArgument.filenameStylesheet, theWordSerializationArgument.files ); #endif TheWord.UtilitySerialization ( ref FilenameConfigurationXml, ref DatabaseConnectionString, ref theWordSerializationArgument, ref dataSetTheWord, ref exceptionMessage ); }//static void Main( String[] argv )