Ejemplo n.º 1
0
        private void Routes_delete_Click(object sender, RoutedEventArgs e)
        {
            ConfirmBox confirm = new ConfirmBox();

            confirm.ShowDialog();
            if (confirm.okClick == false)
            {
                return;
            }
            Service.DeleteRoutes((int)Routes_grid.SelectedValue, username, password);
            Routes_Refresh_Click(sender, e);
        }
Ejemplo n.º 2
0
        private void Admin_AirlineTypeDelete_Click(object sender, RoutedEventArgs e)
        {
            ConfirmBox confirm = new ConfirmBox();

            confirm.ShowDialog();
            if (confirm.okClick == false)
            {
                return;
            }
            Service.DeleteAirline_types((short)Admin_AirlineTypeCombo.SelectedValue, username, password);
            Admin_AirlineTypeCombo.ItemsSource = Service.GetComboAirline_types().Tables[0].DefaultView;
        }
Ejemplo n.º 3
0
        private void Airplanes_Delete_Click(object sender, RoutedEventArgs e)
        {
            ConfirmBox confirm = new ConfirmBox();

            confirm.ShowDialog();
            if (confirm.okClick == false)
            {
                return;
            }
            Service.DeleteAirplane((string)Airplanes_Grid.SelectedValue, username, password);
            Airplanes_Refresh_Click(sender, e);
        }
Ejemplo n.º 4
0
        private void Admin_CountryDelete_Click(object sender, RoutedEventArgs e)
        {
            ConfirmBox confirm = new ConfirmBox();

            confirm.ShowDialog();
            if (confirm.okClick == false)
            {
                return;
            }
            Service.DeleteCounty((int)Admin_CountryCombo.SelectedValue, username, password);
            Admin_CountryCombo.ItemsSource = Service.GetComboCountry().Tables[0].DefaultView;
        }
Ejemplo n.º 5
0
        private void AccessControl_Delete_Click(object sender, RoutedEventArgs e)
        {
            ConfirmBox confirm = new ConfirmBox();

            confirm.ShowDialog();
            if (confirm.okClick == false)
            {
                return;
            }
            Service.DeleteUser_Type((short)AccessControl_UserTypeCombo.SelectedValue, username, password);
            AccessControl_UserTypeCombo.ItemsSource   = Service.GetComboUser_Type().Tables[0].DefaultView;
            AccessControl_UserTypeCombo.SelectedIndex = 0;
        }