Exemple #1
0
        private void prez(string title, cwiczenie cwicz)
        {
            //Prezentation pr = new Prezentation();

            Prezentation pr = new Prezentation();

            pr.Title = title;
            switch (cwicz)
            {
            case cwiczenie.cw1:
                pr.Content = new Pagges.cw1();
                break;

            case cwiczenie.cw2:
                pr.Content = new Pagges.cw2();
                break;

            case cwiczenie.cw3:
                pr.Content = new Pagges.cw3();
                break;

            case cwiczenie.cw4:
                pr.Content = new Pagges.cw4();
                break;
            }

            pr.ShowDialog();
        }
Exemple #2
0
        private void Cw4_Click(object sender, RoutedEventArgs e)
        {
            Prezentation pr = new Prezentation();

            pr.MainFrame.Content = new Pagges.cw4();
            pr.Title             = "Ćwiczenie 4 - Uje muje";
            pr.ShowDialog();
        }