private void Button_Click_Cancel(object sender, RoutedEventArgs e) { MessageBoxResult result = MessageBox.Show("Da li ste sigurni da želite da izađete?", "Zdravo", MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.No); if (result == MessageBoxResult.Yes) { addRenovation.Show(); this.Close(); } return; }
private void Button_Click_Ok(object sender, RoutedEventArgs e) { if (tbEndTime.Text == "" || tbEndTime.Text == null || tbStartTime.Text == "" || tbStartTime.Text == null || dpDateRenovationEnd.Text == "" || dpDateRenovationEnd.Text == null || dpDateRenovationStart.Text == "" || dpDateRenovationStart.Text == null || cbRooms.Text == "" || cbRooms.Text == null ) { MessageBox.Show("Niste popunili sva polja!", "Upozorenje!", MessageBoxButton.OK, MessageBoxImage.Warning); } else { DeleteRoom(); var renovation_add = new RenovationAdd(); renovation_add.Show(); this.Close(); MessageBox.Show("Uspešno ste zakazali deljenje sala!", "Uspešno!", MessageBoxButton.OK, MessageBoxImage.Information); } }
private void Button_Click_OK(object sender, RoutedEventArgs e) { ra = new RenovationAdd(this); ra.Show(); this.Hide(); }