Example #1
0
        private void InitName()
        {
            ContactRow row = new ContactRow();

            row.labelTitle.Content = "Name";
            row.SetSingle();
            if (m_contact != null)
            {
                row.AddOne(m_contact.FullName);
            }
            else
            {
                row.AddOne(null);
            }
            mypanel.Children.Add(row);
        }
Example #2
0
        private void InitJobOffice()
        {
            ContactRow row = new ContactRow();

            row.labelTitle.Content = "Job Office";
            row.SetSingle();
            if (m_contact != null && m_contact.JobInfo.Count > 0)
            {
                foreach (var job in m_contact.JobInfo)
                {
                    row.AddOne(job.Office);
                    break;
                }
            }
            else
            {
                row.AddOne(null);
            }
            mypanel.Children.Add(row);
        }