//private void buttonNewParticipant_Click(object sender, RoutedEventArgs e) //{ // //if (!DbConnector.CheckForExistingPid(textBoxNewParticipantID.Text)) // //{ // // DbConnector.RunQuery(@"INSERT INTO tbl_Consumer_List_Entry (Consumer_Id) VALUES ('" + // // textBoxNewParticipantID.Text + @"');"); // //} // //IntakeForm intakeForm = new IntakeForm(textBoxNewParticipantID.Text); // //intakeForm.Show(); // //Close(); //} private void buttonNewParticipantWindow_Click(object sender, RoutedEventArgs e) { if (_department == @"ADVP") { CreateNewParticipant create = new CreateNewParticipant(_department); create.Show(); Close(); } else if (_department == @"ECAP") { CreateNewParticipant create = new CreateNewParticipant(_department); create.Show(); Close(); } else if (_department == @"WOCAPPT") { CreateNewParticipant create = new CreateNewParticipant(_department); create.Show(); Close(); } }