public void AddGetter(String name, BindingGetDlg dlg) { Variable v = cpu.FindVariable(name); if (v == null) { v = cpu.FindVariable(name.Split(":".ToCharArray())[0]); } if (v != null) { if (v is BoundVariable) { ((BoundVariable)v).Get = dlg; } } else { var bv = cpu.CreateBoundVariable(name); bv.Get = dlg; bv.cpu = cpu; } }