private void btnCancel_Click(object sender, EventArgs e)
 {
     Hide();
     Form4_VisitorListResult form4 = new Form4_VisitorListResult(this.id);
     form4.Closed += (s, args) => Close();
     form4.Show();
 }
Example #2
0
        private void btnViewList_Click(object sender, EventArgs e)
        {
            Hide();
            Form4_VisitorListResult form4 = new Form4_VisitorListResult(this.id);

            form4.Closed += (s, args) => Close();
            form4.Show();
        }
Example #3
0
        private void btnCancel_Click(object sender, EventArgs e)
        {
            Hide();
            Form4_VisitorListResult form4 = new Form4_VisitorListResult(this.id, this.range, this.from, this.to);

            form4.Closed += (s, args) => Close();
            form4.Show();
        }
Example #4
0
 private void btnSubmit_Click_1(object sender, EventArgs e)
 {
     if (isValidated())
     {
         visitor1TableAdapter.InsertQuery(txtBoxFirstName.Text, txtBoxLastName.Text, cmbBoxGender.Text, cmbBoxUnitNumber.Text, txtboxIdDetails.Text, txtBoxRelation.Text, txtBoxPurpose.Text, lblDateAndTimeEntry.Text, this.id, idOwner);
         //visitorTableAdapter.Update(condorDatabaseDataSet.Visitor);
         Hide();
         Form4_VisitorListResult form4 = new Form4_VisitorListResult(this.id);
         form4.Closed += (s, args) => Close();
         form4.Show();
     }
 }
 private void btnSubmit_Click_1(object sender, EventArgs e)
 {
     if (isValidated())
     {
         visitor1TableAdapter.InsertQuery(txtBoxFirstName.Text, txtBoxLastName.Text, cmbBoxGender.Text, cmbBoxUnitNumber.Text,txtboxIdDetails.Text, txtBoxRelation.Text, txtBoxPurpose.Text, lblDateAndTimeEntry.Text, this.id, idOwner);
       //visitorTableAdapter.Update(condorDatabaseDataSet.Visitor);
         Hide();
         Form4_VisitorListResult form4 = new Form4_VisitorListResult(this.id);
         form4.Closed += (s, args) => Close();
         form4.Show();
     }
 }
Example #6
0
 private void btnUpdate_Click(object sender, EventArgs e)
 {
     if (isValidated())
     {
         visitorTableAdapter.UpdateQuery(txtBoxFirstName.Text, txtBoxLastName.Text, cmbBoxGender.Text, cmbBoxUnitNumber.Text, txtboxIdDetails.Text, txtBoxRelation.Text, txtBoxPurpose.Text, param);
         MessageBox.Show("Visitor record has been updated.");
         Hide();
         Form4_VisitorListResult form4 = new Form4_VisitorListResult(this.id, this.range, this.from, this.to);
         form4.Closed += (s, args) => Close();
         form4.Show();
     }
 }
 private void btnUpdate_Click(object sender, EventArgs e)
 {
     if (isValidated())
     {
         visitorTableAdapter.UpdateQuery(txtBoxFirstName.Text, txtBoxLastName.Text, cmbBoxGender.Text, cmbBoxUnitNumber.Text, txtboxIdDetails.Text, txtBoxRelation.Text, txtBoxPurpose.Text, param);
         MessageBox.Show("Visitor record has been updated.");
         Hide();
         Form4_VisitorListResult form4 = new Form4_VisitorListResult(this.id);
         form4.Closed += (s, args) => Close();
         form4.Show();
     }
 }