Ejemplo n.º 1
0
 private void tbnAddEmployee_Click(object sender, RoutedEventArgs e)
 {
     if (tbAddEmp.Text != "" && comboAddType.SelectedValue != null)
     {
         int type = Convert.ToInt32(((ComboBoxItem)comboAddType.SelectedValue).Content);
         connection.AddShops(type, tbAddEmp.Text);
         MessageBox.Show("Add succeesfully");
     }
     else
     {
         MessageBox.Show("Enter the information");
     }
 }