|
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace DemoApplication1
{
public partial class DetailForm : Form
{
public DetailForm()
{
InitializeComponent();
}
internal void ReadIndividual(Individual individual)
{
tbFirstname.Text = individual.FIRSTNAME;
tbMiddlename.Text = individual.MIDDLENAME;
tbLastname.Text = individual.LASTNAME;
tbDateOfBirth.Text = individual.DOB.ToShortDateString();
tbState.Text = individual.STATE;
}
internal void WriteIndividual(Individual individual)
{
individual.FIRSTNAME = tbFirstname.Text;
individual.MIDDLENAME = tbMiddlename.Text;
individual.LASTNAME = tbLastname.Text;
DateTime.TryParse(tbDateOfBirth.Text, out individual.DOB);
individual.STATE = tbState.Text;
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I am a French programmer.
These days I spend most of my time with the .NET framework, JavaScript and html.