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 veloprokat2 { /// /// Логика взаимодействия для MainWindowProd.xaml /// public partial class MainWindowProd : Window { public MainWindowProd() { InitializeComponent(); } private void SpisokBikes(object sender, RoutedEventArgs e) { InfoBikes SB = new InfoBikes(); SB.Show(); Close(); } private void Tarif(object sender, RoutedEventArgs e) { tarif Tarif = new tarif(); Tarif.Show(); Close(); } private void New_Zak(object sender, RoutedEventArgs e) { InsertZakaz IZ = new InsertZakaz(); IZ.Show(); Close(); } private void Spisok_Prok(object sender, RoutedEventArgs e) { SpisokProk SP = new SpisokProk(); SP.Show(); Close(); } private void Otmena(object sender, RoutedEventArgs e) { string messageBoxText = "Вы действительно хотите выйти?"; string caption = "Выход"; MessageBoxButton button = MessageBoxButton.YesNo; MessageBoxImage icon = MessageBoxImage.Warning; MessageBoxResult result = MessageBox.Show(messageBoxText, caption, button, icon); if (result == MessageBoxResult.Yes) { Auth au = new Auth(); au.Show(); Close(); } } } }