Пример #1
0
        public AddNewRef(string id, string name, string description, ImageSource imageSource, DetectedPerson detectedPerson, AllPeoplePageView allPeoplePageView, bool isNew)
        {
            InitializeComponent();

            this.isNew = isNew;

            if (!isNew)
            {
                lblTitle.Content     = "UPDATE PERSON";
                buttonSubmit.Content = "UPDATE";

                this.detectedPerson = detectedPerson;

                this.id          = id;
                this.name        = name;
                this.description = description;
                this.imageSource = imageSource;

                txtId.Text      = id.Split('.')[0];
                txtId.IsEnabled = false;

                txtName.Text          = name;
                txtDescription.Text   = description;
                imgUploadImage.Source = imageSource;
            }
            else
            {
                this.allPeoplePageView = allPeoplePageView;
                lblTitle.Content       = "NEW PERSON";
                buttonSubmit.Content   = "SUBMIT";
            }
        }
Пример #2
0
        public AllPeoplePageView(MainView mv)
        {
            InitializeComponent();

            DeleteButton.IsEnabled = false;

            this.mv = mv;
            dp      = new DetectedPerson();
        }
Пример #3
0
        public HomePageView(MainView mv)
        {
            InitializeComponent();

            this.mv = mv;
            dp      = new DetectedPerson();

            ReadHistoryStream().ConfigureAwait(false);
            ReadRefPersonStream().ConfigureAwait(false);
        }