public ConserVationForm_aud(FormTypes operationType, string SendDocID) { InitializeComponent(); this.types = operationType; _VM.UpdateConserVationCompleted += new EventHandler <UpdateConserVationCompletedEventArgs>(UpdateConserVationCompleted); _VM.GetVehicleInfoListCompleted += new EventHandler <GetVehicleInfoListCompletedEventArgs>(GetVehicleInfoListCompleted); fbCtr.SaveCompleted += new EventHandler <SMT.SaaS.FrameworkUI.FBControls.ChargeApplyControl.SaveCompletedArgs>(fbCtr_SaveCompleted); _VM.Get_VConserVationCompleted += new EventHandler <Get_VConserVationCompletedEventArgs>(Get_VConserVationCompleted); _VM.Get_VConserVationAsync(SendDocID); if (operationType == FormTypes.Audit || operationType == FormTypes.Browse) { cmbVehicleAssetId.IsEnabled = false; cmbConserVationName.IsEnabled = false; dateREPAIRDATE.IsEnabled = false; dateRETRIEVEDATE.IsEnabled = false; txtREPAIRCOMPANY.IsEnabled = false; txtTel.IsEnabled = false; txtCONSERVATIONRANGE.IsEnabled = false; txtContent.IsEnabled = false; txtReMark.IsEnabled = false; ckbHasFee.IsEnabled = false; } }