Ejemplo n.º 1
0
 public ContactInformationForm(PhoneBook.BackDelegate backDelegate1, int id, string name, string email)
 {
     InitializeComponent();
     this.backDelegate1       = backDelegate1;
     this.Id                  = id;
     this.lblOutputName.Text  = this.Name = name;
     this.lbloutputEmail.Text = this.Email = email;
     sql = @"select * from id_phone where id=" + this.Id + ";";
     this.PopulateData(sql);
 }
Ejemplo n.º 2
0
        public ContactRegistratonForm(int id, string name, string email, List <string> phoneNumers, PhoneBook.BackDelegate backDelegate1)
        {
            InitializeComponent();
            this.pnlAddMorePhone.Visible = true;
            this.backDelegate1           = backDelegate1;
            this.Id = id;
            string[] Names = name.Split(' ');
            this.FirstName = this.txtFirstName.Text = Names[0];
            for (int i = 1; i < Names.Length; i++)
            {
                if (i == 1)
                {
                    this.LastName = Names[i];
                }
                else
                {
                    this.LastName += " " + Names[i];
                }
            }
            this.txtLastName.Text = this.LastName;
            this.Email            = this.txtEmail.Text = email;
            phone[0] = phoneNumers.ElementAt(0);
            if (phoneNumers.Count == 2)
            {
                phone[1] = phoneNumers.ElementAt(1);
            }
            this.phone.CopyTo(this.OldNumbers, 0);
            int totalNumbers = phoneNumers.Count;

            this.txtPhone1.Text = this.phone[0];
            if (totalNumbers == 2)
            {
                this.txtPhone2.Text      = this.phone[1];
                this.pnlAddPhone.Visible = true;
            }
        }
Ejemplo n.º 3
0
 public ContactRegistratonForm(PhoneBook.BackDelegate backDelegate1)
 {
     InitializeComponent();
     this.backDelegate1 = backDelegate1;
     this.Id            = DataAccess.ID + 1;
 }