Example #1
0
 public void b()
 {
     GC.SuppressFinalize(this);
     this.a();
     this.az.Clear();
     this.n   = null;
     this.ag  = null;
     this.au  = null;
     this.at  = null;
     this.@as = null;
     this.ar  = null;
     this.aq  = null;
     this.ap  = null;
     this.ao  = null;
     this.an  = null;
     this.am  = null;
     this.al  = null;
     this.ak  = null;
     this.aj  = null;
     this.ai  = null;
     this.ah  = null;
     this.af  = null;
     this.ae  = null;
     this.ad  = null;
     this.ac  = null;
     this.ab  = null;
     this.aa  = null;
     this.z   = null;
     this.y   = null;
     this.x   = null;
     this.w   = null;
     this.v   = null;
     this.u   = null;
     this.t   = null;
     this.s   = null;
     this.r   = null;
     this.q   = null;
     this.p   = null;
     this.c   = null;
     this.av  = null;
     this.o   = null;
     this.m   = null;
     this.l   = null;
     this.k   = null;
     this.j   = null;
     this.i   = null;
     this.h   = null;
     this.g   = null;
     this.f   = null;
     this.e   = null;
     this.d   = null;
     this.b   = null;
     this.a   = null;
     this.aw  = null;
     this.ax  = null;
     this.ay  = null;
 }
 public string frombpunit(bp enumval)
 {
     if (enumval == bp.kPa)
     {
         if (lang == Language.English)
         {
             return("kPa");
         }
         else
         {
             return("千帕卡");
         }
     }
     else
     if (lang == Language.English)
     {
         return("mmHg");
     }
     else
     {
         return("毫米汞柱");
     }
 }
Example #3
0
 public ev(CoreManager A_0, PluginHost A_1, PluginCore A_2)
 {
     this.aw = A_0;
     this.ax = A_1;
     this.ay = A_2;
     this.a  = new b2(this.ay);
     this.az.Add(this.a);
     this.b = new j();
     this.az.Add(this.b);
     this.d = new aj();
     this.az.Add(this.d);
     this.e = new cd((FileService)this.aw.get_FileService(), this);
     this.az.Add(this.e);
     this.f = new d6();
     this.az.Add(this.f);
     this.g = new dv(this);
     this.az.Add(this.g);
     this.z = new s(this.aw);
     this.az.Add(this.z);
     this.h = new cs(this);
     this.az.Add(this.h);
     this.i = new dg(this);
     this.az.Add(this.i);
     this.j = new dl(this);
     this.az.Add(this.j);
     this.k = new eo(this);
     this.az.Add(this.k);
     this.l = new bh();
     this.az.Add(this.l);
     this.m = new fq();
     this.az.Add(this.m);
     this.o = new bw();
     this.az.Add(this.o);
     this.c = new cLogic(this.g, this.ay, this.z);
     this.az.Add(this.c);
     this.p = new cj(new cj.a(ad.a), A_1.get_Actions());
     this.az.Add(this.p);
     this.q = new b5(this.aw, this.ay);
     this.az.Add(this.q);
     this.r = new cz(this.ay, this.aw, this.ax, this.p);
     this.az.Add(this.r);
     this.s = new ag();
     this.az.Add(this.s);
     this.t = new fc(this.aw, this.ay);
     this.az.Add(this.t);
     this.u = new b0(this.aw, this.ay, this.p);
     this.az.Add(this.u);
     this.v = new el(this.aw);
     this.az.Add(this.v);
     this.w = new bd();
     this.az.Add(this.w);
     this.x = new bv(this.aw);
     this.az.Add(this.x);
     this.y = new a7(this.aw);
     this.az.Add(this.y);
     this.n = new fn(this.aw, this.p);
     this.az.Add(this.n);
     this.aa = new d0(this.aw);
     this.az.Add(this.aa);
     this.ab = new da(this.p, this.ay);
     this.az.Add(this.ab);
     this.ac = new bj();
     this.az.Add(this.ac);
     this.ad = new fs();
     this.az.Add(this.ad);
     this.ae = new b9();
     this.az.Add(this.ae);
     this.af = new en();
     this.az.Add(this.af);
     this.ah = new e0();
     this.az.Add(this.ah);
     this.ai = new ar();
     this.az.Add(this.ai);
     this.aj = new y(this.ai);
     this.az.Add(this.aj);
     this.ak = new cRechargeManager();
     this.az.Add(this.ak);
     this.al = new q();
     this.az.Add(this.al);
     this.am = new fr();
     this.az.Add(this.am);
     this.an = new ei(this.g, this.p);
     this.az.Add(this.an);
     this.ao = new ca(this.x, this.an);
     this.az.Add(this.ao);
     this.ap = new cr(this.ay);
     this.az.Add(this.ap);
     this.aq = new bp();
     this.az.Add(this.aq);
     this.ar = new ay(this.p);
     this.az.Add(this.ar);
     this.@as = new h();
     this.az.Add(this.@as);
     this.at = new du();
     this.az.Add(this.at);
     this.au = new ac();
     this.az.Add(this.au);
     this.ag = new cc();
     this.az.Add(this.ag);
 }
