/// <summary>
        /// Populates the office tab with OfficeItems
        /// </summary>
        /// <param name="list">The listview that contains the items</param>
        private void FillOfficeTab(ListView list)
        {
            // Fill tab with all offices information
            using (var context = new Model()) {
                var queryResult = context.Offices.SqlQuery("SELECT * FROM Office").ToList();

                foreach (Office o in queryResult)
                {
                    OfficeItem newItem = new OfficeItem();
                    newItem.ID          = o.id;
                    newItem.Address     = HelperFunctions.AddressToString(o.StreetAddress);
                    newItem.PhoneNumber = HelperFunctions.PhoneNumberToString(o.phone_number);
                    newItem.FaxNumber   = HelperFunctions.PhoneNumberToString(o.fax_number);
                    newItem.Email       = o.email;

                    newItem.BrokerUsername = o.broker_username;

                    list.Items.Add(newItem);
                }
            }
        }
 public OfficeInfo(OfficeItem item)
 {
     InitializeComponent();
     this.item = item;
 }