public void Init(Service service)
		{
			if (DataContext is SampleBrowserViewModel)
				return;
			var model = new SampleBrowserViewModel(service);
			DataContext = model;
			model.UpdateItems();
		}
示例#2
0
        public void Init(Service service)
        {
            if (DataContext is SampleBrowserViewModel)
            {
                return;
            }
            var model = new SampleBrowserViewModel(service);

            DataContext = model;
            model.UpdateItems();
        }