public void Load() { string json = File.ReadAllText(_filePathJson); TokenV001 layout = JsonConvert.DeserializeObject <TokenV001>(json); SetValue(layout); }
private TokenV001 GetValue() { TokenV001 token = new TokenV001(); token.Threshold = Threshold.Value; token.Weigth = Weigth.Value; token.Label = Label; return(token); }
private void SetValue(TokenV001 token) { this._threshold = new ModelValueDouble(_application.EventTokenChanged, token.Threshold); this._weigth = new ModelValueDouble(_application.EventTokenChanged, token.Weigth); this._label = token.Label; }