Example #1
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var cardLists = value as IEnumerable <CardListDTO>;
            var lists     = ArrayToObservable.ArrayToObserve <CardListDTO>(cardLists);

            return(lists);
        }
Example #2
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var userDTOs = value as IEnumerable <UserDTO>;
            var users    = ArrayToObservable.ArrayToObserve <UserDTO>(userDTOs);

            return(users);
        }
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var labelColors = value as IEnumerable <LabelColorDTO>;
            var colors      = ArrayToObservable.ArrayToObserve <LabelColorDTO>(labelColors);

            return(colors);
        }
 private void SetBoards()
 {
     try
     {
         Application.Current.Dispatcher.Invoke(async() =>
         {
             var window = Application.Current.Windows.OfType <LoginWindow>().FirstOrDefault();
             var fromDB = await window.Proxy.GetBoardsAsync();
             var boards = ArrayToObservable.ArrayToObserve <BoardDTO>(fromDB);
             MyBoards   = boards;
         });
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }