public void RefreshMessages(VKMessageModel[] VKMessage)
        {
            this.vkMessage.Clear();
            foreach (var message in VKMessage)
            {
                var dialog = new VKDialogModel(message);
                this.vkMessage.Add(dialog);
            }

            this.NotifyPropertyChanged("VKMessages");
        }
Example #2
0
 private void GoToDialogPage(VKDialogModel item)
 {
     //dataContext.MarkDialogAsRead(item);
     var destination = "/Views/Dialog.xaml";
     destination += string.Format("?UID={0}&Name={1}", item.UID, item.Name);
     NavigationService.Navigate(new Uri(destination, UriKind.Relative));
 }
        public void RefreshMessages(VKMessageModel[] VKMessage)
        {
            this.vkMessage.Clear();
            foreach (var message in VKMessage)
            {
                var dialog = new VKDialogModel(message);
                this.vkMessage.Add(dialog);
            }

            this.NotifyPropertyChanged("VKMessages");
        }
Example #4
0
 public void MarkDialogAsRead(VKDialogModel dialog)
 {
     dialog.Read = true;
     this.NotifyPropertyChanged("VKDialogs");
 }
Example #5
0
 public void MarkDialogAsRead(VKDialogModel dialog)
 {
     dialog.Read = true;
     this.NotifyPropertyChanged("VKDialogs");
 }