private void Button_Click(object sender, RoutedEventArgs e)
        {
            bool check = Requests.MethodsAdmininstrator.Check(new Context(), Login.Text, Password.Text);
            if (check == true)
            {
                Entities.Waiter w = Requests.MethodsWaiter.GetWaiterByLogin(context, Login.Text);
                MakingOrder mo = new MakingOrder(w.WaiterID);
                mo.Show();

                MainWindow mw = new MainWindow();
                mw.Show();
                this.Close();
            }
            else { MessageBox.Show("Логин или пароль введены неверно."); }
        }
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            bool check = Requests.MethodsAdmininstrator.Check(new Context(), Login.Text, Password.Text);

            if (check == true)
            {
                Entities.Waiter w  = Requests.MethodsWaiter.GetWaiterByLogin(context, Login.Text);
                MakingOrder     mo = new MakingOrder(w.WaiterID);
                mo.Show();

                MainWindow mw = new MainWindow();
                mw.Show();
                this.Close();
            }
            else
            {
                MessageBox.Show("Логин или пароль введены неверно.");
            }
        }