Exemple #1
0
 public void Init(Service service)
 {
     viewModel               = new AnimationEditorViewModel(service);
     DataContext             = viewModel;
     service.ProjectChanged += ChangeProject;
     service.ContentUpdated +=
         (t, s) => Dispatcher.Invoke(new Action(() => viewModel.RefreshOnContentChange()));
     service.ContentDeleted +=
         s => Dispatcher.Invoke(new Action(viewModel.RefreshOnContentChange));
 }
		public void Init(Service service)
		{
			viewModel = new AnimationEditorViewModel(service);
			DataContext = viewModel;
			service.ProjectChanged += ChangeProject;
			service.ContentUpdated +=
				(t, s) => Dispatcher.Invoke(new Action(() => viewModel.RefreshOnContentChange()));
			service.ContentDeleted +=
				s => Dispatcher.Invoke(new Action(viewModel.RefreshOnContentChange));
		}