Esempio n. 1
0
        public MainWindow(MainWindowAdapter adapter)
        {
            InitializeComponent();
            Adapter          = adapter;
            this.DataContext = Adapter;

            //var adorner = new LoadingAdorner(ResultGrid);
            //var layer = AdornerLayer.GetAdornerLayer(ResultGrid);

            //Adapter.PropertyChanged += (s, e) =>
            //    {
            //        if ("IsSearching".Equals(e.PropertyName))
            //        {
            //            if (Adapter.IsSearching)
            //                layer.Add(adorner);
            //            else
            //                layer.Remove(adorner);
            //        }
            //    };
        }
Esempio n. 2
0
        public MainWindow(MainWindowAdapter adapter)
        {
            InitializeComponent();
            Adapter = adapter;
            this.DataContext = Adapter;

            //var adorner = new LoadingAdorner(ResultGrid);
            //var layer = AdornerLayer.GetAdornerLayer(ResultGrid);

            //Adapter.PropertyChanged += (s, e) =>
            //    {
            //        if ("IsSearching".Equals(e.PropertyName))
            //        {
            //            if (Adapter.IsSearching)
            //                layer.Add(adorner);
            //            else
            //                layer.Remove(adorner);
            //        }
            //    };
        }
Esempio n. 3
0
 public MainWindow(MainWindowAdapter adapter)
 {
     InitializeComponent();
     Adapter          = adapter;
     this.DataContext = Adapter;
 }