// Задает полям исходные значения. public override void SetDefaultValues() { this.SetPropertiesValue <IStudent>(Entity, "GenderName", "MartialStatusString", "FacultyName", "EducationLevel", "Specialization", "SelfEmploymentText", "PreferentialCategoryText"); if (tbRegCity.Text == tbCity.Text && !string.IsNullOrEmpty(tbRegCity.Text) && tbRegRegion.Text == tbRegion.Text && tbRegDistrict.Text == tbDistrict.Text && tbRegAddress.Text == tbAddress.Text && !string.IsNullOrEmpty(tbRegAddress.Text)) { cbAddressesAreEquals.Checked = true; } Extentions.ValidateControls(this, errorProvider); }
public override void SetDefaultValues() { this.SetPropertiesValue <IStudentCompany>(Entity, "StudentFullName", "StatusText", "VacancyNumber"); Extentions.ValidateControls(this, GetErrorProvider()); }
public override void SetDefaultValues() { this.SetPropertiesValue <IVacancy>(Entity, "CompanyName", "GenderName"); Extentions.ValidateControls(this, GetErrorProvider()); }
public override void SetDefaultValues() { this.SetPropertiesValue <ICompany>(Entity, ""); Extentions.ValidateControls(this, GetErrorProvider()); }