private void fBox_Click(object sender, RoutedEventArgs e) { changeEnable(fBox); MenuBoxWindow mbw = new MenuBoxWindow(); mbw.Show(); }
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(); }