Esempio n. 1
0
        void sign()
        {
            frmSig fs = new frmSig();

            fs.ShowDialog();
            pm.psig = fs.arr;
        }
Esempio n. 2
0
        private void btnSave1_Click(object sender, EventArgs e)
        {
            frmSig fs = new frmSig();

            fs.mode = "x";
            fs.ShowDialog();
            pm.phsig = fs.arr;
            save();
        }
Esempio n. 3
0
        public bool updateProfile()
        {
            bool   valid = false;
            frmSig fs    = new frmSig();

            fs.ShowDialog();
            pm.psig = fs.arr;
            GetInputs();
            valid = (pm.updateProfile()) ? true : false;
            return(valid);
        }
Esempio n. 4
0
 private void btnDone_Click(object sender, EventArgs e)
 {
     if (btnDone.Text == "Save")
     {
         btnCancel.Show();
         pc.studentId = lblID.Text;
         pc.bp        = txtBP.Text;
         pc.height    = Int32.Parse(txtHeight.Text);
         pc.pr        = txtPR.Text;
         pc.remarks   = txtRemarks.Text;
         pc.rr        = txtRR.Text;
         pc.dic       = txtIC.Text;
         pc.temp      = txtTemp.Text;
         pc.weight    = Int32.Parse(txtWeight.Text);
         pc.bmi       = txtBMI.Text;
         pc.spo2      = txtSPo2.Text;
         pc.dic       = txtIC.Text;
         frmSig sig = new frmSig();
         sig.mode = "x";
         sig.ShowDialog();
         pc.phsig = sig.arr;
         if (txtBMI.Text != "" || txtRemarks.Text != "" || txtPR.Text != "" || txtRR.Text != "" || txtTemp.Text != "" || txtSPo2.Text == "" || txtIC.Text == "")
         {
             if (pc.addRemark())
             {
                 MetroMessageBox.Show(this, "Saved successfully!", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
                 btnDone.Text       = "Done";
                 txtBP.Enabled      = false;
                 txtHeight.Enabled  = false;
                 txtPR.Enabled      = false;
                 txtRemarks.Enabled = false;
                 txtRR.Enabled      = false;
                 txtTemp.Enabled    = false;
                 txtWeight.Enabled  = false;
                 txtIC.Enabled      = false;
                 txtBMI.Enabled     = false;
                 btnCancel.Hide();
             }
             else
             {
                 MetroMessageBox.Show(this, "Not saved!", "Message", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
             }
         }
         else
         {
             MetroMessageBox.Show(this, "Fill required fields!", "Message", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
         }
     }
     else
     {
         this.Close();
     }
 }