示例#1
0
        private void fBox_Click(object sender, RoutedEventArgs e)
        {
            changeEnable(fBox);
            MenuBoxWindow mbw = new MenuBoxWindow();

            mbw.Show();
        }
示例#2
0
        private void fTxt_Click(object sender, RoutedEventArgs e)
        {
            ofg.ShowDialog();
            ofg.DefaultExt = ".txt";
            ofg.Filter     = "txt files (*.txt)|*.txt|All files (*.*)|*.*";
            try
            {
                poemFromTxt = File.ReadAllLines(ofg.FileName, Encoding.Default);
            }
            catch (ArgumentException) { }

            changeEnable(fTxt);
            MenuBoxWindow mbw = new MenuBoxWindow();

            mbw.Show();
        }