Exemplo n.º 1
0
        //Loads the information for the parent on to the side of the window
        private void LoadParentData()
        {
            ParentInfoDB parentInfo = new ParentInfoDB();

            cnv_ParentIcon.Background = new ImageBrush(new BitmapImage(new Uri(parentInfo.GetPhotoPath(txt_ParentID.Text), UriKind.Relative)));
            lbl_Name.Content          = parentInfo.GetParentName(txt_ParentID.Text);
            lbl_Address1.Content      = parentInfo.GetAddress1(txt_ParentID.Text);
            lbl_Address2.Content      = parentInfo.GetAddress2(txt_ParentID.Text);
            lbl_Address3.Content      = parentInfo.GetAddress3(txt_ParentID.Text);
            lbl_Phone.Content         = parentInfo.GetPhoneNumber(txt_ParentID.Text);
            UpdateCurDue(txt_ParentID.Text);
        }