Exemple #1
0
 void VehicleInfo_upd_Loaded(object sender, RoutedEventArgs e)
 {
     if (tmpformtype == FormTypes.Browse)
     {
         //this.first11.Children.IsReadOnly = true;
         //this.tabcontrol.IsEnabled = true;
         //this.LayoutRoot.Children.IsReadOnly = true;
         this.txtVIN.IsReadOnly               = true;
         this.txtCarModel.IsReadOnly          = true;
         this.txtPrice.IsReadOnly             = true;
         this.txtINITIALRANGE.IsReadOnly      = true;
         this.txtINTERVALRANGE.IsReadOnly     = true;
         this.txtMAINTAINCOMPANY.IsReadOnly   = true;
         this.txtMAINTAINTEL.IsReadOnly       = true;
         this.txtMAINTENANCECYCLE.IsReadOnly  = true;
         this.txtMAINTENANCEREMIND.IsReadOnly = true;
         this.txtSEATQUANTITY.IsReadOnly      = true;
         this.txtVEHICLEBRANDS.IsReadOnly     = true;
         this.txtVEHICLETYPE.IsReadOnly       = true;
         this.txtWEIGHT.IsReadOnly            = true;
         this.cmbUserFlag.IsEnabled           = false;
         this.dpBuyDate.IsEnabled             = false;
         this.dg.IsEnabled = false;
         Utility.FindChildControlToIsEnable <TextBox>(first);
     }
     if (vehicleInfo != null)
     {
         SetFormDefailValue(vehicleInfo);
         _VM.Get_VICardAsync(vehicleInfo.ASSETID);
     }
 }