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"; } }
public AllPeoplePageView(MainView mv) { InitializeComponent(); DeleteButton.IsEnabled = false; this.mv = mv; dp = new DetectedPerson(); }
public HomePageView(MainView mv) { InitializeComponent(); this.mv = mv; dp = new DetectedPerson(); ReadHistoryStream().ConfigureAwait(false); ReadRefPersonStream().ConfigureAwait(false); }