Exemple #1
0
        private void saveToWl_Click(object sender, EventArgs e)
        {
            //string text = outputFilmName.Text outputFilmID.Text outputFilmDirector.Text;


            wishlist wishlist = new wishlist(outputFilmName.Text, outputFilmID.Text, outputFilmDirector.Text);

            string[] wlSave = { outputFilmName.Text, outputFilmID.Text, outputFilmDirector.Text };
            using (StreamWriter file = File.AppendText(@"C:\Users\Student\Desktop\WriteText.txt"))
            {
                foreach (string line in wlSave)
                {
                    file.WriteLine(line);
                }
            }


            this.Close();
            wishlist.Show();
        }
Exemple #2
0
        private void showWish_Click(object sender, EventArgs e)
        {
            wishlist wishlist = new wishlist();

            wishlist.Show();
        }