Example #1
0
 public Risk()
 {
     InitializeComponent();
     scrollviewer.ManipulationBoundaryFeedback += (s, e) =>
     {
         e.Handled = true;
     };
     this.Loaded += (s, e) =>
     {
         form = new InquiredForm
         {
             weight = "",
             height = "",
             agodiastolicpressure = "",
             agosystolicpressure  = "",
             smoking          = "",
             drinking         = "",
             cholesterol      = "",
             hdl              = "",
             ldl              = "",
             heartrate        = "",
             waist            = "",
             firstacquisition = "no",
         };
         this.DataContext = form;
         FindStoryboard();
         LoadInfo();
     };
 }
Example #2
0
        public async Task <DataResult <HealthData> > InquiredHealthDataAsync(InquiredForm form)
        {
            if (mCachedMemberInfo == null)
            {
                return(null);
            }
            form.mid = mCachedMemberInfo.data.mid;
            form.uid = mCachedMemberInfo.data.uid;
            var data = await mSdk.InquiredHealthDataAsync(form);

            Check(data);
            return(data);
        }