So i have two Windows. The first window stores all the data with textboxes, comboboxes etc. In the second window i want to the user to enter some Information and based on the Information i want to Change something in the mainwindow.
I changed public partial class Window2 : Window to public partial class Window2 : MainWindow
but it still does not work.
public partial class MainWindow : Window
{
int Languagetoken = 1;
public MainWindow()
{
InitializeComponent();
DateTextBox.Text = DateTime.Now.ToShortDateString();
}
...
public partial class Window2 : Window
{
public Window2()
{
InitializeComponent();
}
{
Do not know how to do it. The code above is not in the same xaml they just Show the initialization of both.