/// <summary> /// Очищает все поля /// </summary> public void ClearFields() { comboBoxAtaChapter.ClearValue(); MPDItem = ""; Description = ""; PartNumber = ""; SerialNumber = ""; LifelimitEnabled = false; LifeLimit = Lifelength.NullLifelength; lifelengthViewerLifeLimit.Modified = false; Remarks = ""; HiddenRemarks = ""; InstallationDate = DateTime.Today; ComponentTSNCSN = Lifelength.NullLifelength; lifelengthViewerComponentTSNCSN.Modified = false; if (!isStore) { //AircraftTSNCSN = currentAircraft.LoadLifelength(DateTime.Today); // lifelengthViewerAircraftTSNCSN.Modified = false; } DateAsOf = DateTime.Today; // ComponentCurrentTSNCSN = Lifelength.NullLifelength; // lifelengthViewerComponentCurrentTSNCSN.Modified = false; // ComponentTCSI = Lifelength.NullLifelength; // lifelengthViewerComponentTCSI.Modified = false; }
/// <summary> /// Очищает все поля /// </summary> public void ClearAllFields() { comboBoxAtaChapter.ClearValue(); PartNumber = ""; Description = ""; radioButtonLLG.Checked = false; radioButtonNLG.Checked = false; radioButtonRLG.Checked = false; MaintenanceType = maintenanceCollection.UnknownType; Model = ""; Manufacturer = ""; Remarks = ""; HoursApplicable = false; CyclesApplicable = false; CalendarApplicable = false; }
/// <summary> /// Очищает все поля /// </summary> public void ClearFields() { textboxEONumber.Text = ""; comboBoxAtaChapter.ClearValue(); textboxSubject.Text = ""; textboxDescription.Text = ""; textboxNote.Text = ""; textboxWarranty.Text = ""; textBoxApprovalDocument.Text = ""; textboxEffectivity.Text = ""; textboxRevisionNumber.Text = ""; dateTimePickerRevisionDate.Value = DateTime.Today; textBoxReasonForRevision.Text = ""; textboxSpecialWorkingInstructions.Text = ""; ManhoursString = "0.0"; CostString = "0.0"; }