示例#1
0
        float SD = -1f; // SD is the number of standard drinks containing 10 grams of ethanol
        // 1.2 is a factor in order to convert the amount in grams to Swedish standards set by 
        // The Swedish National Institute of Public Health
        // 0.806 is a constant for body water in the blood (mean 80.6%)
        

        public MainPage()
        {
            InitializeComponent();
            string returnString;
            user = PhoneApplicationService.Current.State["param"] as Model.User;
            Connection_manager manager = new Connection_manager();
            manager.fetch_user_profile_from_taltioni(user);
            //Not working at the moment
            //manager.fetch_user_weigth_from_taltioni(user);
            bt_manager = new ConnectionManager();
            bt_manager.MessageReceived += meterReadingReceived;
            meter = new AlcoMeter();
            
        }
示例#2
0
        float SD      = -1f;    // SD is the number of standard drinks containing 10 grams of ethanol
        // 1.2 is a factor in order to convert the amount in grams to Swedish standards set by
        // The Swedish National Institute of Public Health
        // 0.806 is a constant for body water in the blood (mean 80.6%)


        public MainPage()
        {
            InitializeComponent();
            string returnString;

            user = PhoneApplicationService.Current.State["param"] as Model.User;
            Connection_manager manager = new Connection_manager();

            manager.fetch_user_profile_from_taltioni(user);
            //Not working at the moment
            //manager.fetch_user_weigth_from_taltioni(user);
            bt_manager = new ConnectionManager();
            bt_manager.MessageReceived += meterReadingReceived;
            meter = new AlcoMeter();
        }