Пример #1
0
        public bool Verify(string login, string password)
        {
            dbOperations db = new dbOperations(Context);

            //db.Get(context.);
            return(true);
        }
Пример #2
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            int i = new dbOperations().InsertData("insert into Patient_Details(Patient_Name, Age, P_Number, Patient_Gender, Patient_NIC, P_Address) Values('" + name + "', '" + age + "', '" + mobieNumber + "', '" + gender + "', '" + NIC + "', '" + address + "')");


            if (i > 0)
            {
                MessageBox.Show("New Patient Added Successful", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else
            {
                MessageBox.Show("New Patient Adding Failed", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            clear();
            count       = count + 1;
            txtpid.Text = count.ToString();
        }