예제 #1
0
 private void txt_Progress_TextChanged(object sender, TextChangedEventArgs e)
 {
     connect = new CTUConnection();                    // refreshens the 'CTUConnection' class //
     connect.SelectCarService();                       //*Selects the specified columns in the Patient table*//
     connect.SearchServiceProgress(txt_Progress.Text); //Searches the customer's 'name' within the populated table//
     DGV_Service.ItemsSource = connect.dataset;        //*All the selected fields are filtered inside the table and stored inside the grid-view*//
 }
예제 #2
0
        private void can_Delete_MouseDown(object sender, MouseButtonEventArgs e)
        {
            connect = new CTUConnection(); // refreshens the 'Connection' class //

            try
            {
                connect.DeleteCarService(int.Parse(ID));
                connect.SelectCarService();
                DGV_Service.ItemsSource = connect.table.DefaultView;
            }

            catch (Exception)
            {
            }
        }
예제 #3
0
 private void can_Show_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
 {
     connect = new CTUConnection();
     connect.SelectCarService();
     DGV_Service.ItemsSource = connect.table.DefaultView;
 }