public frmName(iName myNameInstance) { InitializeComponent(); myName = myNameInstance; cboBoxNameTitles.Text = myName.Title; txtBoxNameFirstName.Text = myName.FirstName; txtBoxNameMiddleName.Text = myName.MiddleName; txtBoxNameSurname.Text = myName.Surname; }
private void btnUpdateCloseName_Click(object sender, EventArgs e) { //Update the instance myName.Title = cboBoxNameTitles.Text; myName.FirstName = txtBoxNameFirstName.Text; myName.MiddleName = txtBoxNameMiddleName.Text; myName.Surname = txtBoxNameSurname.Text; //Save/Update the Name instance. myName = myName.Save(); CloseNameForm(); }
public static iContact Contact(iName myName, iAddress myAddress, string myPosition, string myEmail, string myMobileNo, string myLandLineNo) { return(new Contact((Name)myName, (Address)myAddress, myPosition, myEmail, myMobileNo, myLandLineNo)); }
public static iContact Contact(iName myName, iAddress myAddress) { return(new Contact((Name)myName, (Address)myAddress)); }
public frmName() { InitializeComponent(); myName = InstanceFactory.Name(); }
public BaseHardware() { _name = new NullName(); _architecture = new NullArchitecture(); }