Esempio n. 1
0
        private void Rent_Click(object sender, RoutedEventArgs e)
        {
            Notification();
            dataGrid1.Visibility = Visibility.Collapsed;
            Framework.Visibility = Visibility.Visible;
            rental rent = new rental();

            rent.PopulateDataFromLogin(username);
            Framework.Content = rent.Content;
        }
Esempio n. 2
0
        private void LBRent_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (LBRent.SelectedIndex != -1)
            {
                string customer = LBRent.SelectedValue.ToString().Trim();


                if (customer != "")
                {
                    rental rent = new rental();
                    rent.PopulateDataFromLogin(username);
                    rent.PopulateID(customer, "A");
                    rent.ShowDialog();
                }
            }
        }