Wednesday, October 14, 2009

Multiple Classes and Inheritance - Semester 2 Week 8

Encapsulation - the concept of separating processing and hiding data within specific classes.

The three tier structure is divided into three tiers: Presentation, Business, and Persistence or Data Access.

Presentation Tier - contains the classes that display information for the user and accept user input.

Business Tier - contains logic and calculations that must occur in order to fulfill the requirements of the program. The classes use data entered by users and data from storage to perform the calculations.

Persistence Tier - contains code required to read and write data from storage. After the program is terminated the data gets stored in the database and therefore gets the name persistent data.

ADO.NET - Semester 2 Week 6

Database - a collection of related information stored in a structured format. The data is organised into tables. Each column is reffered to as a filed while the rows are called records. The unique field represents the primary key.

Data Binding - allows the display of each field as an object on the form.

Arrays and File Handling - Semester 2 Week 5

Arrays - variables that can store more than one value. Each item in the array that contains a value is called an element. Arrays use a subscript to identify each element in the array.

File Handling - The process of editing, selecting, deleting, or adding data into a text file or .txt. These text files are called sequential files. To open a text file, the programmer adds in an object into the System.IO called StreamReader. To write in a text file the programmer adds the object StreamWriter.

Sunday, August 16, 2009

Databases
  • Used in businesses for productive use of employee information and other use
  • Organises the information into tables
  • Rows are referred to as records
  • Columns are referred to as fields
Types of Databases

Monday, May 25, 2009

Cats And Dogs Assignment Part 1

In the Cats and Dogs Assignment we discovered some new code that we haven't used yet that allows the use of audio and visual animation. The code that we used to link up the audio with the items in the combo box was My.Computer.Audio.Play(My.Resources.cat/dog_1, AudioPlayMode.Background). For cat it was placed in the Meow method and for dog it was in the Bark method. When we were creating the animation for the cat to chase the mouse or for the dog to go walkies we placed in this bit of code; _imgPictures(0) = Image.FromFile("H:\dog/cat1.gif"). For the timer to work we had to set a label as a clock for the current time by using lblCurrentTime.Text = Now.ToString("HH:mm:ss").

Sunday, March 29, 2009

VB.net OpenFileDialog

When we use the OpneFileDialog class in VB it allows us to create a program that allows a selected file to be opened. There are other classes like the OpenFileDialog class and they include:
  • SaveFileDialog
  • FontDialog
  • ColorDialog
  • PrintDialog
  • PrintPreviewDialog
  • PageSetupDialog

UML Class Diagram

The Unified Modelling Language (UML) shows the features and attributes of the system including operations and inter-relationships between classes.
The Class Diagrams are Basically used for:
  • Analysing the requirements in the form of a model
  • Depict detailed designs of object-oriented/based software
  • Explore domain concepts in the form of a model
When your using a Class Diagram to describe a design you need to use a different style for each circumstance.