Beispiel #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            ApplicationPropertiesHelper.SetProperty("PropertyKey", tbxUserText.Text);

            Window2 window2 = new Window2();

            window2.ShowDialog();
        }
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            string propertyValue = ApplicationPropertiesHelper.GetProperty <string>("PropertyKey");

            if (string.IsNullOrEmpty(propertyValue))
            {
                propertyValue = "Nothing to display";
            }

            tbxUserText.Text = propertyValue;
        }
Beispiel #3
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     ApplicationPropertiesHelper.SetProperty("PropertyKey", tbxUserText.Text);
     (new AnotherWindow()).ShowDialog();
 }