Example #1
0
        public void DialogMethod()
        {
            ObservableCollection <Image> list = new ObservableCollection <Image>();
            FileDialogMethod             fdm  = new FileDialogMethod();

            fdm.ReturnFilesFromDialog(list);
            if (list.Count != 0)
            {
                ObservableCollection <ObservableCollection <Image> > imageList = new ObservableCollection <ObservableCollection <Image> >();
                imageList.Add(list);
                _aggregator.GetEvent <FileDialogEvent>().Publish(imageList);
            }
        }
Example #2
0
        public void DialogMethodAddListImage()
        {
            ObservableCollection <Image> list = new ObservableCollection <Image>();
            FileDialogMethod             fdm  = new FileDialogMethod();

            fdm.ReturnFilesFromDialog(list);
            App.Current.Dispatcher.Invoke(new Action(() =>
            {
                if (list.Count != 0)
                {
                    ImageList.Add(list);
                    _aggregator.GetEvent <FileDialogEvent>().Publish(ImageList);
                }
            }));
        }
Example #3
0
        public void DialogMethodAddImage()
        {
            ObservableCollection <Image> list = new ObservableCollection <Image>();
            FileDialogMethod             fdm  = new FileDialogMethod();

            fdm.ReturnFilesFromDialog(list);
            App.Current.Dispatcher.Invoke(new Action(() =>
            {
                if (list.Count != 0)
                {
                    foreach (var image in list)
                    {
                        var temp = new ObservableCollection <Image>();
                        temp.Add(image);

                        ImageList.Add(temp);
                    }

                    _aggregator.GetEvent <FileDialogEvent>().Publish(ImageList);
                }
            }));
        }