Exemplo n.º 1
0
        private void Credits_Click(object sender, RoutedEventArgs e)
        {
            TextViewer cr = new TextViewer();

            cr.setTitle("Credits");
            cr.Title = "Credits";
            cr.setText("Contributers : \n Merve Çapar \n Mehmet Nuri Yumuşak \n Ege Yosunkaya \n Selin Özdaş");
            cr.Show();
            this.Close();
        }
Exemplo n.º 2
0
        private void Help_Click(object sender, RoutedEventArgs e)
        {
            TextViewer cr = new TextViewer();

            cr.Title = "Help";
            cr.setTitle("Help");
            //reads file and converts it to string format
            string path = System.IO.Directory.GetCurrentDirectory() + "\\..\\..\\items\\Help.txt";
            string text = System.IO.File.ReadAllText(@path);

            cr.setText(text);
            cr.Show();
            this.Close();
        }