private void AddData_Click(object sender, RoutedEventArgs e) { ChangeDataWindow changeDataWindow = new ChangeDataWindow(); changeDataWindow.Closed += ChangeData_Closed; changeDataWindow.Show(); }
private void ChangeData_Click(object sender, RoutedEventArgs e) { ChangeDataWindow changeDataWindow = new ChangeDataWindow(); changeDataWindow.RenderCity(selectedCity); changeDataWindow.Closed += ChangeData_Closed; changeDataWindow.Show(); }