public FirstRightViewModel(FirstModel model) { if (model == null) throw new ArgumentNullException("model"); this.Model = model; this.Model.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(Model_PropertyChanged); this.StateName = this.Model.State.ToString(); }
public void OnFirstOption() { var model = new FirstModel(); this.LeftPanel = new FirstLeftViewModel(model); this.RightPanel = new FirstRightViewModel(model); }
public FirstLeftViewModel(FirstModel model) { if (model == null) throw new ArgumentNullException("model"); this.Model = model; }