Exemplo n.º 1
0
 public VehicleDetailWindow(SQLiteConnection sqlConn, Vehicle vehicle, PageVehicles parent)
 {
     _sqlConn = sqlConn;
     _vehicle = vehicle;
     _parent  = parent;
     InitializeComponent();
     Refresh();
 }
Exemplo n.º 2
0
 private void BtnVehicles_Click(object sender, RoutedEventArgs e)
 {
     if (FrmModule.Content.Equals(_pageVehicles))
     {
         return;
     }
     RectSide.Margin = new Thickness(RectSide.Margin.Left, btnVehicles.Margin.Top, RectSide.Margin.Right, RectSide.Margin.Bottom);
     if (_pageVehicles != null)
     {
         FrmModule.Content = _pageVehicles;
         _pageVehicles.Refresh();
     }
     else
     {
         _pageVehicles     = new PageVehicles(_sqlConn);
         FrmModule.Content = _pageVehicles;
     }
 }