using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Shapes; namespace HotelCalifornia { /// /// Логика взаимодействия для Staff.xaml /// public partial class Staff : Window { public Staff() { InitializeComponent(); } private void Close(object sender, RoutedEventArgs e) { Application.Current.Shutdown(); } private void WindMin_Click(object sender, RoutedEventArgs e) { this.WindowState = WindowState.Minimized; } private void Back(object sender, RoutedEventArgs e) { MessageBoxResult result = MessageBox.Show("Вы хотите вернуться к предыдущему окну?", "Предупреждение", MessageBoxButton.YesNo, MessageBoxImage.Question); switch (result) { case MessageBoxResult.Yes: Variant variant = new Variant(); this.Close(); variant.Show(); break; case MessageBoxResult.No: break; } } private void datastaff_SelectionChanged(object sender, SelectionChangedEventArgs e) { } private void Add_Click(object sender, RoutedEventArgs e) { } private void Update_Click(object sender, RoutedEventArgs e) { } private void Delete_Click(object sender, RoutedEventArgs e) { } } }