private void Window_Closed(object sender, EventArgs e) { if (!nazad) { Podaci.SacuvajPodatke(this.grad); } }
private void Nazad_Click(object sender, RoutedEventArgs e) { nazad = true; StartPage sp = new StartPage(); Podaci.SacuvajPodatke(this.grad); sp.Show(); this.Close(); }