Ejemplo n.º 1
0
        private void BottomLeftButtonClick(object sender, RoutedEventArgs e)
        {
            //MessageBox.Show("Bottom left button clicked.");
            mwRef = MainWindow.ReturnMainWindowInstance();
            mwRef.ToggleVolumeButton();
            mwRef.MainCanvas.Children.Remove(this);

            tutorial = new HelpScreen();
            mwRef.MainCanvas.Children.Add(tutorial);

            tutorial.InitializeHelpScreen();
        }
Ejemplo n.º 2
0
        public MainWindow()
        {
            InitializeComponent();
            // Initialise the Audio Manager
            newAudioManager = new AudioManager();

            // Load the TitleScreen, and a click event for it to use (to remove it after)
            title            = new TitleScreen();
            title.MouseDown += Title_MouseDown;
            // Add Title screen to the Main Window
            MainCanvas.Children.Add(title);

            tutorial = new HelpScreen();


            // Initialising Audio (visual pushing to the far right), Play open track.
            GlobalAudio1            = true;
            newAudioManager.audioOn = GlobalAudio1;
            newAudioManager.playTitleSound();
            Canvas.SetLeft(audioTile, 0);
            MainCanvas.Children.Add(newAudioManager);

            mainWin = this;
        }