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 { /// /// Логика взаимодействия для MainWindowAdm.xaml /// public partial class MainWindowAdm : Window { public MainWindowAdm() { InitializeComponent(); } private void InfoProd(object sender, RoutedEventArgs e) { SpisRab SR = new SpisRab(); SR.Show(); Close(); } private void NewAdm(object sender, RoutedEventArgs e) { regadm RA = new regadm(); RA.Show(); Close(); } private void Prodaji(object sender, RoutedEventArgs e) { Info_prodaji IP = new Info_prodaji(); IP.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(); } } private void Tarif(object sender, RoutedEventArgs e) { InfoTarif IT = new InfoTarif(); IT.Show(); Close(); } private void Bikes(object sender, RoutedEventArgs e) { SpisokBikes IB = new SpisokBikes(); IB.Show(); Close(); } private void NewRab(object sender, RoutedEventArgs e) { Regrab RB = new Regrab(); RB.Show(); Close(); } } }