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;
        }
Esempio n. 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;
 }
Esempio n. 4
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;            
 }