Beispiel #1
0
        private void KFIRTATTODATABASE_png_PreviewMouseDown(object sender, MouseButtonEventArgs e)
        {
            winAddClient win = new winAddClient();

            win.ShowDialog();
            if (win.updateMainDGs)
            {
                UPDATEDATABASE();
                UPDATEYEARLY();
            }
        }
Beispiel #2
0
 private void clientDataGrid_PreviewMouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (clientDataGrid.SelectedItem != null)
     {
         winAddClient win = new winAddClient();
         win.clientid = ((Client)clientDataGrid.SelectedItem).Id;
         win.edit     = true;
         win.ShowDialog();
         UPDATEDATABASE();
         UPDATEYEARLY();
     }
 }
Beispiel #3
0
 private void Window_PreviewKeyDown(object sender, KeyEventArgs e)
 {
     if (Keyboard.IsKeyDown(Key.LeftCtrl) && Keyboard.IsKeyDown(Key.N))
     {
         winAddClient win = new winAddClient();
         win.ShowDialog();
         if (win.updateMainDGs)
         {
             UPDATEDATABASE();
             UPDATEYEARLY();
         }
     }
 }