public MainWindow() { InitializeComponent(); Containers.Read_Players(); Containers.Read_Championships(); Containers.Read_Employees(); Containers.Read_Clubs(); Containers.Read_Teams(); Containers.Read_Coach(); // AGE a = new SFS.AGE(); // a.Show(); // mainqueryform f = new mainqueryform(); // f.Show(); // Options o = new Options(); // o.Show(); TeamPlayers n = new TeamPlayers(); n.Show(); Display_Club z = new Display_Club(); z.Show(); Display_Coaches c = new Display_Coaches(); c.Show(); }
private void button_Click(object sender, RoutedEventArgs e) { if (comboBox.Text == "") { MessageBox.Show("Choose An Option !"); } else if (comboBox.Text == "Employees") { Display_Employee dp = new Display_Employee(); dp.Show(); this.Close(); } else if (comboBox.Text == "ChampionShip") { Display_Championshsips dc = new Display_Championshsips(); dc.Show(); this.Close(); } else if (comboBox.Text == "Coaches") { Display_Coaches dc = new Display_Coaches(); dc.Show(); this.Close(); } else if (comboBox.Text == "Club") { Display_Club dcc = new Display_Club(); dcc.Show(); this.Close(); } else if (comboBox.Text == "Sponsors") { Display_Sponsers ds = new Display_Sponsers(); ds.Show(); this.Close(); } else if (comboBox.Text == "Players") { TeamPlayers tp = new TeamPlayers(); tp.Show(); this.Close(); } else if (comboBox.Text == "Teams") { display_team a = new display_team(); a.Show(); this.Close(); } }