Example #1
0
    /// <summary>Instantiates the required object.</summary>
    /// <param name="classFullName">The full name (namespace + class name) of the task class.</param>
    /// <returns>The new object.</returns>
    public MyCustomObject CreateCustomObject()
    {
        MyCustomObject instance = new MyCustomObject();

        // do whatever you want with the instance here
        return(instance);
    }
Example #2
0
        public static MyCustomObject GetTableNameHere(object Parameter)
        {
            //Pre-step: Replace the general object parameter with the appropriate data type parameter for retrieving a specific item from the specific database table.
            string SQLStatement = String.Empty;

            //Change the MyCustomObject references  to your customer business object
            MyCustomObject objTemp = new MyCustomObject();


            //Step #1: Add code to call the appropriate method from the inherited AccessDataSQLServer class
            //To return a database connection object

            //Step #2: Code logic to create appropriate SQL Server objects calls
            //         Code logic to retrieve data from database
            //         Add Try..Catch appropriate block and throw exception back to calling program

            //Step #3: Return the objtemp variable back to the calling UI
            return(objTemp);
        }
Example #3
0
 public void reset()
 {
     myCustomString = "Default";
     myCustomObject = new MyCustomObject(0, 0, 0);
 }
	// PUBLIC
	/// <summary>
	/// Reset this instance.
	/// </summary>
	public void reset () 
	{
		myCustomString = "";
		myCustomObject = new MyCustomObject( 11.11f, 12.12f, 13.13f);
		
	}
Example #5
0
 // PUBLIC
 /// <summary>
 /// Reset this instance.
 /// </summary>
 public void reset()
 {
     myCustomString = "";
     myCustomObject = new MyCustomObject(11.11f, 12.12f, 13.13f);
 }
Example #6
0
 public MyException(MyCustomObject customObject)
 {
     CustomObject = customObject;
 }
Example #7
0
 public MyException(string message, Exception inner, MyCustomObject customObject)
     : base(message, inner)
 {
     CustomObject = customObject;
 }
Example #8
0
 public MyException(string message, MyCustomObject customObject)
     : base(message)
 {
     CustomObject = customObject;
 }