private void FillAddress()
        {
            Database.Address address = client.GetAddress();

            if (address != null)
            {
                lStreet.Text = address.street;
                lCity.Text   = address.city;
            }
        }
Exemple #2
0
 private void SearchInGoogleMaps(object sender, EventArgs e)
 {
     if (fastObjectListView1.SelectedObjects.Count > 0)
     {
         Database.Client client = (Database.Client)fastObjectListView1.SelectedObjects[0];
         client.GetAddress().SearchInGoogleMaps();
     }
 }
Exemple #3
0
        private void AddToList(Database.Client c)
        {
            Database.Address ad = c.GetAddress();

            string phone = "";
            string mail  = "";

            if (c.p_numbers.Length > 0)
            {
                phone = c.p_numbers[0];
            }

            if (c.emails.Length > 0)
            {
                mail = c.emails[0];
            }

            TBListViewItem item = new TBListViewItem(new string[] { c.name, c.NIP, ad.street, ad.city, phone, mail, c.notes, c.ser_agr ? "tak" : "nie" }, c);

            this.Items.Add(item);
        }