public GoogleImageSearchView()
        {
            InitializeComponent();

            DataContext = vm = new ImageSearchViewModel();

            vm.ClosingRequest += vm_ClosingRequest;

            this.Closing += googleImageSearchView_Closing;
        }
        public GoogleImageSearchView()
        {
            InitializeComponent();

            DataContext = vm = new ImageSearchViewModel();

            vm.ClosingRequest += vm_ClosingRequest;

            this.Closing += googleImageSearchView_Closing;
        }
Exemple #3
0
 public ImageSearchQuery(ImageSearchViewModel vm)
 {
     Query      = vm.Query;
     Size       = vm.Size.CurrentItem.ToString();
     SafeSearch = vm.SafeSearch.CurrentItem.ToString();
     Layout     = vm.Layout.CurrentItem.ToString();
     Type       = vm.Type.CurrentItem.ToString();
     People     = vm.People.CurrentItem.ToString();
     Color      = vm.Color.CurrentItem.ToString();
     GeoTag     = vm.GeoTag;
 }
 public ImageSearchQuery(ImageSearchViewModel vm)
 {
     Query = vm.Query;
     Size = vm.Size.CurrentItem.ToString();
     SafeSearch = vm.SafeSearch.CurrentItem.ToString();
     Layout = vm.Layout.CurrentItem.ToString();
     Type = vm.Type.CurrentItem.ToString();
     People = vm.People.CurrentItem.ToString();
     Color = vm.Color.CurrentItem.ToString();
     GeoTag = vm.GeoTag;            
 }