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