/// <summary> ///mvvm notify of chenges to veiw from model. /// </summary> public void NotifyPropertyChanged(string propName) { // if current line change need to updth the data of dashbord. if (propName == "VM_CurrentUpdate") { dashmodel.getCurrentLine(); } else if (this.PropertyChanged != null) { this.PropertyChanged(this, new PropertyChangedEventArgs(propName)); } }