Test.MainWindow.MainWindow_OnLoaded C# (CSharp) Méthode

MainWindow_OnLoaded() private méthode

private MainWindow_OnLoaded ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
Résultat void
        private void MainWindow_OnLoaded(object sender, RoutedEventArgs e)
        {
            //Xml Example
            //using (var sr = new StreamReader(AppDomain.CurrentDomain.BaseDirectory + "testFile.xml"))
            //{
            //    SourceBox.Text = sr.ReadToEnd();
            //}

            //String Exmaple
            using (var sr = new StreamReader(AppDomain.CurrentDomain.BaseDirectory + "testfile.xml"))
            {
                SourceBox.Text = sr.ReadToEnd();
            }
        }