Example #1
0
 public void InitializeVariable(ProcessVar var)
 {
     this.var              = var;
     this.Text             = SolvableControl.GetVariableName(this.var, UnitSystemService.GetInstance().CurrentUnitSystem);
     this.var.NameChanged += new NameChangedEventHandler(var_NameChanged);
     UnitSystemService.GetInstance().CurrentUnitSystemChanged += new CurrentUnitSystemChangedEventHandler(ProcessVarLabel_CurrentUnitSystemChanged);
 }
Example #2
0
 private void var_NameChanged(object sender, string name, string oldName)
 {
     this.Text = SolvableControl.GetVariableName(this.var, UnitSystemService.GetInstance().CurrentUnitSystem);
 }
Example #3
0
 private void ProcessVarLabel_CurrentUnitSystemChanged(UnitSystem unitSystem)
 {
     this.Text = SolvableControl.GetVariableName(this.var, unitSystem);
 }