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); } }
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); } })); }
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); } })); }