public void Init(Service setService)
		{
			service = setService;
			current = new MaterialEditorViewModel(service);
			service.ProjectChanged += ChangeProject;
			service.ContentUpdated += (type, name) =>
			{
				Action updateAction = () => { current.RefreshOnAddedContent(type, name); };
				Dispatcher.Invoke(updateAction);
			};
			service.ContentDeleted += s => Dispatcher.Invoke(new Action(current.RefreshOnContentChange));
			DataContext = current;
		}
 public void Init(Service setService)
 {
     service = setService;
     current = new MaterialEditorViewModel(service);
     service.ProjectChanged += ChangeProject;
     service.ContentUpdated += (type, name) =>
     {
         Action updateAction = () => { current.RefreshOnAddedContent(type, name); };
         Dispatcher.Invoke(updateAction);
     };
     service.ContentDeleted += s => Dispatcher.Invoke(new Action(current.RefreshOnContentChange));
     DataContext             = current;
 }