void m_main_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e) { if (m_busy) { return; } m_busy = true; String name = e.PropertyName; if (name == "IsBusy") { NotifyPropertyChanged("IsBusy"); return; } if (name == "AllIndividus") { this.Individus = null; RefreshVariablesValues(); } else if (name == "AllComputeVariables") { this.AllComputeVariables = null; var col = new VariableDescs(); foreach (var v in m_main.AllComputeVariables) { col.Add(v); } this.LeftVariables = col; this.CurrentVariables = null; } else if (name == "AllCategVariables") { NotifyPropertyChanged("AllCategVariables"); } else if (name == "CurrentCategVariable") { this.updateCategValues(); NotifyPropertyChanged("CurrentCategVariable"); } else if (name == "AllNumVariables") { this.CurrentXVariable = null; this.CurrentYVariable = null; NotifyPropertyChanged("NumVariables"); NotifyPropertyChanged("AllNumVariables"); } m_busy = false; }// PhotosModelView
}// PhotosModelView #endregion // Constructors public void RefreshLeftVariables() { var p = this.LeftVariables; if (p.Count < 1) { var col = new VariableDescs(); foreach (var v in m_main.AllComputeVariables) { col.Add(v); } this.LeftVariables = col; this.CurrentVariables = null; } }// RefreshComputeVariables