//these classes references Context, so we need to move it outside private void InitalizeConfig() { Hub = new MyomiHub(); //should be run on a separate thread since getting the myo to set up is a whole different task //but disables the user from continuing if a myo is not detected in MyomiHub Points = new PointsConfig(); //this should be initiated after a myo is found UserCalibration = new UserCalibrationConfig(); InitalizeProfiles(); }
public Channel(string _channel) { Name = _channel; ActiveModules = new List <string>(); pointsConfig = new PointsConfig(); pointsConfig.Name = _channel; pointsConfig.pointsName = "points"; pointsConfig.challengeName = "challenge"; pointsConfig.challengeAccept = "accept"; pointsConfig.pointsNameMultiple = "points"; pointsConfig.rouletteName = "roulette"; pointsConfig.donateName = "donate"; utilConfig.uptime = "uptime"; utilConfig.viewers = "wiewers"; }