Exemplo n.º 1
0
        private void btnList_Click(object sender, RoutedEventArgs e)
        {
            string[]     vs           = new string[3];
            StreamReader streamReader = new StreamReader(path);


            SecondWindow secondWindow = new SecondWindow();

            secondWindow.ShowDialog();
        }
Exemplo n.º 2
0
        private void btnList_Click(object sender, RoutedEventArgs e)
        {
            // string[] vs = new string[3];
            // StreamReader streamReader = new StreamReader(path);

            //// StreamReader f = new StreamReader("test.txt");
            // while (!streamReader.EndOfStream)
            // {
            //     vs = streamReader.ReadLine().Split(' ');

            //     // что-нибудь делаем с прочитанной строкой s
            // };
            //streamReader.Close();
            SecondWindow secondWindow = new SecondWindow(path);

            secondWindow.ShowDialog();
        }