Exemplo n.º 1
0
        public frmName(iName myNameInstance)
        {
            InitializeComponent();

            myName = myNameInstance;

            cboBoxNameTitles.Text     = myName.Title;
            txtBoxNameFirstName.Text  = myName.FirstName;
            txtBoxNameMiddleName.Text = myName.MiddleName;
            txtBoxNameSurname.Text    = myName.Surname;
        }
Exemplo n.º 2
0
        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();
        }
Exemplo n.º 3
0
 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));
 }
Exemplo n.º 4
0
 public static iContact Contact(iName myName, iAddress myAddress)
 {
     return(new Contact((Name)myName, (Address)myAddress));
 }
Exemplo n.º 5
0
        public frmName()
        {
            InitializeComponent();

            myName = InstanceFactory.Name();
        }
Exemplo n.º 6
0
 public BaseHardware()
 {
     _name = new NullName();
     _architecture = new NullArchitecture();
 }