private void AddWPF_Click(object sender, RoutedEventArgs e) { switch (TransferInfo.tableContent) { case "Providers": Provider.AddProvider(); break; case "Equipment": Equipment.AddEquipment(); break; case "Machines": Machine.AddMachine(); break; case "Releases": Release.AddRelease(); break; } SetTable(); }