Example #4
0
 public BuildingDescriptor(bp instance)
 {
     _internal = instance;
 }
Example #5
0
        protected override void OnAppearing()
        {
            base.OnAppearing();

            try
            {
                var setting = new SQLiteConnection(App.settingpath)
                              .Table <settingsdata>()
                              .ToList()
                              .First();
                lang = setting.language;
                hieg = setting.height;
                wieg = setting.weight;
                pres = setting.bp;
            }
            finally { }

            try
            {
                if (lang == Language.English)
                {
                    lbl0.Text  = "User Information";
                    lbl1.Text  = "Date of Birth";
                    lbl2.Text  = "Height";
                    lbl3.Text  = "Weight";
                    lbl4.Text  = "Systolic Blood pressure";
                    lbl5.Text  = "Diastolic Blood pressure";
                    lbl6.Text  = "Cholesterol level";
                    lbl7.Text  = "HDL level";
                    lbl8.Text  = "Gender";
                    lbl9.Text  = "Are you a smoker?";
                    lbl10.Text = "Do you have diabetes?";
                    //lbl11.Text = "Are you always taking medicine?";
                    height_text.Placeholder = "(in ";
                    if (hieg == Models.height.Meter)
                    {
                        height_text.Placeholder += "cm)";
                    }
                    else
                    {
                        height_text.Placeholder += "feet)";
                    }
                    weight_text.Placeholder = "(in ";
                    if (wieg == Models.weight.Kilogram)
                    {
                        weight_text.Placeholder += "kg)";
                    }
                    else
                    {
                        weight_text.Placeholder += "lb)";
                    }
                    sybp_text.Placeholder = "(in ";
                    dibp_text.Placeholder = "(in ";
                    if (pres == bp.kPa)
                    {
                        sybp_text.Placeholder += "kPa)";
                        dibp_text.Placeholder += "kPa)";
                    }
                    else
                    {
                        sybp_text.Placeholder += "mmHg)";
                        dibp_text.Placeholder += "mmHg)";
                    }
                    chol_text.Placeholder = "(in mg/dL)";
                    hdl_text.Placeholder  = "(in mg/dL)";
                    gend.ItemsSource      = new string[] { "---Choose an item---", "Male", "Female" };
                    smok.ItemsSource      = new string[] { "---Choose an item---", "Yes", "No" };
                    diab.ItemsSource      = new string[] { "---Choose an item---", "Yes", "No" };
                    //tba.ItemsSource= new string[] { "---Choose an item---", "Yes", "No" };
                    Title    = "User Profile";
                    btn.Text = "Submit";
                }
                else if (lang == Language.trad_chi)
                {
                    lbl0.Text  = "用戶資料";
                    lbl1.Text  = "出生日期";
                    lbl2.Text  = "身高";
                    lbl3.Text  = "體重";
                    lbl4.Text  = "血壓(上壓)";
                    lbl5.Text  = "血壓(下壓)";
                    lbl6.Text  = "膽固醇水平";
                    lbl7.Text  = "HDL水平";
                    lbl8.Text  = "性別";
                    lbl9.Text  = "閣下有沒有吸煙的習慣?";
                    lbl10.Text = "閣下有沒有糖尿病?";
                    //lbl11.Text = "閣下是否長期病患?";
                    height_text.Placeholder = "(";
                    if (hieg == Models.height.Meter)
                    {
                        height_text.Placeholder += "公分)";
                    }
                    else
                    {
                        height_text.Placeholder += "尺)";
                    }
                    weight_text.Placeholder = "(";
                    if (wieg == Models.weight.Kilogram)
                    {
                        weight_text.Placeholder += "kg)";
                    }
                    else
                    {
                        weight_text.Placeholder += "lb)";
                    }
                    sybp_text.Placeholder = "(";
                    dibp_text.Placeholder = "(";
                    if (pres == bp.kPa)
                    {
                        sybp_text.Placeholder += "kPa)";
                        dibp_text.Placeholder += "kPa)";
                    }
                    else
                    {
                        sybp_text.Placeholder += "mmHg)";
                        dibp_text.Placeholder += "mmHg)";
                    }
                    chol_text.Placeholder = "(mg/dL)";
                    hdl_text.Placeholder  = "(mg/dL)";
                    gend.ItemsSource      = new string[] { "---請選擇---", "男", "女" };
                    smok.ItemsSource      = new string[] { "---請選擇---", "有", "沒有" };
                    diab.ItemsSource      = new string[] { "---請選擇---", "有", "沒有" };
                    //tba.ItemsSource = new string[] { "---請選擇---", "是", "否" };
                    Title    = "個人檔案";
                    btn.Text = "提交";
                }

                else
                {
                    lbl0.Text  = "用户资料";
                    lbl1.Text  = "出生日期";
                    lbl2.Text  = "身高";
                    lbl3.Text  = "体重";
                    lbl4.Text  = "血压(上压)";
                    lbl5.Text  = "血压(下压)";
                    lbl6.Text  = "胆固醇水平";
                    lbl7.Text  = "HDL水平";
                    lbl8.Text  = "性別";
                    lbl9.Text  = "阁下有沒有吸烟的习惯?";
                    lbl10.Text = "阁下有沒有糖尿病?";
                    //lbl11.Text = "阁下是否长期病患?";
                    height_text.Placeholder = "(";
                    if (hieg == Models.height.Meter)
                    {
                        height_text.Placeholder += "公分)";
                    }
                    else
                    {
                        height_text.Placeholder += "尺)";
                    }
                    weight_text.Placeholder = "(";
                    if (wieg == Models.weight.Kilogram)
                    {
                        weight_text.Placeholder += "kg)";
                    }
                    else
                    {
                        weight_text.Placeholder += "lb)";
                    }
                    sybp_text.Placeholder = "(";
                    dibp_text.Placeholder = "(";
                    if (pres == bp.kPa)
                    {
                        sybp_text.Placeholder += "kPa)";
                        dibp_text.Placeholder += "kPa)";
                    }
                    else
                    {
                        sybp_text.Placeholder += "mmHg)";
                        dibp_text.Placeholder += "mmHg)";
                    }
                    chol_text.Placeholder = "(mg/dL)";
                    hdl_text.Placeholder  = "(mg/dL)";
                    gend.ItemsSource      = new string[] { "---请选择---", "男", "女" };
                    smok.ItemsSource      = new string[] { "---请选择---", "有", "沒有" };
                    diab.ItemsSource      = new string[] { "---请选择---", "有", "沒有" };
                    //tba.ItemsSource = new string[] { "---请选择---", "是", "否" };
                    Title    = "个人档案";
                    btn.Text = "提交";
                }
            }
            catch (Exception) { }
            using (SQLiteConnection dbim = new SQLiteConnection(App.DBPATH))
            {
                dbim.CreateTable <DB_pdata>();
                List <DB_pdata> dBs;
                try
                {
                    dBs = dbim.Table <DB_pdata>().ToList();
                    height_text.Text   = dBs.First().heig.ToString();
                    weight_text.Text   = dBs.First().weig.ToString();
                    sybp_text.Text     = dBs.First().Sbp.ToString();
                    dibp_text.Text     = dBs.First().Dbp.ToString();
                    chol_text.Text     = dBs.First().Cho.ToString();
                    hdl_text.Text      = dBs.First().hdll.ToString();
                    DOB.Date           = dBs.First().dob;
                    gend.SelectedIndex = bootoint(dBs.First().genD);
                    smok.SelectedIndex = bootoint(dBs.First().smoK);
                    diab.SelectedIndex = bootoint(dBs.First().diaB);
                    //tba.SelectedIndex = bootoint(dBs.First().medic);
                }
                catch (Exception)
                {
                    gend.SelectedIndex = 0;
                    smok.SelectedIndex = 0;
                    diab.SelectedIndex = 0;
                    //tba.SelectedIndex = 0;
                    DOB.Date = DateTime.Today;
                }
            }
            DOB.MaximumDate = DateTime.Today;
        }