Exemplo n.º 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            this.panel2.Enabled = false;
            panel1.Focus();

            this.panel1.Visible = true;
            this.label1.Visible = true;
            this.pictureBox1.Visible = true;
            this.panel1.Refresh();
            frmInit fInit = new frmInit();
            this.Visible = false;

            fInit.Show();
        }
Exemplo n.º 2
0
        //move on to frmInit
        private void continueSignup(Hashtable h)
        {
            OdbcCommand DbCommand = new OdbcCommand();
            try//patient should already exist in DB
            {
                MyConnection.Open();
                DbCommand = buildQueryStatement(h);
                // Grab patientID from previously created entry
                string patientID = DbCommand.ExecuteScalar().ToString();
                MyConnection.Close();

                //continue on to next form
                frmInit fInit = new frmInit(patientID);
                fInit.Show();
                this.Visible = false;
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error in continueSignup:\n" + ex.ToString());
            }
        }