Beispiel #1
0
        private void MenuItem_Click(object sender, RoutedEventArgs e)
        {
            MenuItem mi = sender as MenuItem;

            if (mi != null)
            {
                ContextMenu cm = mi.CommandParameter as ContextMenu;
                if (cm != null)
                {
                    DataGrid dg = cm.PlacementTarget as DataGrid;
                    if (dg != null)
                    {
                        SqlController.DeleteByID(dg);
                    }
                }
            }
        }
Beispiel #2
0
 private void sort_Click(object sender, RoutedEventArgs e)
 {
     SqlController.Sort();
 }
Beispiel #3
0
 private void setInfo_Click(object sender, RoutedEventArgs e)
 {
     SqlController.Write(disList, lectList);
 }
Beispiel #4
0
 private void getInfo_Click(object sender, RoutedEventArgs e)
 {
     SqlController.Read();
 }
Beispiel #5
0
 private void closeConnection_Click(object sender, RoutedEventArgs e)
 {
     SqlController.CloseConnection();
 }
Beispiel #6
0
 private void openConnection_Click(object sender, RoutedEventArgs e)
 {
     SqlController.OpenConnection();
 }